25#define MAX_MERGED_CLUSTERS (200)
28#define MAX_UNMERGED_CLUSTERS (50)
32#define MAX_CLUSTERS (MAX_MERGED_CLUSTERS + MAX_UNMERGED_CLUSTERS)
35#ifdef DEBUG_T_DIGEST_LOGGING
36#define TDIGEST_LOG_THREAD(log_level, ...) CDI_LOG_THREAD(log_level, __VA_ARGS__);
38#define TDIGEST_LOG_THREAD(log_level, ...)
The declarations in this header file correspond to the definitions in logger.c.
This header file contains definitions used to define the build configuration of the CDI SDK's impleme...
The main structure of the t-digest.
Definition t_digest.c:70
void TDigestDestroy(TDigestHandle td_handle)
Function used to free t-digest memory.
Definition t_digest.c:524
void TDigestClear(TDigestHandle td_handle)
Function used to reset t-digest to begin collecting a new set of statistics. This function initialize...
Definition t_digest.c:531
struct TDigest * TDigestHandle
Opaque pointer for TDigest structure.
Definition t_digest.h:42
void TDigestAddSample(TDigestHandle td_handle, uint32_t value)
Function used to create a new t-digest.
Definition t_digest.c:544
int TDigestGetCount(TDigestHandle td_handle)
Function used to get the number of samples in the digest.
Definition t_digest.c:619
bool TDigestCreate(TDigestHandle *ret_td_handle_ptr)
Function used to create a new t-digest.
Definition t_digest.c:512
bool TDigestGetPercentileValue(TDigestHandle td_handle, int percentile, uint32_t *value_at_percentile_ptr)
Function used to get the value at a given percentile.
Definition t_digest.c:583