gcbench: better memory usage report

This commit is contained in:
Andreas Rumpf
2019-09-03 12:39:34 +02:00
parent 35f1519ad6
commit 4972d797e4

View File

@@ -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