mtrc 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +8 -6
- data/lib/mtrc/sorted_samples.rb +1 -1
- data/lib/mtrc/version.rb +1 -1
- metadata +18 -37
data/README.markdown
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
Mtrc
|
2
|
-
|
3
|
-
(Metric, for short)
|
4
|
-
----
|
1
|
+
Mtrc (Metric, for short)
|
2
|
+
===
|
5
3
|
|
6
4
|
A small library to accumulate metrics and extract basic statistics from them.
|
7
|
-
Want a latency profile of your Rack app? Boom
|
5
|
+
Want a latency profile of your Rack app? Boom.
|
8
6
|
|
9
7
|
gem install mtrc
|
8
|
+
|
9
|
+
Middleware all up in this bitch:
|
10
10
|
|
11
11
|
class MyMetrics
|
12
12
|
def initialize(app)
|
@@ -40,4 +40,6 @@ Want a latency profile of your Rack app? Boom:
|
|
40
40
|
Which requests take the longest?
|
41
41
|
|
42
42
|
@m << Mtrc::Sample.new dt, env[:PATH_INFO]
|
43
|
-
(@m % 95).value # => "
|
43
|
+
(@m % 95).value # => "?bacon=strips&bacon=strips&bacon=strips"
|
44
|
+
|
45
|
+
It's MIT licensed, bro. Pull requests? Roll one up homie.
|
data/lib/mtrc/sorted_samples.rb
CHANGED
data/lib/mtrc/version.rb
CHANGED
metadata
CHANGED
@@ -1,32 +1,23 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: mtrc
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 0
|
8
|
-
- 1
|
9
|
-
version: 0.0.1
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
7
|
+
authors:
|
12
8
|
- Kyle Kingsbury
|
13
9
|
autorequire:
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
|
-
|
17
|
-
date: 2011-07-06 00:00:00 -07:00
|
12
|
+
date: 2011-08-01 00:00:00.000000000 -07:00
|
18
13
|
default_executable:
|
19
14
|
dependencies: []
|
20
|
-
|
21
15
|
description:
|
22
16
|
email: aphyr@aphyr.com
|
23
17
|
executables: []
|
24
|
-
|
25
18
|
extensions: []
|
26
|
-
|
27
19
|
extra_rdoc_files: []
|
28
|
-
|
29
|
-
files:
|
20
|
+
files:
|
30
21
|
- lib/mtrc.rb
|
31
22
|
- lib/mtrc/sample.rb
|
32
23
|
- lib/mtrc/version.rb
|
@@ -37,36 +28,26 @@ files:
|
|
37
28
|
has_rdoc: true
|
38
29
|
homepage: https://github.com/aphyr/mtrc
|
39
30
|
licenses: []
|
40
|
-
|
41
31
|
post_install_message:
|
42
32
|
rdoc_options: []
|
43
|
-
|
44
|
-
require_paths:
|
33
|
+
require_paths:
|
45
34
|
- lib
|
46
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
35
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
47
36
|
none: false
|
48
|
-
requirements:
|
49
|
-
- -
|
50
|
-
- !ruby/object:Gem::Version
|
51
|
-
segments:
|
52
|
-
- 1
|
53
|
-
- 8
|
54
|
-
- 7
|
37
|
+
requirements:
|
38
|
+
- - ! '>='
|
39
|
+
- !ruby/object:Gem::Version
|
55
40
|
version: 1.8.7
|
56
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
41
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
57
42
|
none: false
|
58
|
-
requirements:
|
59
|
-
- -
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
|
62
|
-
- 0
|
63
|
-
version: "0"
|
43
|
+
requirements:
|
44
|
+
- - ! '>='
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '0'
|
64
47
|
requirements: []
|
65
|
-
|
66
48
|
rubyforge_project: mtrc
|
67
|
-
rubygems_version: 1.
|
49
|
+
rubygems_version: 1.6.2
|
68
50
|
signing_key:
|
69
51
|
specification_version: 3
|
70
52
|
summary: Minimal metric aggregation.
|
71
53
|
test_files: []
|
72
|
-
|