tunemygc 1.0.69 → 1.0.71

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: 96bb8e5e17e38e48c72acba5dfe33240ff7d82f1
4
- data.tar.gz: dc3aeb4c7e1348f54dd1d73ff770c8df52e4e9cb
3
+ metadata.gz: c77ff110763f0960946dbc8d402279c00baa94a1
4
+ data.tar.gz: 4f5c3ef642be5fd06ac629d3e776a77e4cee4007
5
5
  SHA512:
6
- metadata.gz: 2d891545f5d3139121203163eddf21ed75c1ca3665e2898bdcab16a2c64fe075b6dc8ab9c1de1e9c6c8dbb8672f3753fa3262f34370a7cb982368b4c67552ca5
7
- data.tar.gz: 23c49443ad155609e8547e8b195e9f2b20b9d17ff73c2c2ca588d65ee1b861268480c6f1c3679d3bffe695d8d9702d2b438475aabf5baaf398ca801bd5b5e45b
6
+ metadata.gz: 54096d6559ec8e154cc20bdb7803ce73833c925a30100e9d138fac3770b892b12b94dad8846ca062cb1dbdfdfdf1bdd4de1f0bae5c0baa144012fc6654859ff4
7
+ data.tar.gz: 2b480c2e8fce506c82567cbc41f4e7437a3346938af425d2746dc1004a1b29c10e226c509432ab53e9de26d9e645939c1ecfd36a7bb01daa5d5ccc2cd6f83920
@@ -11,6 +11,11 @@ rvm:
11
11
  - 2.2.5
12
12
  - 2.3.0
13
13
  - 2.3.1
14
+ - 2.3.2
15
+ - 2.3.3
16
+ - 2.3.4
17
+ - 2.4.0
18
+ - 2.4.1
14
19
  - ruby-head
15
20
  script: "bundle exec rake"
16
21
  env: RUBY_GC_TUNE=200 RUBY_GC_TUNE_DEBUG=1 RUBY_GC_SYNC_ALWAYS=1
@@ -27,6 +32,18 @@ matrix:
27
32
  gemfile: Gemfile_5
28
33
  - rvm: 2.3.0
29
34
  gemfile: Gemfile_5
35
+ - rvm: 2.3.1
36
+ gemfile: Gemfile_5
37
+ - rvm: 2.3.2
38
+ gemfile: Gemfile_5
39
+ - rvm: 2.3.3
40
+ gemfile: Gemfile_5
41
+ - rvm: 2.3.4
42
+ gemfile: Gemfile_5
43
+ - rvm: 2.4.0
44
+ gemfile: Gemfile_5
45
+ - rvm: 2.4.1
46
+ gemfile: Gemfile_5
30
47
  - rvm: 2.1.0
31
48
  gemfile: Gemfile_5
32
49
  os: osx
@@ -39,6 +56,24 @@ matrix:
39
56
  - rvm: 2.3.0
40
57
  gemfile: Gemfile_5
41
58
  os: osx
59
+ - rvm: 2.3.1
60
+ gemfile: Gemfile_5
61
+ os: osx
62
+ - rvm: 2.3.2
63
+ gemfile: Gemfile_5
64
+ os: osx
65
+ - rvm: 2.3.3
66
+ gemfile: Gemfile_5
67
+ os: osx
68
+ - rvm: 2.3.4
69
+ gemfile: Gemfile_5
70
+ os: osx
71
+ - rvm: 2.4.0
72
+ gemfile: Gemfile_5
73
+ os: osx
74
+ - rvm: 2.4.1
75
+ gemfile: Gemfile_5
76
+ os: osx
42
77
  notifications:
43
78
  recipients:
44
79
  - info@bearmetal.eu
@@ -4,7 +4,7 @@ require 'mkmf'
4
4
 
5
5
  dir_config('tunemygc')
6
6
 
7
- # Only defined for Ruby 2.1.x and 2.2.x
7
+ # Only defined for Ruby 2.1+
8
8
  gc_events = have_const('RUBY_INTERNAL_EVENT_GC_END_SWEEP')
