Module: Tracer::Helper
- Included in:
- Tracer
- Defined in:
- lib/ruby_tracer.rb
Constant Summary collapse
- DEPTH_OFFSET =
3
Instance Method Summary collapse
Instance Method Details
#trace(target, &block) ⇒ Object
23 24 25 26 |
# File 'lib/ruby_tracer.rb', line 23 def trace(target, &block) tracer = ObjectTracer.new(target, depth_offset: DEPTH_OFFSET) tracer.start(&block) end |
#trace_call(&block) ⇒ Object
18 19 20 21 |
# File 'lib/ruby_tracer.rb', line 18 def trace_call(&block) tracer = CallTracer.new(depth_offset: DEPTH_OFFSET) tracer.start(&block) end |
#trace_exception(&block) ⇒ Object
13 14 15 16 |
# File 'lib/ruby_tracer.rb', line 13 def trace_exception(&block) tracer = ExceptionTracer.new(depth_offset: DEPTH_OFFSET) tracer.start(&block) end |