module CallGraph

Constants

VERSION

Public Class Methods

config() { |instrument| ... } click to toggle source
# File lib/call_graph.rb, line 11
def self.config
  if block_given?
    yield instrument
  else
    instrument
  end
end
trace(&block) click to toggle source
# File lib/call_graph.rb, line 7
def self.trace(&block)
  instrument.trace(&block)
end

Private Class Methods

instrument() click to toggle source
# File lib/call_graph.rb, line 21
def self.instrument
  @instrument ||= begin
    Instrument.new
  end
end