gcbench: better memory usage report
This commit is contained in:
parent
35f1519ad6
commit
4972d797e4
1 changed files with 2 additions and 2 deletions
|
|
@ -97,8 +97,8 @@ proc makeTree(iDepth: int): PNode =
|
||||||
return newNode(makeTree(iDepth-1), makeTree(iDepth-1))
|
return newNode(makeTree(iDepth-1), makeTree(iDepth-1))
|
||||||
|
|
||||||
proc printDiagnostics() =
|
proc printDiagnostics() =
|
||||||
echo("Total memory available: " & $getTotalMem() & " bytes")
|
echo("Total memory available: " & formatSize(getTotalMem()) & " bytes")
|
||||||
echo("Free memory: " & $getFreeMem() & " bytes")
|
echo("Free memory: " & formatSize(getFreeMem()) & " bytes")
|
||||||
|
|
||||||
proc timeConstruction(depth: int) =
|
proc timeConstruction(depth: int) =
|
||||||
var
|
var
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue