Remove hardcoded `profile_id` from tracing and make `traceHeapProfBegin` an init event
This MR makes two changes:
- It removes the hardcoded
profile_idparameter from the various eventlog tracing functions (traceHeapProfSampleCostCentre,postHeapProfSampleCostCentre,traceHeapProfSampleString,postHeapProfSampleString,traceHeapProfBegin, andpostHeapProfBegin). - It adds
traceHeapProfBeginto the init events.