Module: Skylight::Helpers

Defined in:
lib/skylight/helpers.rb

Overview

Instrumenting a specific method will cause an event to be created every time that method is called. The event will be inserted at the appropriate place in the Skylight trace.

To instrument a method, the first thing to do is include Skylight::Helpers into the class that you will be instrumenting. Then, annotate each method that you wish to instrument with instrument_method.

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



129
130
131
132
133
134
# File 'lib/skylight/helpers.rb', line 129

def self.included(base)
  base.class_eval do
    @__sk_instrument_next_method = nil
    extend ClassMethods
  end
end