LLVM  10.0.0svn
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 ()
 
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
 
TimePointType StartTime
 
unsigned TimeTraceGranularity
 

Detailed Description

Definition at line 61 of file TimeProfiler.cpp.

Constructor & Destructor Documentation

◆ TimeTraceProfiler()

llvm::TimeTraceProfiler::TimeTraceProfiler ( )
inline

Definition at line 62 of file TimeProfiler.cpp.

References now().

Member Function Documentation

◆ begin()

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

Definition at line 66 of file TimeProfiler.cpp.

References now().

Referenced by llvm::timeTraceProfilerBegin().

◆ end()

void llvm::TimeTraceProfiler::end ( )
inline

Definition at line 71 of file TimeProfiler.cpp.

References assert(), E, llvm::find_if(), and now().

Referenced by llvm::timeTraceProfilerEnd().

◆ Write()

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

Definition at line 106 of file TimeProfiler.cpp.

References assert(), B, llvm::count(), E, and llvm::sort().

Referenced by llvm::timeTraceProfilerWrite().

Member Data Documentation

◆ CountAndTotalPerName

StringMap<CountAndDurationType> llvm::TimeTraceProfiler::CountAndTotalPerName

Definition at line 181 of file TimeProfiler.cpp.

◆ Entries

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

Definition at line 180 of file TimeProfiler.cpp.

◆ Stack

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

Definition at line 179 of file TimeProfiler.cpp.

◆ StartTime

TimePointType llvm::TimeTraceProfiler::StartTime

Definition at line 182 of file TimeProfiler.cpp.

◆ TimeTraceGranularity

unsigned llvm::TimeTraceProfiler::TimeTraceGranularity

Definition at line 185 of file TimeProfiler.cpp.

Referenced by llvm::timeTraceProfilerInitialize().


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