LLVM 19.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)
 
ClockType::rep getFlameGraphStartUs (TimePointType StartTime) const
 
ClockType::rep getFlameGraphDurUs () const
 

Public Attributes

const TimePointType Start
 
TimePointType End
 
const std::string Name
 
const std::string Detail
 
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()

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

Definition at line 78 of file TimeProfiler.cpp.

Member Function Documentation

◆ getFlameGraphDurUs()

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

Definition at line 92 of file TimeProfiler.cpp.

References End, and Start.

◆ getFlameGraphStartUs()

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

Definition at line 86 of file TimeProfiler.cpp.

References Start.

Member Data Documentation

◆ AsyncEvent

const bool llvm::TimeTraceProfilerEntry::AsyncEvent = false

Definition at line 77 of file TimeProfiler.cpp.

◆ Detail

const std::string llvm::TimeTraceProfilerEntry::Detail

Definition at line 76 of file TimeProfiler.cpp.

◆ End

TimePointType llvm::TimeTraceProfilerEntry::End

Definition at line 74 of file TimeProfiler.cpp.

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

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