Internal implementation of the tracing subsystem.
More...
|
| void | kanzi::addTracingDurationEvent (uint16_t category, const string &name, TraceTimePoint start, TraceTimePoint end) noexcept |
| | Record a duration event with a dynamic name.
|
| |
| void | kanzi::addTracingDurationEvent (uint16_t category, FixedString name, TraceTimePoint start, TraceTimePoint end) noexcept |
| | Record a duration event with a static name.
|
| |
| void | kanzi::addTracingFrameEvent (TraceTimePoint time) noexcept |
| | Record a frame event.
|
| |
| void | kanzi::addTracingInstantEvent (uint16_t category, FixedString name, TraceTimePoint time) noexcept |
| | Record an instant event with a static name.
|
| |
| void | kanzi::addTracingSample (uint16_t category, FixedString name, TraceTimePoint time, double data) noexcept |
| | Record a floating point sample event with a static name.
|
| |
| void | kanzi::addTracingSample (uint16_t category, FixedString name, TraceTimePoint time, int64_t data) noexcept |
| | Record an integer sample event with a static name.
|
| |
| void | kanzi::applyTracingApplicationSettings (const TracingSettings &settings) |
| | Apply tracing settings.
|
| |
| void | kanzi::initializeTracing () |
| | Initialize the tracing subsystem.
|
| |
| void | kanzi::setTracingThreadName (string_view name) |
| | Sets the current thread name within the tracing system.
|
| |
Internal implementation of the tracing subsystem.
These methods should not be used directly, instead use the Configuration macros and Scope macros that are automatically enabled and disabled in different build configurations.
◆ TraceTimePoint
The standard time point for the Tracing subsystem.
◆ initializeTracing()
| void kanzi::initializeTracing |
( |
| ) |
|
Initialize the tracing subsystem.
This should be called once at startup.
It is not recommended to call this function directly, call kzTraceInitialize() instead.
◆ setTracingThreadName()
| void kanzi::setTracingThreadName |
( |
string_view | name | ) |
|
Sets the current thread name within the tracing system.
It is not recommended to call this function directly, use kzTraceSetThreadName macro instead.
- Parameters
-
◆ applyTracingApplicationSettings()
Apply tracing settings.
This should be called once shortly after startup.
It is not recommended to call this function directly, use kzTraceApplySettings macro instead.
- Parameters
-
| settings | The tracing subsystem settings. |
◆ addTracingDurationEvent() [1/2]
Record a duration event with a static name.
It is not recommended to call this function directly, use kzTrace macro instead.
- Parameters
-
| category | The category id. |
| name | The static name. |
| start | The timepoint for the start of the duration event. |
| end | The timepoint for the end of the duration event. |
◆ addTracingDurationEvent() [2/2]
Record a duration event with a dynamic name.
It is not recommended to call this function directly, use kzTraceDynamic macro instead.
- Parameters
-
| category | The category id. |
| name | The dynamic name. |
| start | The timepoint for the start of the duration event. |
| end | The timepoint for the end of the duration event. |
◆ addTracingInstantEvent()
Record an instant event with a static name.
It is not recommended to call this function directly, use kzTraceInstant macro instead.
- Parameters
-
| category | The category id. |
| name | The static name. |
| time | The timepoint for the event. |
◆ addTracingFrameEvent()
Record a frame event.
It is not recommended to call this function directly, use kzTraceAdvanceFrame macro instead.
- Parameters
-
| time | The timepoint for the event. |
◆ addTracingSample() [1/2]
Record an integer sample event with a static name.
It is not recommended to call this function directly, use kzTraceSample macro instead.
- Parameters
-
| category | The category id. |
| name | The static name. |
| time | The timepoint for the event. |
| data | The event value. |
◆ addTracingSample() [2/2]
Record a floating point sample event with a static name.
It is not recommended to call this function directly, use kzTraceSample macro instead.
- Parameters
-
| category | The category id. |
| name | The static name. |
| time | The timepoint for the event. |
| data | The event value. |