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 +4 -4
- data/.travis.yml +35 -0
- data/ext/tunemygc/extconf.rb +1 -1
- data/ext/tunemygc/tunemygc_ext.c +5 -2
- data/lib/tunemygc.rb +2 -2
- data/lib/tunemygc/spies/minitest.rb +2 -2
- data/lib/tunemygc/version.rb +1 -1
- data/test/test_kamikaze.rb +1 -1
- data/test/test_minitest_interposer.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c77ff110763f0960946dbc8d402279c00baa94a1
|
4
|
+
data.tar.gz: 4f5c3ef642be5fd06ac629d3e776a77e4cee4007
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54096d6559ec8e154cc20bdb7803ce73833c925a30100e9d138fac3770b892b12b94dad8846ca062cb1dbdfdfdf1bdd4de1f0bae5c0baa144012fc6654859ff4
|
7
|
+
data.tar.gz: 2b480c2e8fce506c82567cbc41f4e7437a3346938af425d2746dc1004a1b29c10e226c509432ab53e9de26d9e645939c1ecfd36a7bb01daa5d5ccc2cd6f83920
|
data/.travis.yml
CHANGED
@@ -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
|
data/ext/tunemygc/extconf.rb
CHANGED
data/ext/tunemygc/tunemygc_ext.c
CHANGED
@@ -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(
|
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*)
|
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 {
|
data/lib/tunemygc.rb
CHANGED
@@ -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::
|
9
|
+
MiniTest::Test.__send__(:include, hooks_module)
|
10
10
|
TuneMyGc.log "hooked: minitest"
|
11
11
|
end
|
12
12
|
|
13
13
|
def uninstall
|
14
|
-
MiniTest::
|
14
|
+
MiniTest::Test.__send__(:include, disabled_hooks_module)
|
15
15
|
TuneMyGc.log "uninstalled minitest spy"
|
16
16
|
end
|
17
17
|
|
data/lib/tunemygc/version.rb
CHANGED
data/test/test_kamikaze.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.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:
|
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.
|
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
|