Skip to content
  • Duncan Coutts's avatar
    Define the task-tracking events · 54c98b68
    Duncan Coutts authored and Mikolaj Konarski's avatar Mikolaj Konarski committed
    Based on initial patches by Mikolaj Konarski <mikolaj@well-typed.com>
    
    These new eventlog events are to let profiling tools keep track of all
    the OS threads that belong to an RTS capability at any moment in time.
    In the RTS, OS threads correspond to the Task abstraction, so that is
    what we track. There are events for tasks being created, migrated
    between capabilities and deleted. In particular the task creation event
    also records the kernel thread id which lets us match up the OS thread
    with data collected by others tools (in the initial use case with
    Linux's perf tool, but in principle also with DTrace).
    54c98b68