Lines Matching refs:summary
17 int prometheus_summary_observe(struct prometheus_summary *summary, double value) in prometheus_summary_observe() argument
19 if (!summary) { in prometheus_summary_observe()
24 summary->count++; in prometheus_summary_observe()
27 summary->sum += value; in prometheus_summary_observe()
32 int prometheus_summary_observe_set(struct prometheus_summary *summary, in prometheus_summary_observe_set() argument
38 if (summary == NULL) { in prometheus_summary_observe_set()
42 if (value == summary->sum && count == summary->count) { in prometheus_summary_observe_set()
46 old_count = summary->count; in prometheus_summary_observe_set()
52 summary->count += (count - old_count); in prometheus_summary_observe_set()
54 old_sum = summary->sum; in prometheus_summary_observe_set()
55 summary->sum += (value - old_sum); in prometheus_summary_observe_set()