GCs: use add instead of &
This commit is contained in:
parent
599c429fdd
commit
70e94b8c9e
2 changed files with 6 additions and 6 deletions
|
|
@ -945,10 +945,10 @@ when not defined(useNimRtl):
|
||||||
"[GC] max cycle table size: " & $gch.stat.cycleTableSize & "\n" &
|
"[GC] max cycle table size: " & $gch.stat.cycleTableSize & "\n" &
|
||||||
"[GC] max pause time [ms]: " & $(gch.stat.maxPause div 1000_000) & "\n"
|
"[GC] max pause time [ms]: " & $(gch.stat.maxPause div 1000_000) & "\n"
|
||||||
when nimCoroutines:
|
when nimCoroutines:
|
||||||
result = result & "[GC] number of stacks: " & $gch.stack.len & "\n"
|
result.add "[GC] number of stacks: " & $gch.stack.len & "\n"
|
||||||
for stack in items(gch.stack):
|
for stack in items(gch.stack):
|
||||||
result = result & "[GC] stack " & stack.bottom.repr & "[GC] max stack size " & cast[pointer](stack.maxStackSize).repr & "\n"
|
result.add "[GC] stack " & stack.bottom.repr & "[GC] max stack size " & cast[pointer](stack.maxStackSize).repr & "\n"
|
||||||
else:
|
else:
|
||||||
result = result & "[GC] max stack size: " & $gch.stat.maxStackSize & "\n"
|
result.add "[GC] max stack size: " & $gch.stat.maxStackSize & "\n"
|
||||||
|
|
||||||
{.pop.} # profiler: off, stackTrace: off
|
{.pop.} # profiler: off, stackTrace: off
|
||||||
|
|
|
||||||
|
|
@ -526,10 +526,10 @@ when not defined(useNimRtl):
|
||||||
"[GC] max threshold: " & $gch.stat.maxThreshold & "\n" &
|
"[GC] max threshold: " & $gch.stat.maxThreshold & "\n" &
|
||||||
"[GC] freed objects: " & $gch.stat.freedObjects & "\n"
|
"[GC] freed objects: " & $gch.stat.freedObjects & "\n"
|
||||||
when nimCoroutines:
|
when nimCoroutines:
|
||||||
result = result & "[GC] number of stacks: " & $gch.stack.len & "\n"
|
result.add "[GC] number of stacks: " & $gch.stack.len & "\n"
|
||||||
for stack in items(gch.stack):
|
for stack in items(gch.stack):
|
||||||
result = result & "[GC] stack " & stack.bottom.repr & "[GC] max stack size " & $stack.maxStackSize & "\n"
|
result.add "[GC] stack " & stack.bottom.repr & "[GC] max stack size " & $stack.maxStackSize & "\n"
|
||||||
else:
|
else:
|
||||||
result = result & "[GC] max stack size: " & $gch.stat.maxStackSize & "\n"
|
result.add "[GC] max stack size: " & $gch.stat.maxStackSize & "\n"
|
||||||
|
|
||||||
{.pop.}
|
{.pop.}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue