tunemygc 1.0.18 → 1.0.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tunemygc.rb +1 -0
- data/lib/tunemygc/agent.rb +1 -2
- data/lib/tunemygc/interposer.rb +6 -3
- data/lib/tunemygc/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f2a137fcc751bdbe687ec275b922f67a3a666a44
|
4
|
+
data.tar.gz: ca258ed73bfe627031d4ccffac7457ad0deaab0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a901f3e56967e38228fd57d40d33f7db7a8cf143a06d8b4644df93d2f4aa2a15f3580c1499437dd25d9e895146afd100c336007f2c34f964033c69b40701f6fb
|
7
|
+
data.tar.gz: b7e615f3b6cc7d3ded86b68c53a66410215cff1584eaaa4e096f4a64dba7d78f35fb05f6dfa8ccf3056be51f51ffcf1dc66e747004e2479a2c64336b4a3827f6
|
data/lib/tunemygc.rb
CHANGED
data/lib/tunemygc/agent.rb
CHANGED
data/lib/tunemygc/interposer.rb
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
|
3
|
-
require 'active_support'
|
4
3
|
require 'tunemygc/spies'
|
5
4
|
|
6
5
|
module TuneMyGc
|
@@ -18,14 +17,18 @@ module TuneMyGc
|
|
18
17
|
TuneMyGc.install_gc_tracepoint
|
19
18
|
TuneMyGc.log "hooked: GC tracepoints"
|
20
19
|
TuneMyGc.snapshot(:BOOTED)
|
21
|
-
|
22
20
|
TuneMyGc.interposer.spy.install
|
23
21
|
end
|
24
22
|
|
25
23
|
def install
|
26
24
|
return if @installed
|
27
25
|
TuneMyGc.log "interposing"
|
28
|
-
|
26
|
+
if TuneMyGc.rails?
|
27
|
+
require 'active_support'
|
28
|
+
ActiveSupport.on_load(:after_initialize) do
|
29
|
+
TuneMyGc.interposer.on_initialized
|
30
|
+
end
|
31
|
+
else
|
29
32
|
TuneMyGc.interposer.on_initialized
|
30
33
|
end
|
31
34
|
TuneMyGc.log "hooked: after_initialize"
|
data/lib/tunemygc/version.rb
CHANGED
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.
|
4
|
+
version: 1.0.20
|
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-
|
11
|
+
date: 2015-02-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|