Raymond Toy <toy(a)rtp.ericsson.se> writes:
I do have two summary functions.
[...]
If I set vm-flush-interval to 90 (the default), profile-key-sequence
on "n" still says vm-run-user-summary-function still says 89%.
Some clarification about the profiling support:
* It has no notion of "call graph". If it says 89% time is spent in
function X, then it's really in function X, i.e. the byte-codes
within that functions. It does not include the time spent in
children that are Lisp functions.
* It is not reliable for small timings and functions where time is
short, because it is based on a profiling signal. The "call count"
thing is reliable, though.
* It is completely unreliable if you compile with error-checking.
That is, it gives you the correct numbers, but the results can be
completely different when you compile without error-checking. So if
you profile seriously, turn off error-checking when building XEmacs.
* It knows nothing of C builtins. Time spent there simply counts in
the Lisp function that called them.