emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Elisp native profiler


From: Eli Zaretskii
Subject: Re: Elisp native profiler
Date: Sun, 30 Sep 2012 09:58:26 +0200

> Date: Sun, 30 Sep 2012 00:37:22 -0700
> From: Paul Eggert <address@hidden>
> CC: Tomohiro Matsuyama <address@hidden>, address@hidden
> 
> On 09/28/2012 04:00 AM, Eli Zaretskii wrote:
> > What interval is used by the profiling code in a C program compiled
> > with -pg?
> 
> It depends on the platform.  Historically it was 1/60th of
> a second, because that's how often the clock interrupt was.
> Nowadays 10 ms is common -- that's what GNU/Linux
> uses, at least my copy does.

So perhaps we should use 10 ms as the default sampling period.

Btw, does profiler.c live in peace with Emacs configured with
"--enable-profiling"?  They both use SIGPROF, AFAIK.  Perhaps
profiler.c features should be disabled when Emacs is profiling itself.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]