Skip to content

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

inline explicit TraceSession(
    std::string path ="tenzr_profile.trace.json"
)

function ~TraceSession

inline ~TraceSession()

function Stop

inline void Stop()

Stop recording and export the trace (idempotent).

function TraceSession

TraceSession(
    const TraceSession & 
) =delete

function operator=

TraceSession & operator=(
    const TraceSession & 
) =delete

function TraceSession

TraceSession(
    TraceSession && 
) =default

function operator=

TraceSession & operator=(
    TraceSession && 
) =default