if (_gmonparam.state != GMON_PROF_ERROR) write_gmon ();
if (_gmonparam.kcountsize > 0) { struct iovec iov[3] = { { &tag, sizeof (tag) }, { &thdr, sizeof (struct gmon_hist_hdr) }, { _gmonparam.kcount, _gmonparam.kcountsize } };
weak_alias (__write_profiling, write_profiling)void_mcleanup (void){  __moncontrol (0);  if (_gmonparam.state != GMON_PROF_ERROR)    write_gmon ();  /* free the memory. */  if (_gmonparam.tos != NULL)    free (_gmonparam.tos);}