profiler improvements
This commit is contained in:
parent
ad6ee9e857
commit
75abf72503
8 changed files with 110 additions and 71 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue