hitimes 1.0.4-x86-mingw32 → 1.0.5-x86-mingw32
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.
- data/HISTORY +6 -1
- data/lib/hitimes.rb +1 -0
- data/lib/hitimes/1.8/hitimes_ext.so +0 -0
- data/lib/hitimes/1.9/hitimes_ext.so +0 -0
- data/lib/hitimes/metric.rb +6 -0
- data/lib/hitimes/mutexed_stats.rb +5 -1
- data/lib/hitimes/stats.rb +5 -1
- data/lib/hitimes/timed_metric.rb +1 -2
- data/lib/hitimes/timed_value_metric.rb +0 -2
- data/lib/hitimes/value_metric.rb +2 -3
- data/lib/hitimes/version.rb +1 -1
- data/tasks/extension.rake +5 -6
- metadata +74 -23
data/HISTORY
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
= Changelog
|
2
|
-
== Version 1.0.
|
2
|
+
== Version 1.0.5 2010-07-20
|
3
|
+
|
4
|
+
* Fix 'circular require considered harmful' warnings in 1.9.x (reported by Roger Pack)
|
5
|
+
* Fix 'method redefined' warnings in 1.9.x (reported by Roger Pack)
|
6
|
+
|
7
|
+
== Version 1.0.4 2009-08-01
|
3
8
|
|
4
9
|
* Add in support for x86-mingw32 gem
|
5
10
|
* Add version subdirectory for extension on all platforms
|
data/lib/hitimes.rb
CHANGED
Binary file
|
Binary file
|
data/lib/hitimes/metric.rb
CHANGED
data/lib/hitimes/stats.rb
CHANGED
data/lib/hitimes/timed_metric.rb
CHANGED
@@ -3,7 +3,6 @@
|
|
3
3
|
# All rights reserved. See LICENSE and/or COPYING for details.
|
4
4
|
#++
|
5
5
|
|
6
|
-
require 'hitimes'
|
7
6
|
require 'forwardable'
|
8
7
|
module Hitimes
|
9
8
|
#
|
@@ -171,7 +170,7 @@ module Hitimes
|
|
171
170
|
|
172
171
|
# forward appropriate calls directly to the stats object
|
173
172
|
extend Forwardable
|
174
|
-
def_delegators :@stats, :count, :
|
173
|
+
def_delegators :@stats, :count, :max, :mean, :min, :rate, :stddev, :sum, :sumsq
|
175
174
|
alias :duration :sum
|
176
175
|
end
|
177
176
|
end
|
data/lib/hitimes/value_metric.rb
CHANGED
@@ -4,7 +4,6 @@
|
|
4
4
|
#++
|
5
5
|
|
6
6
|
require 'forwardable'
|
7
|
-
require 'hitimes'
|
8
7
|
module Hitimes
|
9
8
|
#
|
10
9
|
# A ValueMetric holds the data from measuring a single value over a period of
|
@@ -67,6 +66,6 @@ module Hitimes
|
|
67
66
|
|
68
67
|
# forward appropriate calls directly to the stats object
|
69
68
|
extend Forwardable
|
70
|
-
def_delegators :@stats, :count, :
|
71
|
-
|
69
|
+
def_delegators :@stats, :count, :max, :mean, :min, :stddev, :sum, :sumsq
|
70
|
+
end
|
72
71
|
end
|
data/lib/hitimes/version.rb
CHANGED
data/tasks/extension.rake
CHANGED
@@ -30,21 +30,20 @@ if ext_config = Configuration.for_if_exist?('extension') then
|
|
30
30
|
ext_config = Configuration.for("extension")
|
31
31
|
rbconfig = ext_config.cross_rbconfig["rbconfig-#{version}"]
|
32
32
|
raise ArgumentError, "No cross compiler for version #{version}, we have #{ext_config.cross_rbconfig.keys.join(",")}" unless rbconfig
|
33
|
-
ruby_exe = if version =~ /1\.8/ then
|
34
|
-
"ruby"
|
35
|
-
else
|
36
|
-
"ruby1.9"
|
37
|
-
end
|
38
33
|
Hitimes::GEM_SPEC.extensions.each do |extension|
|
39
34
|
path = Pathname.new(extension)
|
40
35
|
parts = path.split
|
41
36
|
conf = parts.last
|
37
|
+
rvm = %x[ which rvm ].strip
|
42
38
|
Dir.chdir(path.dirname) do |d|
|
43
39
|
if File.exist?( "Makefile" ) then
|
44
40
|
sh "make clean distclean"
|
45
41
|
end
|
46
42
|
cp "#{rbconfig}", "rbconfig.rb"
|
47
|
-
|
43
|
+
rubylib = ENV['RUBYLIB']
|
44
|
+
ENV['RUBYLIB'] = "."
|
45
|
+
sh %[#{rvm} #{version} -S extconf.rb]
|
46
|
+
ENV['RUBYLIB'] = rubylib
|
48
47
|
sh "make"
|
49
48
|
end
|
50
49
|
end
|
metadata
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hitimes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 29
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 0
|
9
|
+
- 5
|
10
|
+
version: 1.0.5
|
5
11
|
platform: x86-mingw32
|
6
12
|
authors:
|
7
13
|
- Jeremy Hinegardner
|
@@ -9,50 +15,87 @@ autorequire:
|
|
9
15
|
bindir: bin
|
10
16
|
cert_chain: []
|
11
17
|
|
12
|
-
date:
|
18
|
+
date: 2010-07-20 00:00:00 -06:00
|
13
19
|
default_executable:
|
14
20
|
dependencies:
|
15
21
|
- !ruby/object:Gem::Dependency
|
16
22
|
name: rake
|
17
|
-
|
18
|
-
|
19
|
-
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
20
26
|
requirements:
|
21
27
|
- - ~>
|
22
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 61
|
30
|
+
segments:
|
31
|
+
- 0
|
32
|
+
- 8
|
33
|
+
- 1
|
23
34
|
version: 0.8.1
|
24
|
-
|
35
|
+
type: :runtime
|
36
|
+
version_requirements: *id001
|
25
37
|
- !ruby/object:Gem::Dependency
|
26
38
|
name: configuration
|
27
|
-
|
28
|
-
|
29
|
-
|
39
|
+
prerelease: false
|
40
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
30
42
|
requirements:
|
31
43
|
- - ~>
|
32
44
|
- !ruby/object:Gem::Version
|
45
|
+
hash: 21
|
46
|
+
segments:
|
47
|
+
- 0
|
48
|
+
- 0
|
49
|
+
- 5
|
33
50
|
version: 0.0.5
|
34
|
-
|
51
|
+
type: :runtime
|
52
|
+
version_requirements: *id002
|
35
53
|
- !ruby/object:Gem::Dependency
|
36
54
|
name: json
|
37
|
-
|
38
|
-
|
39
|
-
|
55
|
+
prerelease: false
|
56
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
40
58
|
requirements:
|
41
59
|
- - ~>
|
42
60
|
- !ruby/object:Gem::Version
|
61
|
+
hash: 21
|
62
|
+
segments:
|
63
|
+
- 1
|
64
|
+
- 1
|
65
|
+
- 3
|
43
66
|
version: 1.1.3
|
44
|
-
|
67
|
+
type: :development
|
68
|
+
version_requirements: *id003
|
45
69
|
- !ruby/object:Gem::Dependency
|
46
70
|
name: rake-compiler
|
47
|
-
|
48
|
-
|
49
|
-
|
71
|
+
prerelease: false
|
72
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
50
74
|
requirements:
|
51
75
|
- - ~>
|
52
76
|
- !ruby/object:Gem::Version
|
77
|
+
hash: 11
|
78
|
+
segments:
|
79
|
+
- 0
|
80
|
+
- 5
|
81
|
+
- 0
|
53
82
|
version: 0.5.0
|
54
|
-
|
55
|
-
|
83
|
+
type: :development
|
84
|
+
version_requirements: *id004
|
85
|
+
description: |-
|
86
|
+
Hitimes is a fast, high resolution timer library for recording
|
87
|
+
performance metrics. It uses the appropriate C method calls for each
|
88
|
+
system to get the highest granularity time increments possible.
|
89
|
+
|
90
|
+
It currently supports any of the following systems:
|
91
|
+
|
92
|
+
* any system with the POSIX call <tt>clock_gettime()</tt>,
|
93
|
+
* Mac OS X
|
94
|
+
* Windows
|
95
|
+
|
96
|
+
Using Hitimes can be faster than using a series of +Time.new+ calls, and
|
97
|
+
it will have a much higher granularity. It is definitely faster than
|
98
|
+
using +Process.times+.
|
56
99
|
email: jeremy@copiousfreetime.org
|
57
100
|
executables: []
|
58
101
|
|
@@ -119,6 +162,8 @@ files:
|
|
119
162
|
- lib/hitimes/1.9/hitimes_ext.so
|
120
163
|
has_rdoc: true
|
121
164
|
homepage: http://copiousfreetime.rubyforge.org/hitimes/
|
165
|
+
licenses: []
|
166
|
+
|
122
167
|
post_install_message:
|
123
168
|
rdoc_options:
|
124
169
|
- --line-numbers
|
@@ -128,23 +173,29 @@ require_paths:
|
|
128
173
|
- lib
|
129
174
|
- ext
|
130
175
|
required_ruby_version: !ruby/object:Gem::Requirement
|
176
|
+
none: false
|
131
177
|
requirements:
|
132
178
|
- - ">="
|
133
179
|
- !ruby/object:Gem::Version
|
180
|
+
hash: 3
|
181
|
+
segments:
|
182
|
+
- 0
|
134
183
|
version: "0"
|
135
|
-
version:
|
136
184
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
185
|
+
none: false
|
137
186
|
requirements:
|
138
187
|
- - ">="
|
139
188
|
- !ruby/object:Gem::Version
|
189
|
+
hash: 3
|
190
|
+
segments:
|
191
|
+
- 0
|
140
192
|
version: "0"
|
141
|
-
version:
|
142
193
|
requirements: []
|
143
194
|
|
144
195
|
rubyforge_project: copiousfreetime
|
145
|
-
rubygems_version: 1.3.
|
196
|
+
rubygems_version: 1.3.7
|
146
197
|
signing_key:
|
147
|
-
specification_version:
|
198
|
+
specification_version: 3
|
148
199
|
summary: Hitimes is a fast, high resolution timer library for recording performance metrics
|
149
200
|
test_files: []
|
150
201
|
|