diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-01-21 22:52:54 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-01-21 22:52:54 +0100 |
| commit | dcacc00e3750300617ba6e16eb346713f91a783a (patch) | |
| tree | 38e2d4fb5ed9d119711d4295c6eda4b014af73fd /examples/redis-unstable/deps/hdr_histogram/README.md | |
| parent | 58dac10aeb8f5a041c46bddbeaf4c7966a99b998 (diff) | |
| download | crep-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.md | 78 |
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 @@ | |||
| 1 | HdrHistogram_c: 'C' port of High Dynamic Range (HDR) Histogram | ||
| 2 | |||
| 3 | HdrHistogram | ||
| 4 | ---------------------------------------------- | ||
| 5 | |||
| 6 | [](https://gitter.im/HdrHistogram/HdrHistogram) | ||
| 7 | |||
| 8 | This port contains a subset of the functionality supported by the Java | ||
| 9 | implementation. 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 | |||
| 16 | Features not supported, but planned | ||
| 17 | |||
| 18 | * Auto-resizing of histograms | ||
| 19 | |||
| 20 | Features 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 | |||
| 33 | struct hdr_histogram* histogram; | ||
| 34 | |||
| 35 | // Initialise the histogram | ||
| 36 | hdr_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 | ||
| 43 | hdr_record_value( | ||
| 44 | histogram, // Histogram to record to | ||
| 45 | value) // Value to record | ||
| 46 | |||
| 47 | // Record value n times | ||
| 48 | hdr_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. | ||
| 54 | hdr_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 | ||
| 60 | hdr_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 | |||
| 70 | For more detailed examples of recording and logging results look at the | ||
| 71 | [hdr_decoder](examples/hdr_decoder.c) | ||
| 72 | and [hiccup](examples/hiccup.c) | ||
| 73 | examples. You can run hiccup and decoder | ||
| 74 | and pipe the results of one into the other. | ||
| 75 | |||
| 76 | ``` | ||
| 77 | $ ./examples/hiccup | ./examples/hdr_decoder | ||
| 78 | ``` | ||
