webmcp

annotate framework/env/trace/_open_section.lua @ 440:66d7a0ac9c9d

Allow <db_handle>:create_list(...) to create a non-empty list by passing a table as argument (needed for references)
author jbe
date Tue Feb 09 20:09:34 2016 +0100 (2016-02-09)
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