tunemygc 1.0.54 → 1.0.55

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bf8ede849b72dcc54f498ac3524a0cc6b9fdd5a9
4
- data.tar.gz: b04594c51a211451192de075f4da2d0e2e9c4973
3
+ metadata.gz: c9bc21ec0d45e156bf1a8646f766c5e2faef5b50
4
+ data.tar.gz: 575e3a4b82a1eb2fca4c7f4dd1c66e8763909a8e
5
5
  SHA512:
6
- metadata.gz: 522b8f6c62f5eff66b55e034c3fd8049c1a93c3af0011b7eb220ea7fbc5502a9f47fd365c43cbbbdc0892785d6594ff1eaedaae6b13bff85d9632d38ff757f03
7
- data.tar.gz: eaf43440862ab8407c71871d5373b9e25ced6024ec575b7ea4f10c6e17eeb751066ba22984756fd34ed2d104767d17e7dae769236c093856c283986874234bb4
6
+ metadata.gz: c2cd02a42b1e7f8af391cb2146d803cb006152e3b7288ebcac0ae26920dd1c045b7b0165d51100b4a220320a02f75cd78207c59ec988e7d0f4a56269583eebff
7
+ data.tar.gz: 9c53a726d80c244e7db4cb7386091aaa7fe2931e2757618c39e93910b337f7494dea7d81f9097c743fc617181cc55b9a819e4ee2e143f80bdc68d1131f2e8910
@@ -4,6 +4,7 @@ require "tunemygc/tunemygc_ext"
4
4
  require "tunemygc/interposer"
5
5
  require "tunemygc/snapshotter"
6
6
  require "logger"
7
+ require "objspace"
7
8
 
8
9
  module TuneMyGc
9
10
  MUTEX = Mutex.new
@@ -20,7 +20,7 @@ module TuneMyGc
20
20
  GC.start(full_mark: true, :immediate_sweep => true)
21
21
  TuneMyGc.install_gc_tracepoint
22
22
  TuneMyGc.log "hooked: GC tracepoints"
23
- TuneMyGc.snapshot(:BOOTED, ObjectSpace.count_objects)
23
+ TuneMyGc.snapshot(:BOOTED, ObjectSpace.count_objects.merge(:memsize => ObjectSpace.memsize_of_all))
24
24
  TuneMyGc.interposer.spies.each{|s| s.install }
25
25
  end
26
26
 
@@ -41,7 +41,7 @@ module TuneMyGc
41
41
  if @installed
42
42
  TuneMyGc.log "at_exit"
43
43
  @spies.each{|s| s.uninstall }
44
- TuneMyGc.snapshot(:TERMINATED, ObjectSpace.count_objects)
44
+ TuneMyGc.snapshot(:TERMINATED, ObjectSpace.count_objects.merge(:memsize => ObjectSpace.memsize_of_all))
45
45
  TuneMyGc.reccommendations
46
46
  end
47
47
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module TuneMyGc
4
- VERSION = "1.0.54"
4
+ VERSION = "1.0.55"
5
5
  end
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.54
4
+ version: 1.0.55
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-04-03 00:00:00.000000000 Z
11
+ date: 2015-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport