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
- public TimeTraceScope()
- public TimeTraceScope(const llvm::TimeTraceScope &)
- public TimeTraceScope(llvm::TimeTraceScope &&)
- public TimeTraceScope(llvm::StringRef Name)
- public TimeTraceScope(llvm::StringRef Name, llvm::StringRef Detail)
- public TimeTraceScope(llvm::StringRef Name, llvm::function_ref<std::string ()> Detail)
- public ~TimeTraceScope()
Methods
¶TimeTraceScope()
TimeTraceScope()
Declared at: llvm/include/llvm/Support/TimeProfiler.h:55
¶TimeTraceScope(const llvm::TimeTraceScope&)
TimeTraceScope(const llvm::TimeTraceScope&)
Declared at: llvm/include/llvm/Support/TimeProfiler.h:56
Parameters
- const llvm::TimeTraceScope&
¶TimeTraceScope(llvm::TimeTraceScope&&)
TimeTraceScope(llvm::TimeTraceScope&&)
Declared at: llvm/include/llvm/Support/TimeProfiler.h:58
Parameters
¶TimeTraceScope(llvm::StringRef Name)
TimeTraceScope(llvm::StringRef Name)
Declared at: llvm/include/llvm/Support/TimeProfiler.h:61
Parameters
- llvm::StringRef Name
¶TimeTraceScope(llvm::StringRef Name,
llvm::StringRef Detail)
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)
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()
~TimeTraceScope()
Declared at: llvm/include/llvm/Support/TimeProfiler.h:73