memory allocator hotfix: do not allocate tremendous amounts of memory
This commit is contained in:
parent
e142f4c371
commit
9753782f96
2 changed files with 18 additions and 12 deletions
|
|
@ -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"])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue