Function: profiler-cpu-stop
profiler-cpu-stop is a function defined in profiler.c.
Signature
(profiler-cpu-stop)
Documentation
Stop the cpu profiler. The profiler log is not affected.
Return non-nil if the profiler was running.
Source Code
// Defined in /usr/src/emacs/src/profiler.c
{
switch (profiler_cpu_running)
{
case NOT_RUNNING:
return Qnil;
#ifdef HAVE_ITIMERSPEC
case TIMER_SETTIME_RUNNING:
{
struct itimerspec disable = { 0, };
timer_settime (profiler_timer, 0, &disable, 0);
}
break;
#endif
#ifdef HAVE_SETITIMER
case SETITIMER_RUNNING:
{
struct itimerval disable = { 0, };
setitimer (ITIMER_PROF, &disable, 0);
}
break;
#endif
}
signal (SIGPROF, SIG_IGN);
profiler_cpu_running = NOT_RUNNING;
return Qt;
}