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

Atomic 64-bit signed gauge metric representing instantaneous level. More...

#include <Metrics.hpp>

+ Collaboration diagram for corium::profiler::Gauge:

Public Member Functions

void decrement (int64_t val=1) noexcept
 Decrement gauge.
 
constexpr Gauge (std::string_view name, std::string_view help="") noexcept
 
int64_t get () const noexcept
 Current gauge value.
 
std::string_view help () const noexcept
 
void increment (int64_t val=1) noexcept
 Increment gauge.
 
std::string_view name () const noexcept
 
void set (int64_t val) noexcept
 Set gauge to an absolute value.
 

Detailed Description

Atomic 64-bit signed gauge metric representing instantaneous level.

Constructor & Destructor Documentation

◆ Gauge()

constexpr corium::profiler::Gauge::Gauge ( std::string_view  name,
std::string_view  help = "" 
)
inlineexplicitconstexprnoexcept

Member Function Documentation

◆ decrement()

void corium::profiler::Gauge::decrement ( int64_t  val = 1)
inlinenoexcept

Decrement gauge.

◆ get()

int64_t corium::profiler::Gauge::get ( ) const
inlinenoexcept

Current gauge value.

◆ help()

std::string_view corium::profiler::Gauge::help ( ) const
inlinenoexcept

◆ increment()

void corium::profiler::Gauge::increment ( int64_t  val = 1)
inlinenoexcept

Increment gauge.

◆ name()

std::string_view corium::profiler::Gauge::name ( ) const
inlinenoexcept

◆ set()

void corium::profiler::Gauge::set ( int64_t  val)
inlinenoexcept

Set gauge to an absolute value.


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