llvm::TimeTraceScope

RAII helper that begins a time-trace section and ends it on destruction.

Synopsis

Declared in <llvm/Support/TimeProfiler.h>

class TimeTraceScope;

Description

The TimeTraceScope is a helper class to call the begin and end functions of the time trace profiler. When the object is constructed, it begins the section; and when it is destroyed, it stops it. If the time profiler is not initialized, the overhead is a single branch.

Member Functions

NameDescription
TimeTraceScope [constructor]Constructors
~TimeTraceScope [destructor]End the time-trace section begun by this scope, if any.
operator= Assignment operators