diff options
author | Marius <mariausol@gmail.com> | 2010-09-03 12:35:26 +0300 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2010-09-03 12:35:26 +0300 |
commit | 16895587e51f8243a7e4dc6185979894fb199d4f (patch) | |
tree | 923fe9fe4d34a11202e06a4258ba71bab6ccde8d /scripts/context/lua/mtx-profile.lua | |
parent | 20da4ce347921be291c8804041bd8756e3bf1707 (diff) | |
download | context-16895587e51f8243a7e4dc6185979894fb199d4f.tar.gz |
beta 2010.09.03 11:05
Diffstat (limited to 'scripts/context/lua/mtx-profile.lua')
-rw-r--r-- | scripts/context/lua/mtx-profile.lua | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/scripts/context/lua/mtx-profile.lua b/scripts/context/lua/mtx-profile.lua index e9a69762b..d78e3457a 100644 --- a/scripts/context/lua/mtx-profile.lua +++ b/scripts/context/lua/mtx-profile.lua @@ -23,7 +23,7 @@ local calltemplate = "%9i %s" local totaltemplate = "%i internal calls, %i function calls taking %3.4f seconds" local thresholdtemplate = "thresholds: %i internal calls, %i function calls, %i seconds" -function scripts.profiler.analyse(filename) +function scripts.profiler.analyze(filename) local f = io.open(filename) if f then local times, counts, calls = { }, { }, { } @@ -101,7 +101,7 @@ function scripts.profiler.analyse(filename) end end -function scripts.profiler.x_analyse(filename) +function scripts.profiler.x_analyze(filename) local f = io.open(filename) local calls = { } local lines = 0 @@ -151,20 +151,20 @@ local criterium = 100 end end ---~ scripts.profiler.analyse("t:/manuals/mk/mk-fonts-profile.lua") ---~ scripts.profiler.analyse("t:/manuals/mk/mk-introduction-profile.lua") +--~ scripts.profiler.analyze("t:/manuals/mk/mk-fonts-profile.lua") +--~ scripts.profiler.analyze("t:/manuals/mk/mk-introduction-profile.lua") logs.extendbanner("ConTeXt MkIV LuaTeX Profiler 1.00") messages.help = [[ ---analyse analyse lua calls ---trace analyse tex calls +--analyze analyze lua calls +--trace analyze tex calls ]] -if environment.argument("analyse") then - scripts.profiler.analyse(environment.files[1] or "luatex-profile.log") +if environment.argument("analyze") then + scripts.profiler.analyze(environment.files[1] or "luatex-profile.log") elseif environment.argument("trace") then - scripts.profiler.analyse(environment.files[1] or "temp.log") + scripts.profiler.analyze(environment.files[1] or "temp.log") else logs.help(messages.help) end |