diff options
Diffstat (limited to 'tex/context/base/mkiv/page-run.lua')
-rw-r--r-- | tex/context/base/mkiv/page-run.lua | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/tex/context/base/mkiv/page-run.lua b/tex/context/base/mkiv/page-run.lua index c0a2022b2..88a7d6664 100644 --- a/tex/context/base/mkiv/page-run.lua +++ b/tex/context/base/mkiv/page-run.lua @@ -186,3 +186,38 @@ function commands.showlayout(options) end +local report = logs.reporter("usage") + +function commands.showusage() + report("") + report("status after shipping out page %s",tex.getcount("realpageno")) + report("") + report(" filename : %s", status.filename) + report(" inputid : %s", status.inputid) + report(" linenumber : %s", status.linenumber) + report(" input pointer : %s", status.input_ptr) + report("") + report(" string pointer : %s of %s", status.str_ptr, status.max_strings + status.init_str_ptr) + report(" pool size : %s", status.pool_size) + report("") + report(" node memory usage : %s of %s", status.node_mem_usage, status.var_mem_max) + report(" fixex memory end : %s of %s", status.fix_mem_end, status.fix_mem_max) + report("") + report(" cs count : %s of %s", status.cs_count, status.hash_size + status.hash_extra) + report("") + report(" stack size : %s of %s", status.max_in_stack, status.stack_size) + report(" nest size : %s of %s", status.max_nest_stack, status.nest_size) + report(" parameter size : %s of %s", status.max_param_stack, status.param_size) + report(" buffer size : %s of %s", status.max_buf_stack, status.buf_size) + report(" save size : %s of %s", status.max_save_stack, status.save_size) + report("") + report(" luabytecode bytes : %s in %s registers", status.luabytecode_bytes, status.luabytecodes) + report(" luastate bytes : %s", status.luastate_bytes) + report("") + report(" callbacks : %s", status.callbacks) + report(" indirect callbacks : %s", status.indirect_callbacks) + report(" saved callbacks : %s", status.saved_callbacks) + report(" direct callbacks : %s", status.direct_callbacks) + report(" function callbacks : %s", status.function_callbacks) + report("") +end |