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

Detailed Description

Class allows easy calculation of percentiles.

Definition in file percentile.hpp.

Go to the source code of this file.

#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:

Classes

class  utils::statistics::Percentile< M, Counter, ExtraBuckets, ExtraBucketSize >
 Class 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})
 

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 197 of file percentile.hpp.