tenzr::profiler::TraceSession¶
RAII helper that starts profiling on construction and exports on destruction.
#include <trace.h>
Public Functions¶
| Name | |
|---|---|
| TraceSession(std::string path ="tenzr_profile.trace.json") | |
| ~TraceSession() | |
| void | Stop() Stop recording and export the trace (idempotent). |
| TraceSession(const TraceSession & ) =delete | |
| TraceSession & | operator=(const TraceSession & ) =delete |
| TraceSession(TraceSession && ) =default | |
| TraceSession & | operator=(TraceSession && ) =default |
Public Functions Documentation¶
function TraceSession¶
function ~TraceSession¶
function Stop¶
Stop recording and export the trace (idempotent).