#include <userver/utils/statistics/aggregated_values.hpp>
Public Member Functions | |
AggregatedValues & | operator= (const AggregatedValues &other) |
AggregatedValues & | operator+= (const AggregatedValues &other) |
void | Add (size_t key, size_t delta) |
long long | Get (size_t bucket) const |
Public Attributes | |
std::array< std::atomic_llong, Length > | value {{}} |
Timing values aggregated into buckets, each bucket is from 2**k to 2**(k+1) Values out of range are put into last bucket.
Definition at line 20 of file aggregated_values.hpp.
void utils::statistics::AggregatedValues< Length >::Add | ( | size_t | key, |
size_t | delta | ||
) |
Definition at line 41 of file aggregated_values.hpp.
long long utils::statistics::AggregatedValues< Length >::Get | ( | size_t | bucket | ) | const |
Definition at line 53 of file aggregated_values.hpp.
|
inline |
Definition at line 30 of file aggregated_values.hpp.
|
inline |
Definition at line 23 of file aggregated_values.hpp.
std::array<std::atomic_llong, Length> utils::statistics::AggregatedValues< Length >::value {{}} |
Definition at line 21 of file aggregated_values.hpp.