|
Yaets
|
#include <chrono>#include <cstdint>#include <string>#include <mutex>#include <queue>#include <condition_variable>#include <thread>#include <atomic>#include <unordered_map>#include <memory>#include <vector>

Go to the source code of this file.
Classes | |
| class | NamedSharedTrace |
| Class to manage shared traces across different parts of the code. More... | |
| struct | TraceEvent |
| Structure to represent a trace event. More... | |
| class | TraceGuard |
| Class to manage the trace of a single function execution. More... | |
| class | TraceRegistry |
| Singleton class to manage global NamedSharedTrace instances. More... | |
| class | TraceSession |
| Class to manage a trace session. More... | |
Namespaces | |
| namespace | yaets |
Macros | |
| #define | SHARED_TRACE_END(id) |
| Macro to end a shared trace by its unique identifier. | |
| #define | SHARED_TRACE_INIT(session, id) |
| Macro to initialize a shared trace with a unique identifier. | |
| #define | SHARED_TRACE_START(id) |
| Macro to start a shared trace by its unique identifier. | |
| #define | TRACE_EVENT(session) |
| Macro to create a TraceGuard object for function tracing. | |
| #define SHARED_TRACE_END | ( | id | ) |
Macro to end a shared trace by its unique identifier.
This macro ends the NamedSharedTrace instance associated with the provided trace identifier.
| id | The unique identifier for the trace. |
| #define SHARED_TRACE_INIT | ( | session, | |
| id ) |
Macro to initialize a shared trace with a unique identifier.
This macro registers a new NamedSharedTrace instance with the global TraceRegistry, associated with the provided TraceSession.
| session | The TraceSession to associate with the trace. |
| id | The unique identifier for the trace. |
| #define SHARED_TRACE_START | ( | id | ) |
Macro to start a shared trace by its unique identifier.
This macro starts the NamedSharedTrace instance associated with the provided trace identifier.
| id | The unique identifier for the trace. |
| #define TRACE_EVENT | ( | session | ) |
Macro to create a TraceGuard object for function tracing.
This macro creates a TraceGuard object at the start of the function to automatically trace its execution using the provided TraceSession. The name of the function is automatically captured.