diff options
author | Hans Hagen <pragma@wxs.nl> | 2020-08-31 22:42:33 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2020-08-31 22:42:33 +0200 |
commit | 91db5eb6c95b185e3f1cc7aa0d04e1aeba1d4941 (patch) | |
tree | 5d4bb013051c1311118aac810d0d560fad54a648 /tex/context/base/mkiv/mlib-run.lua | |
parent | 0c426d0b6acb0d5595afd53f0fee52ee6ec6aa11 (diff) | |
download | context-91db5eb6c95b185e3f1cc7aa0d04e1aeba1d4941.tar.gz |
2020-08-31 22:04:00
Diffstat (limited to 'tex/context/base/mkiv/mlib-run.lua')
-rw-r--r-- | tex/context/base/mkiv/mlib-run.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tex/context/base/mkiv/mlib-run.lua b/tex/context/base/mkiv/mlib-run.lua index 5aa9c78d0..602d6f36c 100644 --- a/tex/context/base/mkiv/mlib-run.lua +++ b/tex/context/base/mkiv/mlib-run.lua @@ -661,20 +661,21 @@ do end +local getstatistics = mplib.getstatistics or mplib.statistics + function metapost.getstatistics(memonly) if memonly then local n, m = 0, 0 for name, mpx in next, mpxformats do n = n + 1 - m = m + mpx:statistics().memory + m = m + getstatistics(mpx).memory end return n, m else local t = { } for name, mpx in next, mpxformats do - t[name] = mpx:statistics() + t[name] = getstatistics(mpx) end return t end end - |