Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
e610ea43
Commit
e610ea43
authored
Aug 11, 1997
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(main) [__FreeBSD__ && PROFILING]: Add code for profiling.
parent
c13c88d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
src/emacs.c
src/emacs.c
+18
-0
No files found.
src/emacs.c
View file @
e610ea43
...
...
@@ -1095,6 +1095,24 @@ the Bugs section of the Emacs manual or the file BUGS.\n", argv[0]);
#endif
}
/* Gerd Moellmann <gerd@acm.org> 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__
#ifdef PROFILING
if
(
initialized
)
{
extern
void
_mcleanup
();
extern
char
etext
;
extern
void
clear_glyph_matrix
();
atexit
(
_mcleanup
);
monstartup
(
clear_glyph_matrix
,
&
etext
);
}
else
moncontrol
(
0
);
#endif
#endif
initialized
=
1
;
#ifdef LOCALTIME_CACHE
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment