diff options
author | def <dennis@felsin9.de> | 2015-03-10 15:31:55 +0100 |
---|---|---|
committer | def <dennis@felsin9.de> | 2015-03-10 15:31:55 +0100 |
commit | 573fa9b8919d5ea5bcae8aaf7b7295c42526b6e4 (patch) | |
tree | 5cb3364638d3be1f6c05dfcfbe14dab2e9d689e4 /lib/system/gc.nim | |
parent | f7e35542e1e9b67c89394a639ea9a5e3e0010fb1 (diff) | |
download | Nim-573fa9b8919d5ea5bcae8aaf7b7295c42526b6e4.tar.gz |
Clean up GCs a bit
Diffstat (limited to 'lib/system/gc.nim')
-rw-r--r-- | lib/system/gc.nim | 1 |
1 files changed, 1 insertions, 0 deletions
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) |