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

Default Profiler Policy: Zero-overhead, completely compiled out by inline empty functions. More...

#include <ProfilerPolicies.hpp>

+ Collaboration diagram for corium::profiler::NullProfiler:

Public Member Functions

constexpr NullProfiler () noexcept=default
 
template<typename EventVariant >
void onEventDispatched (const EventVariant &, uint8_t, uint64_t, uint64_t, uint64_t) noexcept
 
template<typename EventVariant >
void onEventPosted (const EventVariant &, uint8_t) noexcept
 
void recordPostTime (uint64_t) noexcept
 No-op: NullProfiler does not track post timestamps.
 
uint64_t takePostTime () noexcept
 No-op: always returns 0 (NullProfiler has no timestamps).
 

Static Public Member Functions

static constexpr uint64_t nowNs () noexcept
 

Detailed Description

Default Profiler Policy: Zero-overhead, completely compiled out by inline empty functions.

Constructor & Destructor Documentation

◆ NullProfiler()

constexpr corium::profiler::NullProfiler::NullProfiler ( )
constexprdefaultnoexcept

Member Function Documentation

◆ nowNs()

static constexpr uint64_t corium::profiler::NullProfiler::nowNs ( )
inlinestaticconstexprnoexcept

◆ onEventDispatched()

template<typename EventVariant >
void corium::profiler::NullProfiler::onEventDispatched ( const EventVariant &  ,
uint8_t  ,
uint64_t  ,
uint64_t  ,
uint64_t   
)
inlinenoexcept

◆ onEventPosted()

template<typename EventVariant >
void corium::profiler::NullProfiler::onEventPosted ( const EventVariant &  ,
uint8_t   
)
inlinenoexcept

◆ recordPostTime()

void corium::profiler::NullProfiler::recordPostTime ( uint64_t  )
inlinenoexcept

No-op: NullProfiler does not track post timestamps.

◆ takePostTime()

uint64_t corium::profiler::NullProfiler::takePostTime ( )
inlinenoexcept

No-op: always returns 0 (NullProfiler has no timestamps).


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