LLVM  11.0.0git
Public Member Functions | Public Attributes | List of all members
llvm::TimeTraceProfiler Struct Reference
Collaboration diagram for llvm::TimeTraceProfiler:
Collaboration graph
[legend]

Public Member Functions

 TimeTraceProfiler (unsigned TimeTraceGranularity=0, StringRef ProcName="")
 
void begin (std::string Name, llvm::function_ref< std::string()> Detail)
 
void end ()
 
void write (raw_pwrite_stream &OS)
 

Public Attributes

SmallVector< Entry, 16 > Stack
 
SmallVector< Entry, 128 > Entries
 
StringMap< CountAndDurationTypeCountAndTotalPerName
 
const time_point< system_clock > BeginningOfTime
 
const TimePointType StartTime
 
const std::string ProcName
 
const sys::Process::Pid Pid
 
SmallString< 0 > ThreadName
 
const uint64_t Tid
 
const unsigned TimeTraceGranularity
 

Detailed Description

Definition at line 76 of file TimeProfiler.cpp.

Constructor & Destructor Documentation

◆ TimeTraceProfiler()

llvm::TimeTraceProfiler::TimeTraceProfiler ( unsigned  TimeTraceGranularity = 0,
StringRef  ProcName = "" 
)
inline

Definition at line 77 of file TimeProfiler.cpp.

References llvm::get_thread_name().

Member Function Documentation

◆ begin()

void llvm::TimeTraceProfiler::begin ( std::string  Name,
llvm::function_ref< std::string()>  Detail 
)
inline

Definition at line 84 of file TimeProfiler.cpp.

References now().

Referenced by llvm::timeTraceProfilerBegin().

◆ end()

void llvm::TimeTraceProfiler::end ( )
inline

Definition at line 89 of file TimeProfiler.cpp.

References assert().

Referenced by llvm::timeTraceProfilerEnd().

◆ write()

void llvm::TimeTraceProfiler::write ( raw_pwrite_stream OS)
inline

Member Data Documentation

◆ BeginningOfTime

const time_point<system_clock> llvm::TimeTraceProfiler::BeginningOfTime

Definition at line 252 of file TimeProfiler.cpp.

◆ CountAndTotalPerName

StringMap<CountAndDurationType> llvm::TimeTraceProfiler::CountAndTotalPerName

Definition at line 251 of file TimeProfiler.cpp.

◆ Entries

SmallVector<Entry, 128> llvm::TimeTraceProfiler::Entries

Definition at line 250 of file TimeProfiler.cpp.

◆ Pid

const sys::Process::Pid llvm::TimeTraceProfiler::Pid

Definition at line 255 of file TimeProfiler.cpp.

◆ ProcName

const std::string llvm::TimeTraceProfiler::ProcName

Definition at line 254 of file TimeProfiler.cpp.

◆ Stack

SmallVector<Entry, 16> llvm::TimeTraceProfiler::Stack

Definition at line 249 of file TimeProfiler.cpp.

◆ StartTime

const TimePointType llvm::TimeTraceProfiler::StartTime

Definition at line 253 of file TimeProfiler.cpp.

◆ ThreadName

SmallString<0> llvm::TimeTraceProfiler::ThreadName

Definition at line 256 of file TimeProfiler.cpp.

◆ Tid

const uint64_t llvm::TimeTraceProfiler::Tid

Definition at line 257 of file TimeProfiler.cpp.

◆ TimeTraceGranularity

const unsigned llvm::TimeTraceProfiler::TimeTraceGranularity

Definition at line 260 of file TimeProfiler.cpp.


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