TEC
A lightweight C++ library enabling safe, efficient execution in multithreaded and concurrent systems.
Loading...
Searching...
No Matches
tec_trace.hpp File Reference

Provides a thread-safe tracing utility for debugging in the tec namespace. More...

#include <ostream>
#include <string>
#include <mutex>
#include "tec/tec_def.hpp"
#include "tec/tec_print.hpp"
#include "tec/tec_utils.hpp"

Go to the source code of this file.

Classes

struct  tec::details::trace_mutex
 Provides a global mutex for synchronizing trace output. More...
 
class  tec::Tracer< Duration >
 A thread-safe tracer for logging entry, exit, and custom messages. More...
 

Macros

#define _TEC_TRACE_RES   MilliSec
 
#define TEC_ENTER(name)
 Logs an entry message for a named context (e.g., function).
 
#define TEC_TRACE(...)
 Logs a formatted trace message.
 

Detailed Description

Provides a thread-safe tracing utility for debugging in the tec namespace.

Author
The Emacs Cat
Date
2023-09-17