webmcp

annotate framework/env/trace/_open_section.lua @ 445:8145293e3f4a

Do not use luaL_addchar unless Lua string buffer is on top of stack (possible segmentation fault)
author jbe
date Mon May 16 15:41:58 2016 +0200 (2016-05-16)
parents 04b648660f9a
children
rev   line source
jbe/bsw@0 1 function trace._open_section(node)
jbe/bsw@0 2 local node = trace._new_entry(node)
jbe/bsw@0 3 node.section = true
jbe@302 4 node.db_time = 0
jbe@299 5 node.start_real_time = extos.monotonic_hires_time()
jbe@299 6 node.start_proc_time = os.clock()
jbe@302 7 local stack = trace._stack
jbe@302 8 stack[#stack+1] = node
jbe/bsw@0 9 return node
jbe/bsw@0 10 end

Impressum / About Us