LLVM 20.0.0git
Public Member Functions | List of all members
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 163 of file TimeProfiler.h.

Constructor & Destructor Documentation

◆ TimeTraceScope() [1/7]

llvm::TimeTraceScope::TimeTraceScope ( )
delete

◆ TimeTraceScope() [2/7]

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

◆ TimeTraceScope() [3/7]

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

◆ TimeTraceScope() [4/7]

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

◆ TimeTraceScope() [5/7]

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

◆ TimeTraceScope() [6/7]

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

◆ TimeTraceScope() [7/7]

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

◆ ~TimeTraceScope()

llvm::TimeTraceScope::~TimeTraceScope ( )
inline

Member Function Documentation

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

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