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: Tue, 02 Oct 2012 06:00:05 +0200

> From: Stefan Monnier <address@hidden>
> Cc: Paul Eggert <address@hidden>,  address@hidden,  address@hidden
> Date: Mon, 01 Oct 2012 22:06:05 -0400
> 
> > In a nutshell, that thread sleeps until the timer expiration, then
> > suspends the main thread, calls the SIGPROF handler, resumes the main
> > thread, and goes back to sleep.  The deviation from the Posix
> > semantics is that the handler runs in the context of a thread other
> > than the main thread.
> 
> Isn't there another difference in that your code samples at a rate
> determined by the wall-clock time rather than the cpu-time of the process?

The timer thread is part of the process, so whenever it runs, the
process runs.

Or maybe I don't understand what you mean, exactly.



reply via email to

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