webmcp

diff framework/env/trace/_close_section.lua @ 299:47c5f33e4a6b

Trace real time and CPU time
author jbe
date Sun Mar 22 19:25:38 2015 +0100 (2015-03-22)
parents 0de41d8e2cf8
children
line diff
     1.1 --- a/framework/env/trace/_close_section.lua	Sun Mar 22 18:58:50 2015 +0100
     1.2 +++ b/framework/env/trace/_close_section.lua	Sun Mar 22 19:25:38 2015 +0100
     1.3 @@ -4,8 +4,8 @@
     1.4    if not closed_section then
     1.5      error("All trace sections have been closed already.")
     1.6    end
     1.7 -  closed_section.stop_hires_time = extos.monotonic_hires_time()
     1.8 -  --trace.debug("END " .. extos.monotonic_hires_time() .. " / " .. os.clock())
     1.9 +  closed_section.stop_real_time = extos.monotonic_hires_time()
    1.10 +  closed_section.stop_proc_time = os.clock()
    1.11    trace._stack[pos] = nil
    1.12    return closed_section
    1.13  end

Impressum / About Us