tunemygc 1.0.11 → 1.0.12

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: ad1f9fae71c5713699b30712a3c179bfded88168
4
- data.tar.gz: b479ef8df78f227ff500c4959bf250e69fa9e5b2
3
+ metadata.gz: 5c004b858c9d84c91d9ac30f5ab02c38523e21c0
4
+ data.tar.gz: 5d3267590cd9081b8d080326ea4f6d68a0c55fae
5
5
  SHA512:
6
- metadata.gz: add02b4e837eb6ffaf04c1fd37e3c62f95fa7ae358948adc36c9203ce6da276cfab554ce8124b8495f0d8a627b9521f09a810134401df8097e56e8c1f9de1d4f
7
- data.tar.gz: 76e9a1ac9e30340afeee5d33c764c102c7ca716a6624421cc8f5343802a1bfc67aeacb54d5e9e17aa775ec646a9297159b32c5427609a4bf0a7d30ffb25e21cd
6
+ metadata.gz: ecf0488e21335e5951b3d45c073cf3211551ee933643a0ce04608861c017f3d80b8819aa00d72567794012976a68c41763aa1d71d1426459970ea3188f0da8d7
7
+ data.tar.gz: 02a61c92b7abf6a1aa8d4a012ff4fa6dae7b657b5719ae5822c48b5cd730915921f4b157d19070086c8d4e65e4308dc52f7eff5be2a98717d7a3d13d42cfcb8b
@@ -5,13 +5,13 @@ require 'tunemygc/subscriber'
5
5
  module TuneMyGc
6
6
  class StartRequestSubscriber < Subscriber
7
7
  def start(name, id, payload)
8
- TuneMyGc.snapshot(:REQUEST_PROCESSING_STARTED)
8
+ TuneMyGc.snapshot(:PROCESSING_STARTED)
9
9
  end
10
10
  end
11
11
 
12
12
  class EndRequestSubscriber < Subscriber
13
13
  def finish(name, id, payload)
14
- TuneMyGc.snapshot(:REQUEST_PROCESSING_ENDED)
14
+ TuneMyGc.snapshot(:PROCESSING_ENDED)
15
15
  TuneMyGc.interposer.check_uninstall
16
16
  end
17
17
  end
@@ -4,7 +4,7 @@ require 'thread'
4
4
 
5
5
  module TuneMyGc
6
6
  class Snapshotter
7
- UNITS_OF_WORK = /REQUEST_PROCESSING_STARTED|REQUEST_PROCESSING_ENDED/
7
+ UNITS_OF_WORK = /PROCESSING_STARTED|PROCESSING_ENDED/
8
8
  TERMINATED = /TERMINATED/
9
9
  MAX_SAMPLES = (ENV['RUBY_GC_MAX_SAMPLES'] ? Integer(ENV['RUBY_GC_MAX_SAMPLES']) : 2000)
10
10
 
@@ -47,11 +47,11 @@ module TuneMyGc
47
47
 
48
48
  private
49
49
  def tunemygc_before_setup
50
- TuneMyGc.snapshot(:TEST_PROCESSING_STARTED)
50
+ TuneMyGc.snapshot(:PROCESSING_STARTED)
51
51
  end
52
52
 
53
53
  def tunemygc_after_teardown
54
- TuneMyGc.snapshot(:TEST_PROCESSING_ENDED)
54
+ TuneMyGc.snapshot(:PROCESSING_ENDED)
55
55
  TuneMyGc.interposer.check_uninstall
56
56
  end
57
57
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module TuneMyGc
4
- VERSION = "1.0.11"
4
+ VERSION = "1.0.12"
5
5
  end
@@ -69,7 +69,7 @@ class TestActionControllerInterposer < TuneMyGcTestCase
69
69
  stages << TuneMyGc.snapshotter.deq
70
70
  end
71
71
 
72
- cycles = [:REQUEST_PROCESSING_STARTED]
72
+ cycles = [:PROCESSING_STARTED]
73
73
 
74
74
  assert stages.any?{|s| cycles.include?(s[3]) }
75
75
 
@@ -68,7 +68,7 @@ class TestMinitestInterposer < TuneMyGcTestCase
68
68
  stages << TuneMyGc.snapshotter.deq
69
69
  end
70
70
 
71
- cycles = [:TEST_PROCESSING_STARTED]
71
+ cycles = [:PROCESSING_STARTED]
72
72
 
73
73
  assert stages.any?{|s| cycles.include?(s[3]) }
74
74
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tunemygc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.11
4
+ version: 1.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bear Metal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-10 00:00:00.000000000 Z
11
+ date: 2015-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport