Seastar
High performance C++ framework for concurrent servers
Public Member Functions | Public Attributes | List of all members
seastar::metrics::histogram Struct Reference

Detailed Description

Histogram data type.

The histogram struct is a container for histogram values. It is not a histogram implementation but it will be used by histogram implementation to return its internal values.

#include <seastar/core/metrics_types.hh>

Public Member Functions

histogramoperator+= (const histogram &h)
 Addition assigning a historgram. More...
 
histogram operator+ (const histogram &h) const
 Addition historgrams. More...
 
histogram operator+ (histogram &&h) const
 Addition historgrams. More...
 

Public Attributes

uint64_t sample_count = 0
 
double sample_sum = 0
 
std::vector< histogram_bucketbuckets
 

Member Function Documentation

◆ operator+() [1/2]

histogram seastar::metrics::histogram::operator+ ( const histogram h) const

Addition historgrams.

Add two histograms and return the result as a new histogram The histogram must match the buckets upper bounds or an exception will be thrown

◆ operator+() [2/2]

histogram seastar::metrics::histogram::operator+ ( histogram &&  h) const

Addition historgrams.

Add two histograms and return the result as a new histogram The histogram must match the buckets upper bounds or an exception will be thrown

◆ operator+=()

histogram& seastar::metrics::histogram::operator+= ( const histogram h)

Addition assigning a historgram.

The histogram must match the buckets upper bounds or an exception will be thrown


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