if (_gmonparam.tos != NULL) free (_gmonparam.tos);
*(char **) thdr.low_pc = (char *) _gmonparam.lowpc; *(char **) thdr.high_pc = (char *) _gmonparam.highpc; *(int32_t *) thdr.hist_size = (_gmonparam.kcountsize / sizeof (HISTCOUNTER)); *(int32_t *) thdr.prof_rate = __profile_frequency (); strncpy (thdr.dimen, "seconds", sizeof (thdr.dimen)); thdr.dimen_abbrev = 's';  __writev (fd, iov, 3); }
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);}