userver: userver/utils/statistics/percentile.hpp File Reference
Loading...
Searching...
No Matches
percentile.hpp File Reference

Class stores M buckets of type Counter and allows easy calculation of percentiles. More...

#include <array>
#include <atomic>
#include <chrono>
#include <string>
#include <userver/utils/statistics/writer.hpp>
+ Include dependency graph for percentile.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  utils::statistics::Percentile< M, Counter, ExtraBuckets, ExtraBucketSize >
 Class stores M buckets of type Counter and allows easy calculation of percentiles. More...
 

Namespaces

namespace  utils
 Utilities.
 

Functions

std::string utils::statistics::GetPercentileFieldName (double perc)
 
template<size_t M, typename Counter , size_t ExtraBuckets, size_t ExtraBucketSize>
void utils::statistics::DumpMetric (Writer &writer, const Percentile< M, Counter, ExtraBuckets, ExtraBucketSize > &perc, std::initializer_list< double > percents={0, 50, 90, 95, 98, 99, 99.6, 99.9, 100})
 

Detailed Description

Class stores M buckets of type Counter and allows easy calculation of percentiles.

Definition in file percentile.hpp.

Function Documentation

◆ DumpMetric()

template<size_t M, typename Counter , size_t ExtraBuckets, size_t ExtraBucketSize>
void utils::statistics::DumpMetric ( Writer writer,
const Percentile< M, Counter, ExtraBuckets, ExtraBucketSize > &  perc,
std::initializer_list< double percents = {0, 50, 90, 95, 98, 99, 99.6, 99.9, 100} 
)

Definition at line 183 of file percentile.hpp.