diff options
author | Karl Berry <karl@freefriends.org> | 2019-08-14 20:51:13 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-08-14 20:51:13 +0000 |
commit | cb9ce80d54602fd1ef6f8703980bc158a947fd8d (patch) | |
tree | 2c7f608569e6288ded2ba2580a94071f8d48466a /Master/texmf-dist/tex/luatex/lualibs/lualibs-trac-inf.lua | |
parent | f2f886b0ea249d05bc13639975c9a84613b9a387 (diff) |
lualibs (14aug19)
git-svn-id: svn://tug.org/texlive/trunk@51879 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/luatex/lualibs/lualibs-trac-inf.lua')
-rw-r--r-- | Master/texmf-dist/tex/luatex/lualibs/lualibs-trac-inf.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/luatex/lualibs/lualibs-trac-inf.lua b/Master/texmf-dist/tex/luatex/lualibs/lualibs-trac-inf.lua index 0a4537e3177..24ebc524997 100644 --- a/Master/texmf-dist/tex/luatex/lualibs/lualibs-trac-inf.lua +++ b/Master/texmf-dist/tex/luatex/lualibs/lualibs-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) |