Headguards

[profiler]
Memory usage: real: 88342528, emalloc: 58361488
Code ProfilerTimeCntEmallocRealMem