Go to the source code of this file.
|
static size_t | bucket_for (grpc_histogram *h, double x) |
|
static size_t | bucket_for_unchecked (grpc_histogram *h, double x) |
|
static double | bucket_start (grpc_histogram *h, double x) |
|
void | grpc_histogram_add (grpc_histogram *h, double x) |
|
double | grpc_histogram_count (grpc_histogram *h) |
|
grpc_histogram * | grpc_histogram_create (double resolution, double max_bucket_start) |
|
void | grpc_histogram_destroy (grpc_histogram *h) |
|
const uint32_t * | grpc_histogram_get_contents (grpc_histogram *histogram, size_t *count) |
|
double | grpc_histogram_maximum (grpc_histogram *h) |
|
double | grpc_histogram_mean (grpc_histogram *h) |
|
int | grpc_histogram_merge (grpc_histogram *dst, const grpc_histogram *src) |
|
void | grpc_histogram_merge_contents (grpc_histogram *histogram, const uint32_t *data, size_t data_count, double min_seen, double max_seen, double sum, double sum_of_squares, double count) |
|
double | grpc_histogram_minimum (grpc_histogram *h) |
|
double | grpc_histogram_percentile (grpc_histogram *h, double percentile) |
|
double | grpc_histogram_stddev (grpc_histogram *h) |
|
double | grpc_histogram_sum (grpc_histogram *h) |
|
double | grpc_histogram_sum_of_squares (grpc_histogram *h) |
|
double | grpc_histogram_variance (grpc_histogram *h) |
|
static double | threshold_for_count_below (grpc_histogram *h, double count_below) |
|
◆ bucket_for()
◆ bucket_for_unchecked()
◆ bucket_start()
◆ grpc_histogram_add()
◆ grpc_histogram_count()
◆ grpc_histogram_create()
grpc_histogram* grpc_histogram_create |
( |
double |
resolution, |
|
|
double |
max_bucket_start |
|
) |
| |
◆ grpc_histogram_destroy()
◆ grpc_histogram_get_contents()
◆ grpc_histogram_maximum()
◆ grpc_histogram_mean()
◆ grpc_histogram_merge()
The following merges the second histogram into the first. It only works if they have the same buckets and resolution. Returns 0 on failure, 1 on success
Definition at line 117 of file histogram.cc.
◆ grpc_histogram_merge_contents()
void grpc_histogram_merge_contents |
( |
grpc_histogram * |
histogram, |
|
|
const uint32_t * |
data, |
|
|
size_t |
data_count, |
|
|
double |
min_seen, |
|
|
double |
max_seen, |
|
|
double |
sum, |
|
|
double |
sum_of_squares, |
|
|
double |
count |
|
) |
| |
◆ grpc_histogram_minimum()
◆ grpc_histogram_percentile()
double grpc_histogram_percentile |
( |
grpc_histogram * |
h, |
|
|
double |
percentile |
|
) |
| |
◆ grpc_histogram_stddev()
◆ grpc_histogram_sum()
◆ grpc_histogram_sum_of_squares()
◆ grpc_histogram_variance()
◆ threshold_for_count_below()
static double threshold_for_count_below |
( |
grpc_histogram * |
h, |
|
|
double |
count_below |
|
) |
| |
|
static |