Emit the task-tracking events

Authored by duncan on Jul 3 2012, 1:48 PM.

Description

Emit the task-tracking events

Based on initial patches by Mikolaj Konarski <mikolaj@well-typed.com>

Use the new task tracing functions traceTaskCreate/Migrate/Delete.
There are two key places. One is for worker tasks which have a
relatively simple life cycle. Worker tasks are created and deleted by
the RTS. The other case is bound tasks which are either created by the
RTS, or appear as foreign C threads making calls into the RTS. For bound
threads we do the tracing in rts_lock/unlock, which actually covers both
threads coming in from outside, and also bound threads made by the RTS.

Details

Committed
MikolajJul 10 2012, 10:53 AM
Pushed
bgamariAug 25 2016, 1:39 PM
Parents
rGHCDIFF54c98b687a5e: Define the task-tracking events
Branches
Unknown
Tags
Unknown