Adding a tracepoint in code
A user-defined tracepoint is a point within the code of a C UDR that can send special information about the current executing state of that routine.
About this task
To use a user-defined tracepoint:
Procedure
- Choose the trace class for the tracepoint.
- Put trace messages into the UDR code.
A tracepoint contains a trace message whose text you want to output. You assign to each tracepoint a trace class and a threshold level. If a tracepoint threshold is not greater than the current trace level, the DataBlade® API writes the associated trace message to the trace output file.
- Turn tracing on with an appropriate trace level for the
tracepoints that you want to execute.
You assign the current trace level when you turn on tracing with the mi_tracelevel_set() function.