Searched refs:histogram (Results 1 – 7 of 7) sorted by relevance
17 int prometheus_histogram_observe(struct prometheus_histogram *histogram, double value) in prometheus_histogram_observe() argument19 if (!histogram) { in prometheus_histogram_observe()24 histogram->count++; in prometheus_histogram_observe()27 histogram->sum += value; in prometheus_histogram_observe()30 for (size_t i = 0; i < histogram->num_buckets; ++i) { in prometheus_histogram_observe()31 if (value <= histogram->buckets[i].upper_bound) { in prometheus_histogram_observe()33 histogram->buckets[i].count++; in prometheus_histogram_observe()36 histogram->buckets[i].upper_bound, histogram->buckets[i].count); in prometheus_histogram_observe()
161 const struct prometheus_histogram *histogram = in prometheus_format_one_metric() local164 LOG_DBG("histogram->count: %lu", histogram->count); in prometheus_format_one_metric()166 for (int i = 0; i < histogram->num_buckets; ++i) { in prometheus_format_one_metric()170 histogram->buckets[i].upper_bound, in prometheus_format_one_metric()171 histogram->buckets[i].count); in prometheus_format_one_metric()179 "%s_sum %f\n", metric->name, histogram->sum); in prometheus_format_one_metric()187 histogram->count); in prometheus_format_one_metric()
11 histogram.c
106 int prometheus_histogram_observe(struct prometheus_histogram *histogram, double value);
98 * Execution time histogram can be obtained when107 * Execution time histogram of eviction algorithm via110 * Execution time histogram of backing store doing page-in via113 * Execution time histogram of backing store doing page-out via
526 struct prometheus_histogram *histogram = in net_stats_prometheus_scrape() local529 if (histogram->user_data == NULL) { in net_stats_prometheus_scrape()
189 This gathers the histogram of execution time on page eviction199 Defines the number of bins (buckets) in the histogram used for