LLVM 22.0.0git
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.

References End, EventType, Metadata, llvm::move(), N, Name, and Start.

◆ 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.

References End, EventType, Metadata, llvm::move(), N, Name, and Start.

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

◆ EventType

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

Definition at line 79 of file TimeProfiler.cpp.

Referenced by TimeTraceProfilerEntry(), and TimeTraceProfilerEntry().

◆ Metadata

TimeTraceMetadata llvm::TimeTraceProfilerEntry::Metadata

Definition at line 77 of file TimeProfiler.cpp.

Referenced by TimeTraceProfilerEntry(), and TimeTraceProfilerEntry().

◆ Name

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

Definition at line 76 of file TimeProfiler.cpp.

Referenced by TimeTraceProfilerEntry(), and TimeTraceProfilerEntry().

◆ Start

const TimePointType llvm::TimeTraceProfilerEntry::Start

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