Lines Matching refs:hdr_histogram
2 * hdr_histogram.c
16 #include <hdr/hdr_histogram.h>
34 static int32_t normalize_index(const struct hdr_histogram* h, int32_t index)
57 static int64_t counts_get_direct(const struct hdr_histogram* h, int32_t index)
62 static int64_t counts_get_normalised(const struct hdr_histogram* h, int32_t index)
68 struct hdr_histogram* h, int32_t index, int64_t value)
76 struct hdr_histogram* h, int32_t index, int64_t value)
84 static void update_min_max(struct hdr_histogram* h, int64_t value)
90 static void update_min_max_atomic(struct hdr_histogram* h, int64_t value)
168 static int32_t get_bucket_index(const struct hdr_histogram* h, int64_t value)
179 static int32_t counts_index(const struct hdr_histogram* h, int32_t bucket_index, int32_t sub_bucket_index)
195 int32_t counts_index_for(const struct hdr_histogram* h, int64_t value)
203 int64_t hdr_value_at_index(const struct hdr_histogram *h, int32_t index)
217 int64_t hdr_size_of_equivalent_value_range(const struct hdr_histogram* h, int64_t value)
226 const struct hdr_histogram *h,
234 static int64_t lowest_equivalent_value(const struct hdr_histogram* h, int64_t value)
242 const struct hdr_histogram *h,
249 int64_t hdr_next_non_equivalent_value(const struct hdr_histogram *h, int64_t value)
254 static int64_t highest_equivalent_value(const struct hdr_histogram* h, int64_t value)
259 int64_t hdr_median_equivalent_value(const struct hdr_histogram *h, int64_t value)
264 static int64_t non_zero_min(const struct hdr_histogram* h)
274 void hdr_reset_internal_counters(struct hdr_histogram* h)
389 void hdr_init_preallocated(struct hdr_histogram* h, struct hdr_histogram_bucket_config* cfg)
412 struct hdr_histogram** result)
416 struct hdr_histogram* histogram;
430 histogram = (struct hdr_histogram*) hdr_calloc(1, sizeof(struct hdr_histogram));
445 void hdr_close(struct hdr_histogram* h)
453 int hdr_alloc(int64_t highest_trackable_value, int significant_figures, struct hdr_histogram** result)
459 void hdr_reset(struct hdr_histogram *h)
467 size_t hdr_get_memory_size(struct hdr_histogram *h)
469 return sizeof(struct hdr_histogram) + h->counts_len * sizeof(int64_t);
481 bool hdr_record_value(struct hdr_histogram* h, int64_t value)
486 bool hdr_record_value_atomic(struct hdr_histogram* h, int64_t value)
491 bool hdr_record_values(struct hdr_histogram* h, int64_t value, int64_t count)
513 bool hdr_record_values_atomic(struct hdr_histogram* h, int64_t value, int64_t count)
535 bool hdr_record_corrected_value(struct hdr_histogram* h, int64_t value, int64_t expected_interval)
540 bool hdr_record_corrected_value_atomic(struct hdr_histogram* h, int64_t value, int64_t expected_interval)
545 bool hdr_record_corrected_values(struct hdr_histogram* h, int64_t value, int64_t count, int64_t expected_interval)
571 bool hdr_record_corrected_values_atomic(struct hdr_histogram* h, int64_t value, int64_t count, int64_t expected_interval)
597 int64_t hdr_add(struct hdr_histogram* h, const struct hdr_histogram* from)
618 struct hdr_histogram* h, struct hdr_histogram* from, int64_t expected_interval)
649 int64_t hdr_max(const struct hdr_histogram* h)
659 int64_t hdr_min(const struct hdr_histogram* h)
669 static int64_t get_value_from_idx_up_to_count(const struct hdr_histogram* h, int64_t count_at_percentile)
687 int64_t hdr_value_at_percentile(const struct hdr_histogram* h, double percentile)
700 int hdr_value_at_percentiles(const struct hdr_histogram *h, const double *percentiles, int64_t *values, size_t length)
734 double hdr_mean(const struct hdr_histogram* h)
754 double hdr_stddev(const struct hdr_histogram* h)
774 bool hdr_values_are_equivalent(const struct hdr_histogram* h, int64_t a, int64_t b)
779 int64_t hdr_lowest_equivalent_value(const struct hdr_histogram* h, int64_t value)
784 int64_t hdr_count_at_value(const struct hdr_histogram* h, int64_t value)
789 int64_t hdr_count_at_index(const struct hdr_histogram* h, int32_t index)
885 void hdr_iter_init(struct hdr_iter* iter, const struct hdr_histogram* h)
960 void hdr_iter_percentile_init(struct hdr_iter* iter, const struct hdr_histogram* h, int32_t ticks_per_half_distance)
1026 void hdr_iter_recorded_init(struct hdr_iter* iter, const struct hdr_histogram* h)
1081 void hdr_iter_linear_init(struct hdr_iter* iter, const struct hdr_histogram* h, int64_t value_units_per_bucket)
1138 const struct hdr_histogram* h,
1171 struct hdr_histogram* h, FILE* stream, int32_t ticks_per_half_distance,