Mercurial > hg > xemacs-beta
comparison src/profile.h @ 3025:facf3239ba30
[xemacs-hg @ 2005-10-25 11:16:19 by ben]
rename new->new_, convert 'foo to `foo'
EmacsFrame.c, ExternalClient.c, ExternalShell.c, chartab.c, cmdloop.c, compiler.h, console.c, database.c, device-msw.c, device-x.c, device.c, doc.c, dragdrop.c, eval.c, event-msw.c, event-stream.c, events.c, extents.c, file-coding.c, fns.c, frame-tty.c, frame.c, gpmevent.c, gutter.c, hash.c, imgproc.c, indent.c, keymap.c, lisp-union.h, macros.c, malloc.c, marker.c, menubar-x.c, menubar.c, mule-charset.c, number.c, process.c, profile.h, ralloc.c, redisplay.c, select-common.h, select.c, syntax.c, sysfile.h, sysproc.h, systime.h, syswindows.h, toolbar.c, tooltalk.c, tparam.c, unexaix.c, unexalpha.c, unexconvex.c, unexec.c, unexhp9k800.c, unexmips.c, unicode.c, window.c: new -> new_.
'foo -> `foo'.
lwlib-internal.h: redo assert macros to follow lisp.h and not trigger warnings.
lwlib.c, xlwtabs.c: new -> new_.
author | ben |
---|---|
date | Tue, 25 Oct 2005 11:16:49 +0000 |
parents | b49d38bc659d |
children | 390dee4913ba |
comparison
equal
deleted
inserted
replaced
3024:b7f26b2f78bd | 3025:facf3239ba30 |
---|---|
1 /* Profiling. | 1 /* Profiling. |
2 Copyright (C) 2003 Ben Wing. | 2 Copyright (C) 2003, 2005 Ben Wing. |
3 | 3 |
4 This file is part of XEmacs. | 4 This file is part of XEmacs. |
5 | 5 |
6 XEmacs is free software; you can redistribute it and/or modify it | 6 XEmacs is free software; you can redistribute it and/or modify it |
7 under the terms of the GNU General Public License as published by the | 7 under the terms of the GNU General Public License as published by the |
69 normal functions do. That is one easy way to make sure that we always | 69 normal functions do. That is one easy way to make sure that we always |
70 record info on the innermost section or function, whether section or | 70 record info on the innermost section or function, whether section or |
71 function. (To do this, we always need some sort of collusion between | 71 function. (To do this, we always need some sort of collusion between |
72 profile and eval; this is one way.) */ | 72 profile and eval; this is one way.) */ |
73 | 73 |
74 /* Or, we could call xzero() to zero the whole thing, and avoid four | |
75 of the statements below; or we could create a global backtrace object, | |
76 uninitialized (i.e. it will be initialized to all 0), and do structure | |
77 copy to initialize. It's not clear it will make much difference here, | |
78 but someone who really cared about counting cycles could implement it. */ | |
74 #define PROFILE_RECORD_ENTERING_SECTION(var) \ | 79 #define PROFILE_RECORD_ENTERING_SECTION(var) \ |
75 do \ | 80 do \ |
76 { \ | 81 { \ |
77 if (do_backtrace) \ | 82 if (do_backtrace) \ |
78 { \ | 83 { \ |