24 #ifndef PROM_HISTOGRAM_BUCKETS_H 25 #define PROM_HISTOGRAM_BUCKETS_H 81 #endif // PROM_HISTOGRAM_BUCKETS_H prom_histogram_buckets_t * prom_histogram_default_buckets
the default histogram buckets: .005, .01, .025, .05, .1, .25, .5, 1, 2.5, 5, 10
int count
Number of buckets.
Definition: prom_histogram_buckets.h:28
prom_histogram_buckets_t * prom_histogram_buckets_new(size_t count, double bucket,...)
Construct a prom_histogram_buckets_t*.
const double * upper_bounds
The bucket values.
Definition: prom_histogram_buckets.h:29
size_t prom_histogram_buckets_count(prom_histogram_buckets_t *self)
Get the count of buckets.
Definition: prom_histogram_buckets.h:27
int prom_histogram_buckets_destroy(prom_histogram_buckets_t *self)
Destroy a prom_histogram_buckets_t*.
prom_histogram_buckets_t * prom_histogram_buckets_linear(double start, double width, size_t count)
Construct a linearly sized prom_histogram_buckets_t*.
prom_histogram_buckets_t * prom_histogram_buckets_exponential(double start, double factor, size_t count)
Construct an exponentially sized prom_histogram_buckets_t*.