Implementation of freezeProfCounters/unfreezeProfCounters
This is an alternative implementation of #24684, freezeProfCounters
/ unfreezeProfCounters
, the other implementation is !12440
This uses a global prof_counter_increment
with value 0
or -1
to increment the memory alloc and entry count counters. The Cmm reads this value before doing a counter increment.
Edited by Luite Stegeman