Functions | Variables
stats.cc File Reference
#include <grpc/support/port_platform.h>
#include "src/core/lib/debug/stats.h"
#include <inttypes.h>
#include <string.h>
#include <algorithm>
#include <vector>
#include "absl/strings/str_format.h"
#include "absl/strings/str_join.h"
#include <grpc/support/alloc.h>
#include <grpc/support/cpu.h>
#include <grpc/support/sync.h>
Include dependency graph for stats.cc:

Go to the source code of this file.

Functions

void grpc_stats_collect (grpc_stats_data *output)
 
std::string grpc_stats_data_as_json (const grpc_stats_data *data)
 
void grpc_stats_diff (const grpc_stats_data *b, const grpc_stats_data *a, grpc_stats_data *c)
 
size_t grpc_stats_histo_count (const grpc_stats_data *stats, grpc_stats_histograms histogram)
 
int grpc_stats_histo_find_bucket_slow (int value, const int *table, int table_size)
 
double grpc_stats_histo_percentile (const grpc_stats_data *stats, grpc_stats_histograms histogram, double percentile)
 
void grpc_stats_init (void)
 
static double threshold_for_count_below (const gpr_atm *bucket_counts, const int *bucket_boundaries, int num_buckets, double count_below)
 

Variables

static size_t g_num_cores
 
static gpr_once g_once = GPR_ONCE_INIT
 
grpc_stats_datagrpc_stats_per_cpu_storage = nullptr
 

Function Documentation

◆ grpc_stats_collect()

void grpc_stats_collect ( grpc_stats_data output)

Definition at line 48 of file stats.cc.

◆ grpc_stats_data_as_json()

std::string grpc_stats_data_as_json ( const grpc_stats_data data)

Definition at line 148 of file stats.cc.

◆ grpc_stats_diff()

void grpc_stats_diff ( const grpc_stats_data b,
const grpc_stats_data a,
grpc_stats_data c 
)

Definition at line 62 of file stats.cc.

◆ grpc_stats_histo_count()

size_t grpc_stats_histo_count ( const grpc_stats_data stats,
grpc_stats_histograms  histogram 
)

Definition at line 89 of file stats.cc.

◆ grpc_stats_histo_find_bucket_slow()

int grpc_stats_histo_find_bucket_slow ( int  value,
const int table,
int  table_size 
)

Definition at line 72 of file stats.cc.

◆ grpc_stats_histo_percentile()

double grpc_stats_histo_percentile ( const grpc_stats_data stats,
grpc_stats_histograms  histogram,
double  percentile 
)

Definition at line 136 of file stats.cc.

◆ grpc_stats_init()

void grpc_stats_init ( void  )

Definition at line 40 of file stats.cc.

◆ threshold_for_count_below()

static double threshold_for_count_below ( const gpr_atm bucket_counts,
const int bucket_boundaries,
int  num_buckets,
double  count_below 
)
static

Definition at line 99 of file stats.cc.

Variable Documentation

◆ g_num_cores

size_t g_num_cores
static

Definition at line 37 of file stats.cc.

◆ g_once

gpr_once g_once = GPR_ONCE_INIT
static

Definition at line 38 of file stats.cc.

◆ grpc_stats_per_cpu_storage

grpc_stats_data* grpc_stats_per_cpu_storage = nullptr

Definition at line 36 of file stats.cc.



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