summary refs log tree commit diff stats
path: root/compiler/main.nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/main.nim')
-rw-r--r--compiler/main.nim6
1 files changed, 5 insertions, 1 deletions
diff --git a/compiler/main.nim b/compiler/main.nim
index e6563f281..888f89ad5 100644
--- a/compiler/main.nim
+++ b/compiler/main.nim
@@ -271,9 +271,13 @@ proc mainCommand*(graph: ModuleGraph; cache: IdentCache) =
 
   if msgs.gErrorCounter == 0 and
      gCmd notin {cmdInterpret, cmdRun, cmdDump}:
+    when declared(system.getMaxMem):
+      let usedMem = formatSize(getMaxMem()) & " peekmem"
+    else:
+      let usedMem = formatSize(getTotalMem())
     rawMessage(hintSuccessX, [$gLinesCompiled,
                formatFloat(epochTime() - gLastCmdTime, ffDecimal, 3),
-               formatSize(getTotalMem()),
+               usedMem,
                if condSyms.isDefined("release"): "Release Build"
                else: "Debug Build"])