[Haskell-cafe] What's a thread doing / Erlang-style processes /Message passing

Simon Marlow simonmar at microsoft.com
Tue Dec 6 08:43:22 EST 2005


On 06 December 2005 10:28, Joel Reymont wrote:

> I'm finding myself in dire need of monitoring the Haskell runtime.
> More precisely, I would like to know what each that I launch is doing
> at a given point in time.
> 
> Is there a way to obtain this information now? I would be fine with
> knowing if a thread is blocking on a foreign call, MVar or something
> like that.

If you compile with -debug, and run with +RTS -Ds you get a scheduler
trace which might help.

Cheers,
	Simon


More information about the Haskell-Cafe mailing list