struct TimeTraceScope

Declaration

struct TimeTraceScope { /* full declaration omitted */ };

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.

Declared at: llvm/include/llvm/Support/TimeProfiler.h:53

Method Overview

Methods

TimeTraceScope()

Declared at: llvm/include/llvm/Support/TimeProfiler.h:55

TimeTraceScope(const llvm::TimeTraceScope&)

Declared at: llvm/include/llvm/Support/TimeProfiler.h:56

Parameters

const llvm::TimeTraceScope&

TimeTraceScope(llvm::TimeTraceScope&&)

Declared at: llvm/include/llvm/Support/TimeProfiler.h:58

Parameters

llvm::TimeTraceScope&&

TimeTraceScope(llvm::StringRef Name)

Declared at: llvm/include/llvm/Support/TimeProfiler.h:61

Parameters

llvm::StringRef Name

TimeTraceScope(llvm::StringRef Name,
               llvm::StringRef Detail)

Declared at: llvm/include/llvm/Support/TimeProfiler.h:65

Parameters

llvm::StringRef Name
llvm::StringRef Detail

TimeTraceScope(
    llvm::StringRef Name,
    llvm::function_ref<std::string()> Detail)

Declared at: llvm/include/llvm/Support/TimeProfiler.h:69

Parameters

llvm::StringRef Name
llvm::function_ref<std::string()> Detail

~TimeTraceScope()

Declared at: llvm/include/llvm/Support/TimeProfiler.h:73