Headguards

[profiler]
Memory usage: real: 24379392, emalloc: 23917360
Code ProfilerTimeCntEmallocRealMem