Skip to content

Add support for freezing profiling counters.

Luite Stegeman requested to merge luite/ghc:freezeprof into master

This adds GHC.Profiling.freezeProfCounters and GHC.Profiling.unfreezeProfCounters to temporarily suspend updates to the counters (entries, allocations, ticks) for cost centre stacks.

This allows the user to generate a profile that counts only a specific part of the execution of a program.

Merge request reports