atomicInc global alloc counters (#20571)
This commit is contained in:
parent
1e15f975b8
commit
ed26156c99
2 changed files with 9 additions and 9 deletions
|
|
@ -80,7 +80,7 @@ when hasAlloc and not defined(js):
|
|||
|
||||
when defined(nimAllocStats):
|
||||
var stats: AllocStats
|
||||
template incStat(what: untyped) = inc stats.what
|
||||
template incStat(what: untyped) = atomicInc stats.what
|
||||
proc getAllocStats*(): AllocStats = stats
|
||||
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue