sampling_prof 0.1.4 → 0.1.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9e2ee72ed126d2cd030a7166a6c8b8068b85ddec
4
- data.tar.gz: b8a20d15e82b99894a51cbefcda3f32efdeea5e1
3
+ metadata.gz: 6e74f789ae7dba019462c771325081151d194206
4
+ data.tar.gz: 00ee209871452f5fa34f62e973db2d801e6e27b2
5
5
  SHA512:
6
- metadata.gz: b052c302287cd4621741f31d3fce68e0c34c67e80137d1742fc4900f28573b3961d3346fc3267742d63d30a466ed0f1b82e63ea7fe086a1946892e111043994a
7
- data.tar.gz: f7f559b7da896e0bad170f9dcfcd03aa211458b3e11dfee4a315eddcab52b2413b8b3793aa6643ebe92adb0332ddaaf6b6058738cd48d0ba76c22963453d0c8c
6
+ metadata.gz: eda0c06539ea65d5a9159cbee26b047f123fd73142cbff761f7b665d90cd97e81ae12fb4718698a86b584a9787f5d02186d3f4eae323468faf4405eb8eb8bb05
7
+ data.tar.gz: b3a9f7a9900abd607deb03b669b5721b01a81f3ad2f81cb71ee241e3630ea46c622782786f76af53c34eea34a1ec6fc2b80d641e838a99c4cfd2d99d359e9e46
Binary file
data/lib/sampling_prof.rb CHANGED
@@ -20,11 +20,11 @@ class SamplingProf
20
20
  stop if block_given?
21
21
  end
22
22
 
23
- def start
24
- __start__(&output)
23
+ def start(handler=default_output_handler)
24
+ __start__(&handler)
25
25
  end
26
26
 
27
- def output
27
+ def default_output_handler
28
28
  lambda do |data|
29
29
  nodes, counts, call_graph = data
30
30
  File.open(output_file, 'w') do |f|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sampling_prof
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Xiao Li
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2014-03-10 00:00:00 Z
12
+ date: 2014-03-22 00:00:00 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake-compiler