eventlog: Dump cost centre stack on each sample

Authored by mpickering on Oct 9 2019, 8:32 AM.

Description

eventlog: Dump cost centre stack on each sample

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

  1. EVENT_PROF_SAMPLE_COST_CENTRE - emitted on each tick to communicate the

current call stack.

Fixes Trac #17322

Details

Committed
Marge Bot <ben+marge-bot@smart-cactus.org>Wed, Oct 23, 4:58 AM
Parents
rGHCb521e8b698cc: Refactor Compact.c:
Branches
Unknown
Tags
Unknown
Marge Bot <ben+marge-bot@smart-cactus.org> committed rGHC17987a4b665d: eventlog: Dump cost centre stack on each sample (authored by mpickering).Wed, Oct 23, 4:58 AM