summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/trac-inf.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2019-07-16 22:42:53 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2019-07-16 22:42:53 +0200
commita92a8d40ce567ecf5b0baacd9a93a94aac9a4a2d (patch)
tree17f7038c1c3b353bc2130af87066676d49f87184 /tex/context/base/mkiv/trac-inf.lua
parent4bc28891615011ed3581836e9259434720e25830 (diff)
downloadcontext-a92a8d40ce567ecf5b0baacd9a93a94aac9a4a2d.tar.gz
2019-07-16 18:30:00
Diffstat (limited to 'tex/context/base/mkiv/trac-inf.lua')
-rw-r--r--tex/context/base/mkiv/trac-inf.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/tex/context/base/mkiv/trac-inf.lua b/tex/context/base/mkiv/trac-inf.lua
index 0a4537e31..24ebc5249 100644
--- a/tex/context/base/mkiv/trac-inf.lua
+++ b/tex/context/base/mkiv/trac-inf.lua
@@ -262,7 +262,11 @@ end
function statistics.memused() -- no math.round yet -)
local round = math.round or math.floor
- return format("%s MB (ctx: %s MB)",round(collectgarbage("count")/1000), round(status.luastate_bytes/1000000))
+ return format("%s MB, ctx: %s MB, max: %s MB)",
+ round(collectgarbage("count")/1000),
+ round(status.luastate_bytes/1000000),
+ status.luastate_bytes_max and round(status.luastate_bytes_max/1000000) or "unknown"
+ )
end
starttiming(statistics)