aboutsummaryrefslogtreecommitdiff
path: root/examples/redis-unstable/deps/hdr_histogram/README.md
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2026-01-21 22:52:54 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2026-01-21 22:52:54 +0100
commitdcacc00e3750300617ba6e16eb346713f91a783a (patch)
tree38e2d4fb5ed9d119711d4295c6eda4b014af73fd /examples/redis-unstable/deps/hdr_histogram/README.md
parent58dac10aeb8f5a041c46bddbeaf4c7966a99b998 (diff)
downloadcrep-dcacc00e3750300617ba6e16eb346713f91a783a.tar.gz
Remove testing data
Diffstat (limited to 'examples/redis-unstable/deps/hdr_histogram/README.md')
-rw-r--r--examples/redis-unstable/deps/hdr_histogram/README.md78
1 files changed, 0 insertions, 78 deletions
diff --git a/examples/redis-unstable/deps/hdr_histogram/README.md b/examples/redis-unstable/deps/hdr_histogram/README.md
deleted file mode 100644
index 93a156e..0000000
--- a/examples/redis-unstable/deps/hdr_histogram/README.md
+++ /dev/null
@@ -1,78 +0,0 @@
1HdrHistogram_c: 'C' port of High Dynamic Range (HDR) Histogram
2
3HdrHistogram
4----------------------------------------------
5
6[![Gitter chat](https://badges.gitter.im/HdrHistogram/HdrHistogram.png)](https://gitter.im/HdrHistogram/HdrHistogram)
7
8This port contains a subset of the functionality supported by the Java
9implementation. The current supported features are:
10
11* Standard histogram with 64 bit counts (32/16 bit counts not supported)
12* All iterator types (all values, recorded, percentiles, linear, logarithmic)
13* Histogram serialisation (encoding version 1.2, decoding 1.0-1.2)
14* Reader/writer phaser and interval recorder
15
16Features not supported, but planned
17
18* Auto-resizing of histograms
19
20Features unlikely to be implemented
21
22* Double histograms
23* Atomic/Concurrent histograms
24* 16/32 bit histograms
25
26# Simple Tutorial
27
28## Recording values
29
30```C
31#include <hdr_histogram.h>
32
33struct hdr_histogram* histogram;
34
35// Initialise the histogram
36hdr_init(
37 1, // Minimum value
38 INT64_C(3600000000), // Maximum value
39 3, // Number of significant figures
40 &histogram) // Pointer to initialise
41
42// Record value
43hdr_record_value(
44 histogram, // Histogram to record to
45 value) // Value to record
46
47// Record value n times
48hdr_record_values(
49 histogram, // Histogram to record to
50 value, // Value to record
51 10) // Record value 10 times
52
53// Record value with correction for co-ordinated omission.
54hdr_record_corrected_value(
55 histogram, // Histogram to record to
56 value, // Value to record
57 1000) // Record with expected interval of 1000.
58
59// Print out the values of the histogram
60hdr_percentiles_print(
61 histogram,
62 stdout, // File to write to
63 5, // Granularity of printed values
64 1.0, // Multiplier for results
65 CLASSIC); // Format CLASSIC/CSV supported.
66```
67
68## More examples
69
70For more detailed examples of recording and logging results look at the
71[hdr_decoder](examples/hdr_decoder.c)
72and [hiccup](examples/hiccup.c)
73examples. You can run hiccup and decoder
74and pipe the results of one into the other.
75
76```
77$ ./examples/hiccup | ./examples/hdr_decoder
78```