LLVM 20.0.0git
Public Member Functions | Public Attributes | List of all members
llvm::TimeTraceProfilerEntry Struct Reference

Represents an open or completed time section entry to be captured. More...

Public Member Functions

 TimeTraceProfilerEntry (TimePointType &&S, TimePointType &&E, std::string &&N, std::string &&Dt, TimeTraceEventType Et)
 
 TimeTraceProfilerEntry (TimePointType &&S, TimePointType &&E, std::string &&N, TimeTraceMetadata &&Mt, TimeTraceEventType Et)
 
ClockType::rep getFlameGraphStartUs (TimePointType StartTime) const
 
ClockType::rep getFlameGraphDurUs () const
 

Public Attributes

const TimePointType Start
 
TimePointType End
 
const std::string Name
 
TimeTraceMetadata Metadata
 
const TimeTraceEventType EventType = TimeTraceEventType::CompleteEvent
 

Detailed Description

Represents an open or completed time section entry to be captured.

Definition at line 73 of file TimeProfiler.cpp.

Constructor & Destructor Documentation

◆ TimeTraceProfilerEntry() [1/2]

llvm::TimeTraceProfilerEntry::TimeTraceProfilerEntry ( TimePointType &&  S,
TimePointType &&  E,
std::string &&  N,
std::string &&  Dt,
TimeTraceEventType  Et 
)
inline

Definition at line 80 of file TimeProfiler.cpp.

◆ TimeTraceProfilerEntry() [2/2]

llvm::TimeTraceProfilerEntry::TimeTraceProfilerEntry ( TimePointType &&  S,
TimePointType &&  E,
std::string &&  N,
TimeTraceMetadata &&  Mt,
TimeTraceEventType  Et 
)
inline

Definition at line 87 of file TimeProfiler.cpp.

Member Function Documentation

◆ getFlameGraphDurUs()

ClockType::rep llvm::TimeTraceProfilerEntry::getFlameGraphDurUs ( ) const
inline

Definition at line 101 of file TimeProfiler.cpp.

References End, and Start.

◆ getFlameGraphStartUs()

ClockType::rep llvm::TimeTraceProfilerEntry::getFlameGraphStartUs ( TimePointType  StartTime) const
inline

Definition at line 95 of file TimeProfiler.cpp.

References Start.

Member Data Documentation

◆ End

TimePointType llvm::TimeTraceProfilerEntry::End

Definition at line 75 of file TimeProfiler.cpp.

Referenced by llvm::TimeTraceProfiler::end(), and getFlameGraphDurUs().

◆ EventType

const TimeTraceEventType llvm::TimeTraceProfilerEntry::EventType = TimeTraceEventType::CompleteEvent

Definition at line 79 of file TimeProfiler.cpp.

◆ Metadata

TimeTraceMetadata llvm::TimeTraceProfilerEntry::Metadata

Definition at line 77 of file TimeProfiler.cpp.

◆ Name

const std::string llvm::TimeTraceProfilerEntry::Name

Definition at line 76 of file TimeProfiler.cpp.

Referenced by llvm::TimeTraceProfiler::end().

◆ Start

const TimePointType llvm::TimeTraceProfilerEntry::Start

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