make tfragment_gc more robust

This commit is contained in:
Araq
2017-12-12 19:35:40 +01:00
parent e8a52a0fc2
commit 1a5a09b835

View File

@@ -20,7 +20,10 @@ let total = getTotalMem()
# Concrete values on Win64: 58.152MiB / 188.285MiB
echo "occupied ok: ", occ < 60 * 1024 * 1024
let occupiedOk = occ < 64 * 1024 * 1024
if not occupiedOk:
echo "occupied ", formatSize(occ)
echo "occupied ok: ", occupiedOk
let totalOk = total < 210 * 1024 * 1024
if not totalOk:
echo "total peak memory ", formatSize(total)