LLVM 19.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 ()
 

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 147 of file TimeProfiler.h.

Constructor & Destructor Documentation

◆ TimeTraceScope() [1/6]

llvm::TimeTraceScope::TimeTraceScope ( )
delete

◆ TimeTraceScope() [2/6]

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

◆ TimeTraceScope() [3/6]

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

◆ TimeTraceScope() [4/6]

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

◆ TimeTraceScope() [5/6]

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

◆ TimeTraceScope() [6/6]

llvm::TimeTraceScope::TimeTraceScope ( StringRef  Name,
llvm::function_ref< std::string()>  Detail 
)
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: