[Haskell-cafe] Adding custom events to eventlog

Ben Gamari bgamari.foss at gmail.com
Fri Oct 19 17:02:39 CEST 2012


"Janek S." <fremenzone at poczta.onet.pl> writes:

> Dear list,
>
> I'm using ThreadScope to improve performance of my parallel program. It would be very helpful for 
> me if I could place custom things in eventlog (e.g. "now function x begins"). Is this possible?
>
Yes, it certainly is possible. Have a look at Debug.Trace.traceEvent and
traceEventIO. I have found these to be a remarkably powerful tool for
understanding parallel performance.

Cheers,

- Ben




More information about the Haskell-Cafe mailing list