diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2012-10-01 23:30:40 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2012-10-01 23:30:40 -0700 |
commit | b3ecad33ae977f9dd0bdd3e0a10cd8603f54a398 (patch) | |
tree | 9641b9d035dc733b9f3600557becdcb0ffc31290 /lisp/emacs-lisp/timer.el | |
parent | 8cb51b66fcb7a0954437108f8a1d05d6af6dcf89 (diff) | |
download | emacs-b3ecad33ae977f9dd0bdd3e0a10cd8603f54a398.tar.gz emacs-b3ecad33ae977f9dd0bdd3e0a10cd8603f54a398.tar.bz2 emacs-b3ecad33ae977f9dd0bdd3e0a10cd8603f54a398.zip |
Count overruns when profiling; change units to ns.
* lisp/profiler.el (profiler-sampling-interval): Change units
from ms to ns, multiplying the default by 1000000 so that
it remains 1 ms.
(profiler-report-cpu-line-format): Give enough room for
the maximum counters on 64-bit hosts.
(profiler-report-render-calltree-1): Call them "CPU samples",
not "Time (ms)", since they are not milliseconds now (and
never really were).
* src/profiler.c (handle_profiler_signal): Count sampling intervals, not ms.
Give extra weight to samples after overruns, to attempt to count
the time more accurately.
(setup_cpu_timer): Change sampling interval units from ms to ns, since
the underlying primitives nominally do ns.
(Fprofiler_cpu_start): Document the change. Mention that
the sampling intervals are only approximate.
Diffstat (limited to 'lisp/emacs-lisp/timer.el')
0 files changed, 0 insertions, 0 deletions