HDRHistogram 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/HDRHistogram.gemspec +0 -1
- data/Rakefile +7 -1
- data/lib/HDRHistogram.rb +3 -3
- data/lib/HDRHistogram/version.rb +1 -1
- metadata +3 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 552613925806b789118b4fe48e14ab97d586c05c
|
4
|
+
data.tar.gz: ede44074c166d7508daed156d8f7591c58a111b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e353550b31b579eba4e36314b5494e1523e925f5260a3470b7c35a74ecd373398dc9f8cefc8e1a32581e80b9bf4f3039fa2fa284477f6dbf845b42d08c233a6f
|
7
|
+
data.tar.gz: 02f1921c20e1bd017b583b54aa32c1081fb114c4f3188a280bdc52165f45ea57f38b7974a1f9f5bb2fa03726941dbb02b0ad6d8f2e86bf734c511987e624705d
|
data/HDRHistogram.gemspec
CHANGED
data/Rakefile
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
require "bundler/gem_tasks"
|
2
2
|
require "rake/extensiontask"
|
3
|
-
|
3
|
+
require 'rake/testtask'
|
4
|
+
task :default => :test
|
4
5
|
Rake::ExtensionTask.new 'ruby_hdr_histogram'
|
5
6
|
|
7
|
+
|
8
|
+
Rake::TestTask.new do |t|
|
9
|
+
t.libs << "test"
|
10
|
+
t.pattern = "test/*_test.rb"
|
11
|
+
end
|
data/lib/HDRHistogram.rb
CHANGED
@@ -6,12 +6,12 @@ class HDRHistogram
|
|
6
6
|
@multiplier = opt[:multiplier] || 1
|
7
7
|
@unit = opt[:unit] || opt[:units]
|
8
8
|
end
|
9
|
-
|
9
|
+
|
10
10
|
def record(val)
|
11
11
|
raw_record(val * 1/@multiplier)
|
12
12
|
end
|
13
|
-
def record_corrected(val)
|
14
|
-
raw_record_corrected(val * 1/@multiplier)
|
13
|
+
def record_corrected(val, expected_interval)
|
14
|
+
raw_record_corrected(val * 1/@multiplier, expected_interval * 1/@multiplier)
|
15
15
|
end
|
16
16
|
def min
|
17
17
|
raw_min * @multiplier
|
data/lib/HDRHistogram/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: HDRHistogram
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Leo P.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -80,20 +80,6 @@ dependencies:
|
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: pry-debundle
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
97
83
|
description: HdrHistogram is an algorithm designed for recording histograms of value
|
98
84
|
measurements with configurable precision. Value precision is expressed as the number
|
99
85
|
of significant digits, providing control over value quantization and resolution
|
@@ -142,9 +128,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
142
128
|
version: '0'
|
143
129
|
requirements: []
|
144
130
|
rubyforge_project:
|
145
|
-
rubygems_version: 2.5.
|
131
|
+
rubygems_version: 2.5.2
|
146
132
|
signing_key:
|
147
133
|
specification_version: 4
|
148
134
|
summary: Ruby wrapper for the C hdr_histogram library
|
149
135
|
test_files: []
|
150
|
-
has_rdoc:
|