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.