LLVM 22.0.0git
llvm::TimeTraceScope Class Reference

The TimeTraceScope is a helper class to call the begin and end functions of the time trace profiler. More...

#include "llvm/Support/TimeProfiler.h"

Public Member Functions

 TimeTraceScope ()=delete
 TimeTraceScope (const TimeTraceScope &)=delete
TimeTraceScopeoperator= (const TimeTraceScope &)=delete
 TimeTraceScope (TimeTraceScope &&)=delete
TimeTraceScopeoperator= (TimeTraceScope &&)=delete
 TimeTraceScope (StringRef Name)
 TimeTraceScope (StringRef Name, StringRef Detail)
 TimeTraceScope (StringRef Name, llvm::function_ref< std::string()> Detail)
 TimeTraceScope (StringRef Name, llvm::function_ref< TimeTraceMetadata()> Metadata)
 ~TimeTraceScope ()

Detailed 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.

Definition at line 182 of file TimeProfiler.h.

Constructor & Destructor Documentation

◆ TimeTraceScope() [1/7]

llvm::TimeTraceScope::TimeTraceScope ( )
delete

◆ TimeTraceScope() [2/7]

llvm::TimeTraceScope::TimeTraceScope ( const TimeTraceScope & )
delete

References TimeTraceScope().

◆ TimeTraceScope() [3/7]

llvm::TimeTraceScope::TimeTraceScope ( TimeTraceScope && )
delete

References TimeTraceScope().

◆ TimeTraceScope() [4/7]

llvm::TimeTraceScope::TimeTraceScope ( StringRef Name)
inline

Definition at line 190 of file TimeProfiler.h.

References llvm::timeTraceProfilerBegin().

◆ TimeTraceScope() [5/7]

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

Definition at line 192 of file TimeProfiler.h.

References llvm::timeTraceProfilerBegin().

◆ TimeTraceScope() [6/7]

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

Definition at line 194 of file TimeProfiler.h.

References llvm::timeTraceProfilerBegin().

◆ TimeTraceScope() [7/7]

llvm::TimeTraceScope::TimeTraceScope ( StringRef Name,
llvm::function_ref< TimeTraceMetadata()> Metadata )
inline

Definition at line 196 of file TimeProfiler.h.

References llvm::timeTraceProfilerBegin().

◆ ~TimeTraceScope()

llvm::TimeTraceScope::~TimeTraceScope ( )
inline

Definition at line 199 of file TimeProfiler.h.

References llvm::timeTraceProfilerEnd().

Member Function Documentation

◆ operator=() [1/2]

TimeTraceScope & llvm::TimeTraceScope::operator= ( const TimeTraceScope & )
delete

References TimeTraceScope().

◆ operator=() [2/2]

TimeTraceScope & llvm::TimeTraceScope::operator= ( TimeTraceScope && )
delete

References TimeTraceScope().


The documentation for this class was generated from the following file: