ark::perf::ScopedTrace

Defined in header “ark/perf/tracer.hh”.


This class provides RAII semantics for starting/stopping a trace. You only need to instantiate the class, you don’t need to worry about stopping it, it will stop when your scope exits.

Methods

  • ScopedTrace(const char * name)
    Constructor, starts a trace with the given name.

  • ScopedTrace(const std::string & name)
    Constructor, starts a trace with the given name.

  • ~ScopedTrace()
    Destructor, finishes the scope.