[Top][All Lists]

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

Re: Issues using statprof (no samples taken)

From: Ludovic Courtès
Subject: Re: Issues using statprof (no samples taken)
Date: Mon, 17 Nov 2008 17:02:00 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux)


Boris Zbarsky <address@hidden> writes:

> Sure.  The wrong thing is that profile-signal-handler is not called,
> so never resets the timer, so no more SIGPROFs.  Unless I'm misreading
> the code.

Oh, right.

> I can't check the values in the structs it's passed, unfortunately (no
> symbols here for guile or the libc).

Maybe with `strace(1)' or similar?

>> Another (remote) possibility could be that the Scheme-level handler is
>> not called, even though the C handler in libguile is called, since
>> Scheme-level signal handlers are actually asyncs (info "(guile)
>> Asyncs").  You can try to force the execution of asyncs by adding a call
>> like "(select '() '() '() 0)" (technically, it invokes `SCM_TICK', which
>> runs asyncs).
> Where would I add that?

In some Scheme code that is run regularly.

BTW, is Gnucash multithreaded?

> For that matter, what's the C handler in
> libguile?  I should be able to breakpoint on that and see whether it's
> called, hopefully...

It's `take_signal ()' (scmsigs.c), at least in 1.8.x.

Hope this helps,

reply via email to

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