Method: JRubyProf::ThreadSet.add_methods

Defined in:
lib/jruby-prof/invocation_set.rb

.add_methods(h, inv, duration = nil, count = nil) ⇒ Object



25
26
27
28
29
30
31
32
# File 'lib/jruby-prof/invocation_set.rb', line 25

def self.add_methods(h, inv, duration=nil, count=nil)
  return if inv.name =~ /CachingCallSite\.stop_tracing/ or inv.name =~ /JRubyProf\.stop/
  h[inv.name] ||= Method.new(inv.class_name, inv.method_name, inv.static?)
  h[inv.name].add_invocation(inv)
  inv.children.each do |child_inv|
    add_methods(h, child_inv)
  end
end