Class: AppMap::Trace::MethodReturnIgnoreValue

Inherits:
MethodEvent show all
Defined in:
lib/appmap/trace/tracer.rb

Constant Summary

Constants inherited from MethodEvent

AppMap::Trace::MethodEvent::COUNTER_LOCK, AppMap::Trace::MethodEvent::LIMIT

Instance Attribute Summary collapse

Attributes inherited from MethodEventStruct

#defined_class, #event, #id, #lineno, #method_id, #path, #static, #thread_id

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from MethodEvent

display_string, next_id, value_in_binding

Instance Attribute Details

#elapsedObject

Returns the value of attribute elapsed.



161
162
163
# File 'lib/appmap/trace/tracer.rb', line 161

def elapsed
  @elapsed
end

#parent_idObject

Returns the value of attribute parent_id.



161
162
163
# File 'lib/appmap/trace/tracer.rb', line 161

def parent_id
  @parent_id
end

Class Method Details

.build_from_tracepoint(mr = MethodReturnIgnoreValue.new, tp, path, parent_id, elapsed) ⇒ Object



164
165
166
167
168
169
170
# File 'lib/appmap/trace/tracer.rb', line 164

def build_from_tracepoint(mr = MethodReturnIgnoreValue.new, tp, path, parent_id, elapsed)
  mr.tap do |_|
    mr.parent_id = parent_id
    mr.elapsed = elapsed
    MethodEvent.build_from_tracepoint(mr, tp, path)
  end
end

Instance Method Details

#to_hObject



173
174
175
176
177
178
# File 'lib/appmap/trace/tracer.rb', line 173

def to_h
  super.tap do |h|
    h[:parent_id] = parent_id
    h[:elapsed] = elapsed
  end
end