Typedefs | Functions
core/util/histogram.h File Reference
#include <grpc/support/port_platform.h>
#include <stddef.h>
Include dependency graph for core/util/histogram.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef struct grpc_histogram grpc_histogram
 

Functions

void grpc_histogram_add (grpc_histogram *h, double x)
 
double grpc_histogram_count (grpc_histogram *histogram)
 
grpc_histogramgrpc_histogram_create (double resolution, double max_bucket_start)
 
void grpc_histogram_destroy (grpc_histogram *h)
 
const uint32_tgrpc_histogram_get_contents (grpc_histogram *histogram, size_t *count)
 
double grpc_histogram_maximum (grpc_histogram *histogram)
 
double grpc_histogram_mean (grpc_histogram *histogram)
 
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 *histogram)
 
double grpc_histogram_percentile (grpc_histogram *histogram, double percentile)
 
double grpc_histogram_stddev (grpc_histogram *histogram)
 
double grpc_histogram_sum (grpc_histogram *histogram)
 
double grpc_histogram_sum_of_squares (grpc_histogram *histogram)
 
double grpc_histogram_variance (grpc_histogram *histogram)
 

Typedef Documentation

◆ grpc_histogram

Definition at line 30 of file core/util/histogram.h.

Function Documentation

◆ grpc_histogram_add()

void grpc_histogram_add ( grpc_histogram h,
double  x 
)

Definition at line 104 of file histogram.cc.

◆ grpc_histogram_count()

double grpc_histogram_count ( grpc_histogram histogram)

Definition at line 221 of file histogram.cc.

◆ grpc_histogram_create()

grpc_histogram* grpc_histogram_create ( double  resolution,
double  max_bucket_start 
)

Definition at line 77 of file histogram.cc.

◆ grpc_histogram_destroy()

void grpc_histogram_destroy ( grpc_histogram h)

Definition at line 99 of file histogram.cc.

◆ grpc_histogram_get_contents()

const uint32_t* grpc_histogram_get_contents ( grpc_histogram histogram,
size_t *  count 
)

Definition at line 229 of file histogram.cc.

◆ grpc_histogram_maximum()

double grpc_histogram_maximum ( grpc_histogram histogram)

Definition at line 217 of file histogram.cc.

◆ grpc_histogram_mean()

double grpc_histogram_mean ( grpc_histogram histogram)

Definition at line 202 of file histogram.cc.

◆ grpc_histogram_merge()

int grpc_histogram_merge ( grpc_histogram dst,
const grpc_histogram src 
)

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 
)

Definition at line 129 of file histogram.cc.

◆ grpc_histogram_minimum()

double grpc_histogram_minimum ( grpc_histogram histogram)

Definition at line 219 of file histogram.cc.

◆ grpc_histogram_percentile()

double grpc_histogram_percentile ( grpc_histogram histogram,
double  percentile 
)

Definition at line 198 of file histogram.cc.

◆ grpc_histogram_stddev()

double grpc_histogram_stddev ( grpc_histogram histogram)

Definition at line 207 of file histogram.cc.

◆ grpc_histogram_sum()

double grpc_histogram_sum ( grpc_histogram histogram)

Definition at line 223 of file histogram.cc.

◆ grpc_histogram_sum_of_squares()

double grpc_histogram_sum_of_squares ( grpc_histogram histogram)

Definition at line 225 of file histogram.cc.

◆ grpc_histogram_variance()

double grpc_histogram_variance ( grpc_histogram histogram)

Definition at line 211 of file histogram.cc.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:19