profiler improvements

This commit is contained in:
Araq 2012-09-17 00:31:41 +02:00
commit 75abf72503
8 changed files with 110 additions and 71 deletions

View file

@ -78,11 +78,11 @@ var
when not defined(useNimRtl):
InstantiateForRegion(gch.region)
proc acquire(gch: var TGcHeap) {.inline.} =
template acquire(gch: TGcHeap) =
when hasThreadSupport and hasSharedHeap:
AcquireSys(HeapLock)
proc release(gch: var TGcHeap) {.inline.} =
template release(gch: TGcHeap) =
when hasThreadSupport and hasSharedHeap:
releaseSys(HeapLock)