From 573fa9b8919d5ea5bcae8aaf7b7295c42526b6e4 Mon Sep 17 00:00:00 2001 From: def Date: Tue, 10 Mar 2015 15:31:55 +0100 Subject: Clean up GCs a bit --- lib/system/gc.nim | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/system/gc.nim') diff --git a/lib/system/gc.nim b/lib/system/gc.nim index 42da2ed89..c4374d00c 100644 --- a/lib/system/gc.nim +++ b/lib/system/gc.nim @@ -463,6 +463,7 @@ proc rawNewObj(typ: PNimType, size: int, gch: var TGcHeap): pointer = proc newObjNoInit(typ: PNimType, size: int): pointer {.compilerRtl.} = result = rawNewObj(typ, size, gch) + when defined(memProfiler): nimProfile(size) proc newObj(typ: PNimType, size: int): pointer {.compilerRtl.} = result = rawNewObj(typ, size, gch) -- cgit 1.4.1-2-gfad0