|
TEC
A lightweight C++ library enabling safe, efficient execution in multithreaded and concurrent systems.
|
Macros for enabling and controlling tracing functionality. More...
Macros | |
| #define | TEC_ENTER(name) |
| Logs an entry message for a named context (e.g., function). | |
| #define | TEC_TRACE(...) |
| Logs a formatted trace message. | |
Macros for enabling and controlling tracing functionality.
These macros provide a convenient interface for tracing when _TEC_TRACE_ON is defined. They are disabled otherwise to avoid performance overhead.
| #define TEC_ENTER | ( | name | ) |
Logs an entry message for a named context (e.g., function).
Creates a Tracer object and calls its enter() method to log a timestamped entry message.
| name | The name of the context to trace (e.g., function name). |
| #define TEC_TRACE | ( | ... | ) |
Logs a formatted trace message.
Calls the trace() method on a Tracer object to log a timestamped message with the provided format string and arguments.
| format_string | The format string containing "{}" placeholders. |
| args | The arguments to include in the trace message. |