Repairs

[profiler]
Memory usage: real: 12582912, emalloc: 10085296
Code ProfilerTimeCntEmallocRealMem