Commit e610ea43 authored by Richard M. Stallman's avatar Richard M. Stallman

(main) [__FreeBSD__ && PROFILING]: Add code for profiling.

parent c13c88d7
......@@ -1095,6 +1095,24 @@ the Bugs section of the Emacs manual or the file BUGS.\n", argv[0]);
/* Gerd Moellmann <> says this makes profiling work on
FreeBSD. It might work on some other systems too.
Give it a try and tell me if it works on your system. */
#ifdef __FreeBSD__
if (initialized)
extern void _mcleanup ();
extern char etext;
extern void clear_glyph_matrix ();
atexit (_mcleanup);
monstartup (clear_glyph_matrix, &etext);
moncontrol (0);
initialized = 1;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment