+2012-09-30 Eli Zaretskii <eliz@gnu.org>
+
+ * profiler.c (Fprofiler_cpu_stop): Use timer_settime only if
+ HAVE_TIMER_SETTIME is defined.
+
2012-09-30 Paul Eggert <eggert@cs.ucla.edu>
Profiler improvements: more-accurate timers, overflow checks.
(record_backtrace, handle_profiler_signal): Saturate on fixnum overflow.
(profiler_timer, profiler_timer_ok) [HAVE_TIMER_SETTIME]:
New static vars.
- (enum profiler_cpu_running): New enumn.
+ (enum profiler_cpu_running): New enum.
(profiler_cpu_running): Now of that enum type, not bool.
All uses changed to store the new value.
(handle_profiler_signal): Rename from sigprof_handler_1,
case NOT_RUNNING:
return Qnil;
+#ifdef HAVE_TIMER_SETTIME
case TIMER_SETTIME_RUNNING:
{
struct itimerspec disable;
timer_settime (profiler_timer, 0, &disable, 0);
}
break;
+#endif
case SETITIMER_RUNNING:
{