aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1997-08-11 01:38:02 +0000
committerRichard M. Stallman1997-08-11 01:38:02 +0000
commite610ea430586cd5e966cb0907a2bb2e3880ba4ff (patch)
tree29d39d9f43048227680702a00b0b1ea535d69d28 /src
parentc13c88d74dc71fe00c22eb81bf887cc7d193ce55 (diff)
downloademacs-e610ea430586cd5e966cb0907a2bb2e3880ba4ff.tar.gz
emacs-e610ea430586cd5e966cb0907a2bb2e3880ba4ff.zip
(main) [__FreeBSD__ && PROFILING]: Add code for profiling.
Diffstat (limited to 'src')
-rw-r--r--src/emacs.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/emacs.c b/src/emacs.c
index 7e6ac1413fc..05b044f57cf 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -1095,6 +1095,24 @@ the Bugs section of the Emacs manual or the file BUGS.\n", argv[0]);
1095#endif 1095#endif
1096 } 1096 }
1097 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
1115
1098 initialized = 1; 1116 initialized = 1;
1099 1117
1100#ifdef LOCALTIME_CACHE 1118#ifdef LOCALTIME_CACHE