webmcp

view framework/env/trace/_open_section.lua @ 428:52ebde158c92

Fixed minor glitch regarding floating point numbers (e.g. 0.009) in JSON encoder; Distinguish between integers and floats in JSON encoder if Lua version >= 5.3
author jbe
date Thu Jan 14 17:40:49 2016 +0100 (2016-01-14)
parents 04b648660f9a
children
line source
1 function trace._open_section(node)
2 local node = trace._new_entry(node)
3 node.section = true
4 node.db_time = 0
5 node.start_real_time = extos.monotonic_hires_time()
6 node.start_proc_time = os.clock()
7 local stack = trace._stack
8 stack[#stack+1] = node
9 return node
10 end

Impressum / About Us