Class: AppMap::Handler::FunctionHandler
- Inherits:
-
AppMap::Hook::Method
- Object
- AppMap::Hook::Method
- AppMap::Handler::FunctionHandler
- Defined in:
- lib/appmap/handler/function_handler.rb
Overview
Base handler class, will emit method call and return events.
Direct Known Subclasses
EvalHandler, MarshalLoadHandler, OpenSSLHandler, Rails::RenderHandler, Rails::Template::ResolverHandler
Constant Summary
Constants inherited from AppMap::Hook::Method
AppMap::Hook::Method::HOOK_DISABLE_KEY
Constants included from AppMap::Hook::RecordAround
AppMap::Hook::RecordAround::APPMAP_OUTPUT_DIR
Instance Attribute Summary
Attributes inherited from AppMap::Hook::Method
#arity, #hook_class, #hook_method, #hook_package, #parameters, #record_around
Instance Method Summary collapse
- #handle_call(receiver, args) ⇒ Object
- #handle_return(call_event_id, elapsed, return_value, exception) ⇒ Object
Methods inherited from AppMap::Hook::Method
Methods included from AppMap::Hook::RecordAround
#record_around?, #record_around_after, #record_around_before
Constructor Details
This class inherits a constructor from AppMap::Hook::Method
Instance Method Details
#handle_call(receiver, args) ⇒ Object
10 11 12 |
# File 'lib/appmap/handler/function_handler.rb', line 10 def handle_call(receiver, args) AppMap::Event::MethodCall.build_from_invocation(defined_class, hook_method, receiver, args) end |
#handle_return(call_event_id, elapsed, return_value, exception) ⇒ Object
14 15 16 |
# File 'lib/appmap/handler/function_handler.rb', line 14 def handle_return(call_event_id, elapsed, return_value, exception) AppMap::Event::MethodReturn.build_from_invocation(call_event_id, return_value, exception, elapsed: elapsed) end |