mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 14:00:35 +00:00
gcbench: better memory usage report
This commit is contained in:
@@ -97,8 +97,8 @@ proc makeTree(iDepth: int): PNode =
|
||||
return newNode(makeTree(iDepth-1), makeTree(iDepth-1))
|
||||
|
||||
proc printDiagnostics() =
|
||||
echo("Total memory available: " & $getTotalMem() & " bytes")
|
||||
echo("Free memory: " & $getFreeMem() & " bytes")
|
||||
echo("Total memory available: " & formatSize(getTotalMem()) & " bytes")
|
||||
echo("Free memory: " & formatSize(getFreeMem()) & " bytes")
|
||||
|
||||
proc timeConstruction(depth: int) =
|
||||
var
|
||||
|
||||
Reference in New Issue
Block a user