userver: utils::statistics::AggregatedValues< Length > Struct Template Reference
Loading...
Searching...
No Matches
utils::statistics::AggregatedValues< Length > Struct Template Referencefinal

#include <userver/utils/statistics/aggregated_values.hpp>

+ Collaboration diagram for utils::statistics::AggregatedValues< Length >:

Public Member Functions

AggregatedValuesoperator= (const AggregatedValues &other)
 
AggregatedValuesoperator+= (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, Lengthvalue {{}}
 

Detailed Description

template<size_t Length>
struct utils::statistics::AggregatedValues< Length >

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.

Member Function Documentation

◆ Add()

template<size_t Length>
void utils::statistics::AggregatedValues< Length >::Add ( size_t  key,
size_t  delta 
)

Definition at line 41 of file aggregated_values.hpp.

◆ Get()

template<size_t Length>
long long utils::statistics::AggregatedValues< Length >::Get ( size_t  bucket) const

Definition at line 53 of file aggregated_values.hpp.

◆ operator+=()

Definition at line 30 of file aggregated_values.hpp.

◆ operator=()

Definition at line 23 of file aggregated_values.hpp.

Member Data Documentation

◆ value

template<size_t Length>
std::array<std::atomic_llong, Length> utils::statistics::AggregatedValues< Length >::value {{}}

Definition at line 21 of file aggregated_values.hpp.


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