diver_down 0.0.1.alpha9 → 0.0.1.alpha10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/diver_down/trace/session.rb +4 -0
- data/lib/diver_down/trace/tracer.rb +10 -1
- data/lib/diver_down/trace.rb +1 -5
- data/lib/diver_down/version.rb +1 -1
- data/web/assets/bundle.js +77 -78
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 45734000dad7ab44ca75037957b39dc6caae34d1189864f563ec251453972db8
|
4
|
+
data.tar.gz: bf21e0f1faeaa051f6fc4e001ff0544570994fc98d8cc75da92c8fd5f6e5d294
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3060ddaba43ef6d91c01e9eb5b9ede908a61629e563d2dfef6b2775a59843cd3cd4e34c0505320ffc035e04459dc00744cf0dc58f8302de812a7b15d2b6b357c
|
7
|
+
data.tar.gz: bb258e2b3e308848e9debee4acd34930dbe375bc07ec639daeac97d24ff514f4e03a8f3b2cee8717ffb29d10b3600a97a645a9104b3481b4153c2f8ab0ce7ad9
|
@@ -3,9 +3,18 @@
|
|
3
3
|
module DiverDown
|
4
4
|
module Trace
|
5
5
|
class Tracer
|
6
|
+
DEFAULT_TRACE_EVENTS = %i[
|
7
|
+
call
|
8
|
+
return
|
9
|
+
c_call
|
10
|
+
c_return
|
11
|
+
b_call
|
12
|
+
b_return
|
13
|
+
].freeze
|
14
|
+
|
6
15
|
# @return [Array<Symbol>]
|
7
16
|
def self.trace_events
|
8
|
-
@trace_events ||
|
17
|
+
@trace_events || DEFAULT_TRACE_EVENTS
|
9
18
|
end
|
10
19
|
|
11
20
|
# @param events [Array<Symbol>]
|
data/lib/diver_down/trace.rb
CHANGED
@@ -11,16 +11,12 @@ module DiverDown
|
|
11
11
|
require 'diver_down/trace/redefine_ruby_methods'
|
12
12
|
require 'diver_down/trace/ignored_method_ids'
|
13
13
|
|
14
|
-
@trace_events = %i[
|
15
|
-
call c_call return c_return
|
16
|
-
]
|
17
|
-
|
18
14
|
# Trace only Ruby-implemented methods because tracing C-implemented methods is very slow
|
19
15
|
# Override Ruby only with the minimal set of methods needed to trace dependencies.
|
20
16
|
#
|
21
17
|
# @return [void]
|
22
18
|
def self.trace_only_ruby_world!(map = DiverDown::Trace::RedefineRubyMethods::DEFAULT_METHODS)
|
23
|
-
DiverDown::Trace::Tracer.trace_events = %i[
|
19
|
+
DiverDown::Trace::Tracer.trace_events = DiverDown::Trace::Tracer::DEFAULT_TRACE_EVENTS - %i[c_call c_return]
|
24
20
|
DiverDown::Trace::RedefineRubyMethods.redefine_c_methods(map)
|
25
21
|
end
|
26
22
|
end
|
data/lib/diver_down/version.rb
CHANGED