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, bool Ae)
 
 TimeTraceProfilerEntry (TimePointType &&S, TimePointType &&E, std::string &&N, TimeTraceMetadata &&Mt, bool Ae)
 
ClockType::rep getFlameGraphStartUs (TimePointType StartTime) const
 
ClockType::rep getFlameGraphDurUs () const
 

Public Attributes

const TimePointType Start
 
TimePointType End
 
const std::string Name
 
TimeTraceMetadata Metadata
 
const bool AsyncEvent = false
 

Detailed Description

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

Definition at line 72 of file TimeProfiler.cpp.

Constructor & Destructor Documentation

◆ TimeTraceProfilerEntry() [1/2]

llvm::TimeTraceProfilerEntry::TimeTraceProfilerEntry ( TimePointType &&  S,
TimePointType &&  E,
std::string &&  N,
std::string &&  Dt,
bool  Ae 
)
inline

Definition at line 79 of file TimeProfiler.cpp.

◆ TimeTraceProfilerEntry() [2/2]

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

Definition at line 86 of file TimeProfiler.cpp.

Member Function Documentation

◆ getFlameGraphDurUs()

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

Definition at line 100 of file TimeProfiler.cpp.

References End, and Start.

◆ getFlameGraphStartUs()

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

Definition at line 94 of file TimeProfiler.cpp.

References Start.

Member Data Documentation

◆ AsyncEvent

const bool llvm::TimeTraceProfilerEntry::AsyncEvent = false

Definition at line 78 of file TimeProfiler.cpp.

◆ End

TimePointType llvm::TimeTraceProfilerEntry::End

Definition at line 74 of file TimeProfiler.cpp.

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

◆ Metadata

TimeTraceMetadata llvm::TimeTraceProfilerEntry::Metadata

Definition at line 76 of file TimeProfiler.cpp.

◆ Name

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

Definition at line 75 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: