#include <userver/utils/statistics/rate_counter.hpp>
Atomic counter of type Rate with relaxed memory ordering.
This class is represented as Rate metric when serializing to statistics. Otherwise it is the same class as utils::statistics::RelaxedCounter.
- Examples
- samples/tcp_full_duplex_service/main.cpp, and samples/testsuite-support/src/metrics.cpp.
Definition at line 22 of file rate_counter.hpp.
◆ ValueType
◆ RateCounter() [1/3]
| utils::statistics::RateCounter::RateCounter |
( |
Rate | desired | ) |
|
|
inlineexplicitconstexprnoexcept |
◆ RateCounter() [2/3]
| utils::statistics::RateCounter::RateCounter |
( |
Rate::ValueType | desired | ) |
|
|
inlineexplicitconstexprnoexcept |
◆ RateCounter() [3/3]
| utils::statistics::RateCounter::RateCounter |
( |
const RateCounter & | other | ) |
|
|
inlinenoexcept |
◆ Add()
| void utils::statistics::RateCounter::Add |
( |
Rate | arg, |
|
|
std::memory_order | order = std::memory_order_relaxed ) |
|
inlinenoexcept |
◆ AddAsSingleProducer()
| void utils::statistics::RateCounter::AddAsSingleProducer |
( |
Rate | arg | ) |
|
|
inlinenoexcept |
◆ Load()
| Rate utils::statistics::RateCounter::Load |
( |
| ) |
const |
|
inlinenoexcept |
◆ operator++() [1/2]
| Rate utils::statistics::RateCounter::operator++ |
( |
| ) |
|
|
inlinenoexcept |
◆ operator++() [2/2]
| Rate utils::statistics::RateCounter::operator++ |
( |
int | | ) |
|
|
inlinenoexcept |
◆ operator+=() [1/2]
◆ operator+=() [2/2]
| Rate utils::statistics::RateCounter::operator+= |
( |
Rate | arg | ) |
|
|
inlinenoexcept |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ Store()
| void utils::statistics::RateCounter::Store |
( |
Rate | desired, |
|
|
std::memory_order | order = std::memory_order_relaxed ) |
|
inlinenoexcept |
The documentation for this class was generated from the following file: