comparison src/emacs.c @ 19291:27c3012475b2

(main) [__FreeBSD__ && PROFILING]: Add code for profiling.
author Richard M. Stallman <rms@gnu.org>
date Mon, 11 Aug 1997 01:38:02 +0000
parents a4620c4c0881
children f8d133a2df57
comparison
equal deleted inserted replaced
19290:7fb99affa49a 19291:27c3012475b2
1092 --*tz; 1092 --*tz;
1093 } 1093 }
1094 } 1094 }
1095 #endif 1095 #endif
1096 } 1096 }
1097
1098 /* Gerd Moellmann <gerd@acm.org> says this makes profiling work on
1099 FreeBSD. It might work on some other systems too.
1100 Give it a try and tell me if it works on your system. */
1101 #ifdef __FreeBSD__
1102 #ifdef PROFILING
1103 if (initialized)
1104 {
1105 extern void _mcleanup ();
1106 extern char etext;
1107 extern void clear_glyph_matrix ();
1108 atexit (_mcleanup);
1109 monstartup (clear_glyph_matrix, &etext);
1110 }
1111 else
1112 moncontrol (0);
1113 #endif
1114 #endif
1097 1115
1098 initialized = 1; 1116 initialized = 1;
1099 1117
1100 #ifdef LOCALTIME_CACHE 1118 #ifdef LOCALTIME_CACHE
1101 /* Some versions of localtime have a bug. They cache the value of the time 1119 /* Some versions of localtime have a bug. They cache the value of the time