[Top][All Lists]

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

bug#20843: 24.5; Profiler error: "Invalid sampling interval"

From: Sebastien Vauban
Subject: bug#20843: 24.5; Profiler error: "Invalid sampling interval"
Date: Thu, 18 Jun 2015 13:58:20 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (cygwin)

Eli Zaretskii <address@hidden> writes:
>> From: Sebastien Vauban <address@hidden>
>> When trying to start the profiler under Cygwin Emacs 24.5, I get this:
>> --8<---------------cut here---------------start------------->8---
>> Debugger entered--Lisp error: (error "Invalid sampling interval")
>>   profiler-cpu-start(1000000)
>>   profiler-start(cpu)
>>   call-interactively(profiler-start record nil)
> Can you step with GDB into setup_cpu_timer, and see what goes wrong
> there?  I suspect this portions:
>   if (! RANGED_INTEGERP (1, sampling_interval,
>                        (TYPE_MAXIMUM (time_t) < EMACS_INT_MAX / billion
>                         ? ((EMACS_INT) TYPE_MAXIMUM (time_t) * billion
>                            + (billion - 1))
>                         : EMACS_INT_MAX)))
>     return NOT_RUNNING;
> If so, what does TYPE_MAXIMUM(time_t) return in your build?

Sorry, I can't -- lack of time, and (moreover) of knowledge...

PS- Dunno if this is somehow related, but my Cygwin Emacs is very slow
ATM -- sometimes waiting for 5 seconds or so before seeing a reaction to
the char I just typed, though often as quick as always.  That was why
I wanted to run a profiler...

reply via email to

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