• Matthew Pickering's avatar
    eventlog: Dump cost centre stack on each sample · 17987a4b
    Matthew Pickering authored
    With this change it is possible to reconstruct the timing portion of a
    `.prof` file after the fact. By logging the stacks at each time point
    a more precise executation trace of the program can be observed rather
    than all identical cost centres being identified in the report.
    
    There are two new events:
    
    1. `EVENT_PROF_BEGIN` - emitted at the start of profiling to communicate
    the tick interval
    2. `EVENT_PROF_SAMPLE_COST_CENTRE` - emitted on each tick to communicate the
    current call stack.
    
    Fixes #17322
    17987a4b
ProfHeap.c 37.9 KB