Class: AppMap::Trace::MethodReturnIgnoreValue
- Inherits:
-
MethodEvent
- Object
- Struct
- MethodEventStruct
- MethodEvent
- AppMap::Trace::MethodReturnIgnoreValue
- Defined in:
- lib/appmap/trace/tracer.rb
Direct Known Subclasses
Rails::ActionHandler::HTTPServerResponse::Call, Rails::SQLHandler::SQLReturn, EventHandler::RackHandlerWebrick::Return, MethodReturn
Constant Summary
Constants inherited from MethodEvent
AppMap::Trace::MethodEvent::COUNTER_LOCK, AppMap::Trace::MethodEvent::LIMIT
Instance Attribute Summary collapse
-
#elapsed ⇒ Object
Returns the value of attribute elapsed.
-
#parent_id ⇒ Object
Returns the value of attribute parent_id.
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
#elapsed ⇒ Object
Returns the value of attribute elapsed.
161 162 163 |
# File 'lib/appmap/trace/tracer.rb', line 161 def elapsed @elapsed end |
#parent_id ⇒ Object
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_h ⇒ Object
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 |