Corium 1.1.0
High-Performance Zero-Heap C++20 MPSC Application Runtime
Loading...
Searching...
No Matches
corium::profiler::FlightRecord Struct Reference

Represents a single traced event record in the circular flight recorder. More...

#include <FlightRecorder.hpp>

+ Collaboration diagram for corium::profiler::FlightRecord:

Public Member Functions

double executionDurationUs () const noexcept
 Calculate duration of handler execution in microseconds.
 
double queueLatencyUs () const noexcept
 Calculate latency spent waiting in queue before dispatch in microseconds.
 
double totalDurationUs () const noexcept
 Calculate total turnaround time from post to finish in microseconds.
 

Public Attributes

uint64_t dispatchTimestampNs {0}
 
const char * eventName {nullptr}
 
std::size_t eventTypeId {0}
 
uint64_t finishTimestampNs {0}
 
uint64_t postTimestampNs {0}
 
uint8_t priority {0}
 

Detailed Description

Represents a single traced event record in the circular flight recorder.

Member Function Documentation

◆ executionDurationUs()

double corium::profiler::FlightRecord::executionDurationUs ( ) const
inlinenoexcept

Calculate duration of handler execution in microseconds.

+ Here is the caller graph for this function:

◆ queueLatencyUs()

double corium::profiler::FlightRecord::queueLatencyUs ( ) const
inlinenoexcept

Calculate latency spent waiting in queue before dispatch in microseconds.

+ Here is the caller graph for this function:

◆ totalDurationUs()

double corium::profiler::FlightRecord::totalDurationUs ( ) const
inlinenoexcept

Calculate total turnaround time from post to finish in microseconds.

Member Data Documentation

◆ dispatchTimestampNs

uint64_t corium::profiler::FlightRecord::dispatchTimestampNs {0}

◆ eventName

const char* corium::profiler::FlightRecord::eventName {nullptr}

◆ eventTypeId

std::size_t corium::profiler::FlightRecord::eventTypeId {0}

◆ finishTimestampNs

uint64_t corium::profiler::FlightRecord::finishTimestampNs {0}

◆ postTimestampNs

uint64_t corium::profiler::FlightRecord::postTimestampNs {0}

◆ priority

uint8_t corium::profiler::FlightRecord::priority {0}

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