Debian Codegraph @

src/include/histogram.h

raw symbols SCIP
1 // SPDX-License-Identifier: GPL-2.0-or-latercxx . . $ `<file>/src/include/histogram.h`/
2 #include <stdint.h>
3 #include <stdio.h>
4
5 struct histogramcxx . . $ histogram# {
6 unsigned long *bucketscxx . . $ histogram#buckets.;
7 unsigned long widthcxx . . $ histogram#width.; // interval covered by one bucket
8 unsigned long numcxx . . $ histogram#num.; // number of buckets
9 unsigned long eventscxx . . $ histogram#events.; // number of events logged
10
11 unsigned long *oflowscxx . . $ histogram#oflows.; // events when overflow happened
12 unsigned long oflow_bufsizecxx . . $ histogram#oflow_bufsize.; // number of overflows that can be logged
13 unsigned long oflow_countcxx . . $ histogram#oflow_count.; // number of events that overflowed
14 uint64_tcxx . . $ uint64_t# oflow_magnitudecxx . . $ histogram#oflow_magnitude.; // sum of how many buckets overflowed by
15 };
16
17 struct histosetcxx . . $ histoset# {
18 struct histogramcxx . . $ histogram# *histoscxx . . $ histoset#histos.; // Group of related histograms (e.g. per cpu)
19 struct histogramcxx . . $ histogram# *sumcxx . . $ histoset#sum.; // Accumulates events from all histos
20 unsigned long num_histoscxx . . $ histoset#num_histos.; // Not including sum
21 unsigned long num_bucketscxx . . $ histoset#num_buckets.;
22 };
23
24 #define HIST_OVERFLOWcxx . . $ `src/include/histogram.h:24:9`! 1
25 #define HIST_OVERFLOW_MAGcxx . . $ `src/include/histogram.h:25:9`! 2
26 #define HIST_OVERFLOW_LOGcxx . . $ `src/include/histogram.h:26:9`! 4
27
28 int hist_initcxx . . $ hist_init(8be1cec40e435a01).(struct histogramcxx . . $ histogram# *h, unsigned long width, unsigned long num);
29 int hist_init_oflowcxx . . $ hist_init_oflow(e5685fb6a6b593bd).(struct histogramcxx . . $ histogram# *h, unsigned long num);
30 void hist_destroycxx . . $ hist_destroy(99493587c9cec4dd).(struct histogramcxx . . $ histogram# *h);
31 int hist_samplecxx . . $ hist_sample(e5685fb6a6b593bd).(struct histogramcxx . . $ histogram# *h, uint64_tcxx . . $ uint64_t# sample);
32
33 #define HSET_PRINT_SUMcxx . . $ `src/include/histogram.h:33:9`! 1
34 #define HSET_PRINT_JSONcxx . . $ `src/include/histogram.h:34:9`! 2
35
36 int hset_initcxx . . $ hset_init(f7593c26bdc66446).(struct histosetcxx . . $ histoset# *hs, unsigned long histos, unsigned long bucket_width,
37 unsigned long num_buckets, unsigned long overflow);
38 void hset_destroycxx . . $ hset_destroy(33dbd104c143235e).(struct histosetcxx . . $ histoset# *hs);
39 void hset_print_bucketcxx . . $ hset_print_bucket(31a571358aba96cf).(struct histosetcxx . . $ histoset# *hs, FILEcxx . . $ FILE# *f, const char *pre,
40 unsigned long bucket, unsigned long flags);
41 void hist_print_jsoncxx . . $ hist_print_json(6acc875be05641a4).(struct histogramcxx . . $ histogram# *h, FILEcxx . . $ FILE# *f);
42 void hist_print_oflowscxx . . $ hist_print_oflows(6acc875be05641a4).(struct histogramcxx . . $ histogram# *h, FILEcxx . . $ FILE# *f);