Seastar
High performance C++ framework for concurrent servers

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  
histogram &  operator+= (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_bucket >  buckets 
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
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
Addition assigning a historgram.
The histogram must match the buckets upper bounds or an exception will be thrown