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