Closed Qualenritter closed 5 years ago
I have overhauled the tracing facilities a bit, which impacts this PR.
'debug' option verifies that all trace-enter have a matching trace-leave.
This should not be necessary anymore, since the leave call is now implicit if the macros are used.
'timer' measures the time spend in each function
I have integrated this into the normal echo output. Are you still missing information?
'sqltimer' formats the output such that it could be used to create an sqltable to search the measured timings. j_trace_flush can be used to print all measured timings, AND resets all the timers. This could be useful if there are multiple 'equal' stack traces, where the measured times should be separated
These two will have to be rebased on top of the new tracing if still necessary. Let's discuss on Friday.
removed never used variable from 'struct JTrace'
Good catch!
'debug' option verifies that all trace-enter have a matching trace-leave.
'timer' measures the time spend in each function
'sqltimer' formats the output such that it could be used to create an sqltable to search the measured timings.
j_trace_flush can be used to print all measured timings, AND resets all the timers. This could be useful if there are multiple 'equal' stack traces, where the measured times should be separated
removed never used variable from 'struct JTrace'