Corium 1.1.0
High-Performance Zero-Heap C++20 MPSC Application Runtime
Loading...
Searching...
No Matches
corium::profiler::PostTimestampQueue< Capacity > Class Template Reference

#include <ProfilerPolicies.hpp>

+ Inheritance diagram for corium::profiler::PostTimestampQueue< Capacity >:
+ Collaboration diagram for corium::profiler::PostTimestampQueue< Capacity >:

Public Member Functions

void recordPostTime (uint64_t postNs) noexcept
 Record the post timestamp for an event being pushed into the event queue.
 
uint64_t takePostTime () noexcept
 Pop and return the oldest recorded post timestamp (called at dispatch time).
 

Member Function Documentation

◆ recordPostTime()

template<std::size_t Capacity = 1024>
void corium::profiler::PostTimestampQueue< Capacity >::recordPostTime ( uint64_t  postNs)
inlinenoexcept

Record the post timestamp for an event being pushed into the event queue.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ takePostTime()

template<std::size_t Capacity = 1024>
uint64_t corium::profiler::PostTimestampQueue< Capacity >::takePostTime ( )
inlinenoexcept

Pop and return the oldest recorded post timestamp (called at dispatch time).

Returns
The post timestamp, or 0 if the queue is empty (should not happen in steady state).
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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