summary refs log tree commit diff stats
path: root/tests/gc
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2020-01-28 17:09:48 +0100
committerGitHub <noreply@github.com>2020-01-28 17:09:48 +0100
commitbe795bbf1a783c66348a698e98c4a30584f3804d (patch)
tree0d465e7205074b84d98e753040e3d2e883290ed8 /tests/gc
parent84e8477b90a03ad5137450913fe39b1ccf7fa799 (diff)
downloadNim-be795bbf1a783c66348a698e98c4a30584f3804d.tar.gz
TlSF Alloctor: use less memory for --gc:arc (#13280)
Diffstat (limited to 'tests/gc')
-rw-r--r--tests/gc/gcbench.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/gc/gcbench.nim b/tests/gc/gcbench.nim
index 7a8addff3..e29ea762d 100644
--- a/tests/gc/gcbench.nim
+++ b/tests/gc/gcbench.nim
@@ -167,6 +167,8 @@ proc main() =
   var elapsed = epochTime() - t
   printDiagnostics()
   echo("Completed in " & $elapsed & "s. Success!")
+  when declared(getMaxMem):
+    echo "Max memory ", formatSize getMaxMem()
 
 when defined(GC_setMaxPause):
   GC_setMaxPause 2_000