tunemygc 1.0.58 → 1.0.59

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: 9293d59fa62e890c5d82db4cc029ada839d09375
4
- data.tar.gz: ebd4978966df7b64a6de2c8fcf84ee0dbc1b4c71
3
+ metadata.gz: ce809f235e4c395a5d687ccf2e1dda5d6942c589
4
+ data.tar.gz: f70ae8f2f0700eceeda6d7063430cc77d1443811
5
5
  SHA512:
6
- metadata.gz: 96e917596a9b87e6b63626ee3af76d0d91d48518f78539cf8630f4ec797f81ca051b634373f5765977f17f15a61be34bcb048228d277268b376374ab09475b4b
7
- data.tar.gz: 32fa7fbc35cfc1ab35c3226b5eb10d9a84ecced8209825cb1fccd25429a9c104fcff2dae939d7ff6c2b72be30d4ecc88866ee86d1b6c6f13d774eb55fc5a8a6e
6
+ metadata.gz: b10c4065bea89612093d956bdb45be5f7dfe4484e96c3fd4da32021baec7b951668ce75907a15d1c66568fa03c35227a2fddb9afbcfdade561f28909af56634b
7
+ data.tar.gz: 9e68623b236b8dbf74a1656de9eff0627c6cb5770e8d32937591e96e35e5f079f4ffabb6ac5002794c668839b1beac39cd7a9de584c944aab5dd2866e04664e2
data/.travis.yml CHANGED
@@ -7,6 +7,7 @@ rvm:
7
7
  - 2.1.5
8
8
  - 2.2.0
9
9
  - 2.2.1
10
+ - 2.2.2
10
11
  - ruby-head
11
12
  script: "bundle exec rake"
12
13
  env: RUBY_GC_TUNE=200 RUBY_GC_TUNE_DEBUG=1 RUBY_GC_SYNC_ALWAYS=1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tunemygc (1.0.56)
4
+ tunemygc (1.0.59)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -147,9 +147,9 @@ export RUBY_GC_OLDMALLOC_LIMIT_GROWTH_FACTOR=1.2
147
147
 
148
148
  We're busy working on adding tips on the report URLs for some common problem contexts.
149
149
 
150
- #### Heroku and 12 factor
150
+ #### Heroku, 12 factor and PaaS platforms
151
151
 
152
- We have a [Heroku](http://www.heroku.com) addon in Alpha testing and the Ruby GC lends itself well to tuning through [12 factor](http://12factor.net) principles as it's designed around environment variables.
152
+ We have a [Heroku](http://www.heroku.com) addon in Alpha / Beta testing and the Ruby GC lends itself well to tuning through [12 factor](http://12factor.net) principles as it's designed around environment variables. Ping us at <tunemygc@bearmetal.eu> with your Heroku email for an invite.
153
153
 
154
154
  #### Custom hooks for add hoc scripts
155
155
 
@@ -52,7 +52,9 @@ module TuneMyGc
52
52
 
53
53
  def _buffer(snapshot)
54
54
  if snapshot[3] =~ TERMINATED || size < MAX_SAMPLES
55
- self.unit_of_work = true if snapshot[3] =~ UNITS_OF_WORK
55
+ unless self.unit_of_work
56
+ self.unit_of_work = true if snapshot[3] =~ UNITS_OF_WORK
57
+ end
56
58
  @buffer << snapshot
57
59
  else
58
60
  TuneMyGc.log "Discarding snapshot #{snapshot.inspect} (max samples threshold of #{MAX_SAMPLES} reached)"
@@ -55,6 +55,7 @@ module TuneMyGc
55
55
 
56
56
  def sync_required?(snapshotter)
57
57
  return true if ENV['RUBY_GC_SYNC_ALWAYS']
58
+ TuneMyGc.log "Sync required? #{snapshotter.unit_of_work}"
58
59
  snapshotter.unit_of_work
59
60
  end
60
61
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module TuneMyGc
4
- VERSION = "1.0.58"
4
+ VERSION = "1.0.59"
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.58
4
+ version: 1.0.59
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-21 00:00:00.000000000 Z
11
+ date: 2015-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -193,7 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
193
193
  version: '0'
194
194
  requirements: []
195
195
  rubyforge_project:
196
- rubygems_version: 2.2.2
196
+ rubygems_version: 2.4.5
197
197
  signing_key:
198
198
  specification_version: 4
199
199
  summary: TuneMyGC - optimal MRI Ruby 2.1+ Garbage Collection
@@ -209,3 +209,4 @@ test_files:
209
209
  - test/test_railtie.rb
210
210
  - test/test_snapshotter.rb
211
211
  - test/test_syncer.rb
212
+ has_rdoc: