Atomic 64-bit monotonically increasing counter.
More...
#include <Metrics.hpp>
|
| constexpr | Counter (std::string_view name, std::string_view help="") noexcept |
| |
| uint64_t | get () const noexcept |
| | Current counter value.
|
| |
| std::string_view | help () const noexcept |
| |
| void | increment (uint64_t val=1) noexcept |
| | Increment counter value.
|
| |
| std::string_view | name () const noexcept |
| |
| void | reset () noexcept |
| | Reset counter to zero.
|
| |
Atomic 64-bit monotonically increasing counter.
◆ Counter()
| constexpr corium::profiler::Counter::Counter |
( |
std::string_view |
name, |
|
|
std::string_view |
help = "" |
|
) |
| |
|
inlineexplicitconstexprnoexcept |
◆ get()
| uint64_t corium::profiler::Counter::get |
( |
| ) |
const |
|
inlinenoexcept |
◆ help()
| std::string_view corium::profiler::Counter::help |
( |
| ) |
const |
|
inlinenoexcept |
◆ increment()
| void corium::profiler::Counter::increment |
( |
uint64_t |
val = 1 | ) |
|
|
inlinenoexcept |
Increment counter value.
- Parameters
-
| val | Increment amount (default: 1). |
◆ name()
| std::string_view corium::profiler::Counter::name |
( |
| ) |
const |
|
inlinenoexcept |
◆ reset()
| void corium::profiler::Counter::reset |
( |
| ) |
|
|
inlinenoexcept |
The documentation for this class was generated from the following file: