HDRHistogram 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +5 -3
- data/lib/HDRHistogram/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 89ab25a2fbfcde31f56ca617df20f0c660005b24
|
4
|
+
data.tar.gz: b98e2f077fbf771b3ebdaf9703fa33486876af5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4f63914e2174b198da9c1f68bb266ddb8cbc89c3c44584d3b2f6b616f3a3d1f86f237bf4c0915b97767a06ae40fb05071e7bdc34c2aae897b393dc5acdce968
|
7
|
+
data.tar.gz: e718fa657e08f2981eab16a8d3edd9d39ac8e945873cad14a8dcffa8736c24c9e169bea49935eaf793f8631c2662c6d6d257f6823eaf0b921f98b3794ee3ddf8
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#Ruby HdrHistogram Library
|
2
2
|
|
3
3
|
## Overview
|
4
|
-
HdrHistogram is an algorithm designed for recording histograms of value measurements with configurable precision.
|
4
|
+
HdrHistogram is an algorithm designed for recording histograms of value measurements with configurable precision. Value precision is expressed as the number of significant digits, providing control over value quantization and resolution whilst maintaining a fixed cost in both space and time.
|
5
5
|
More information can be found on the [HdrHistogram site](http://hdrhistogram.org/) (which much of the text in this README paraphrases). This library wraps the [C port](https://github.com/HdrHistogram/HdrHistogram_c).
|
6
6
|
|
7
7
|
|
@@ -81,12 +81,14 @@ Create new HDRHistogram object.
|
|
81
81
|
|
82
82
|
|
83
83
|
#### `hdr.record(value)`
|
84
|
-
Records a `value` in the histogram, will round this `value` of to a precision at or better than the `significant_figures` specified at construction time.
|
84
|
+
Records a `value` in the histogram, will round this `value` of to a precision at or better than the `significant_figures` specified at construction time.
|
85
|
+
Returns `false` if the value was not recorded, `true` otherwise.
|
85
86
|
|
86
87
|
#### `hdr.record_corrected(value, expected_interval)`
|
87
88
|
Record a `value` in the histogram and backfill based on an expected interval.
|
88
89
|
|
89
|
-
This is specifically used for recording latency. If the `value` is larger than the `expected_interval` then the latency recording system has experienced [co-ordinated omission](https://github.com/giltene/wrk2#acknowledgements). This method fills in the values that would have occured had the client providing the load not been blocked.
|
90
|
+
This is specifically used for recording latency. If the `value` is larger than the `expected_interval` then the latency recording system has experienced [co-ordinated omission](https://github.com/giltene/wrk2#acknowledgements). This method fills in the values that would have occured had the client providing the load not been blocked.
|
91
|
+
Returns `false` if the value was not recorded, `true` otherwise.
|
90
92
|
|
91
93
|
#### `hdr.percentile(pct)`
|
92
94
|
Get the value at a specific percentile.
|
data/lib/HDRHistogram/version.rb
CHANGED