9
9
 
10
10
  if gc_events
@@ -18,7 +18,7 @@ static double _tunemygc_walltime()
18
18
  {
19
19
  struct timespec ts;
20
20
  #ifdef HAVE_CLOCK_GETTIME
21
- if (clock_gettime(CLOCK_REALTIME, &ts) == -1) {
21
+ if (clock_gettime(CLOCK_MONOTONIC, &ts) == -1) {
22
22
  rb_sys_fail("clock_gettime");
23
23
  }
24
24
  #else
@@ -58,7 +58,10 @@ static void tunemygc_gc_hook_i(VALUE tpval, void *data)
58
58
  rb_trace_arg_t *tparg = rb_tracearg_from_tracepoint(tpval);
59
59
  rb_event_flag_t flag = rb_tracearg_event_flag(tparg);
60
60
 
61
- tunemygc_stat_record *stat = ((tunemygc_stat_record*)malloc(sizeof(tunemygc_stat_record)));
61
+ tunemygc_stat_record *stat = ((tunemygc_stat_record*)calloc(1, sizeof(tunemygc_stat_record)));
62
+ if (!stat) {
63
+ return;
64
+ }
62
65
  if (rb_thread_current() == rb_thread_main()) {
63
66
  stat->thread_id = Qnil;
64
67
  } else {
@@ -27,10 +27,10 @@ end
27
27
 
28
28
  if TuneMyGc.enabled?
29
29
  if TuneMyGc.rails?
30
- puts "[tunemygc] Rails detected, loading railtie"
30
+ puts "[tunemygc] Rails detected, loading railtie" unless TuneMyGc.run_silently?
31
31
  require 'tunemygc/railtie'
32
32
  else
33
- puts "[tunemygc] Rails not detected, loading minimal agent"
33
+ puts "[tunemygc] Rails not detected, loading minimal agent" unless TuneMyGc.run_silently?
34
34
  require 'tunemygc/agent'
35
35
  TuneMyGc.booted
36
36
  end
@@ -6,12 +6,12 @@ module TuneMyGc
6
6
  module Spies
7
7
  class Minitest < TuneMyGc::Spies::Base
8
8
  def install
9
- MiniTest::Unit::TestCase.__send__(:include, hooks_module)
9
+ MiniTest::Test.__send__(:include, hooks_module)
10
10
  TuneMyGc.log "hooked: minitest"
11
11
  end
12
12
 
13
13
  def uninstall
14
- MiniTest::Unit::TestCase.__send__(:include, disabled_hooks_module)
14
+ MiniTest::Test.__send__(:include, disabled_hooks_module)
15
15
  TuneMyGc.log "uninstalled minitest spy"
16
16
  end
17
17
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module TuneMyGc
4
- VERSION = "1.0.69"
4
+ VERSION = "1.0.71"
5
5
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  require File.join(File.dirname(__FILE__), 'helper')
4
4
 
5
- class TestKamikaze < MiniTest::Unit::TestCase
5
+ class TestKamikaze < MiniTest::Test
6
6
  def test_kamikaze
7
7
  syncer = TuneMyGc::Syncer.new
8
8
  snapshots = TuneMyGc::Snapshotter.new
@@ -2,7 +2,7 @@
2
2
 
3
3
  require File.join(File.dirname(__FILE__), 'helper')
4
4
 
5
- class MinitestSandboxTest < MiniTest::Unit::TestCase
5
+ class MinitestSandboxTest < MiniTest::Test
6
6
  def setup
7
7
  @value = 123
8
8
  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.69
4
+ version: 1.0.71
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bear Metal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-23 00:00:00.000000000 Z
11
+ date: 2018-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -156,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
156
156
  version: '0'
157
157
  requirements: []
158
158
  rubyforge_project:
159
- rubygems_version: 2.5.1
159
+ rubygems_version: 2.5.2
160
160
  signing_key:
161
161
  specification_version: 4
162
162
  summary: TuneMyGC - optimal MRI Ruby 2.1+ Garbage Collection