Module: TraceViz::Helpers::TrackingHelper

Included in:
Collectors::BaseCollector, Collectors::Matchers::TracePointActionMatcher, Collectors::Steps::BaseStep
Defined in:
lib/trace_viz/helpers/tracking_helper.rb

Instance Method Summary collapse

Instance Method Details

#active_call_stackObject

Helper methods to access tracker attributes



13
14
15
# File 'lib/trace_viz/helpers/tracking_helper.rb', line 13

def active_call_stack
  tracker.active_calls
end

#current_callObject



17
18
19
# File 'lib/trace_viz/helpers/tracking_helper.rb', line 17

def current_call
  tracker.current_call
end

#current_depthObject



21
22
23
# File 'lib/trace_viz/helpers/tracking_helper.rb', line 21

def current_depth
  tracker.current_depth
end

#trackerObject



8
9
10
# File 'lib/trace_viz/helpers/tracking_helper.rb', line 8

def tracker
  Context.for(:tracking)
end