diff options
author | Hans Hagen <pragma@wxs.nl> | 2012-07-21 13:05:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2012-07-21 13:05:00 +0200 |
commit | 7b3b116e3777e1dd17ef3d335b2a503a603bc264 (patch) | |
tree | 2c2e89ecc26d502df0e8170416317e7490443e11 /tex/context/base/luat-sto.lua | |
parent | 3d9b3d2671f2e3f7f0b77099ecd5fbf677400cf4 (diff) | |
download | context-7b3b116e3777e1dd17ef3d335b2a503a603bc264.tar.gz |
beta 2012.07.21 13:05
Diffstat (limited to 'tex/context/base/luat-sto.lua')
-rw-r--r-- | tex/context/base/luat-sto.lua | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/tex/context/base/luat-sto.lua b/tex/context/base/luat-sto.lua index 860aa1121..30a72a29b 100644 --- a/tex/context/base/luat-sto.lua +++ b/tex/context/base/luat-sto.lua @@ -104,9 +104,15 @@ end --~ end statistics.register("stored bytecode data", function() - local modules = (storage.nofmodules > 0 and storage.nofmodules) or (status.luabytecodes - lua.firstbytecode - 1) - local dumps = (storage.noftables > 0 and storage.noftables) or storage.max-storage.min + 1 - return format("%s modules, %s tables, %s chunks",modules,dumps,modules+dumps) + local nofmodules = (storage.nofmodules > 0 and storage.nofmodules) or (status.luabytecodes - lua.firstbytecode - 1) + local nofdumps = (storage.noftables > 0 and storage.noftables ) or storage.max-storage.min + 1 + local tofmodules = storage.tofmodules or 0 + local tofdumps = storage.toftables or 0 + return format("%s modules (%0.3f sec), %s tables (%0.3f sec), %s chunks (%0.3f sec)", + nofmodules, tofmodules, + nofdumps, tofdumps, + nofmodules + nofdumps, tofmodules + tofdumps + ) end) if lua.bytedata then |