Sha256: 3da66a8ff41da8d92db621af769d60b89b54568360b9b04e6befc2236fe073ca

Contents?: true

Size: 732 Bytes

Versions: 52

Compression:

Stored size: 732 Bytes

Contents

class JRubyProf
  import org.jruby.prof.Invocation
  class Invocation
    alias :method_name  :methodName
    alias :class_name   :className
    
    def name
      "#{class_name}#{static? ? "." : "#"}#{method_name}"
    end
      
    def childrens_duration
      children.inject(0) {|m, inv| m + inv.duration}
    end
    
    def static?
      false
    end
    
    def to_method
      method = Method.new(class_name, method_name, static?)
      method.add_invocation(self)
      method
    end
    
    def id
      @id ||= Invocation.new_id
    end
    
    def self.new_id
      @id ||= 0
      @id += 1
      @id
    end
    
    def get_methods
      h = {}
      ThreadSet.add_methods(h, self)
      h
    end
  end
end

Version data entries

52 entries across 52 versions & 4 rubygems

Version Path
redcar-dev-0.12.16dev-java plugins/redcar_debug/vendor/jruby-prof/lib/jruby-prof/profile_invocation.rb
redcar-dev-0.12.15dev-java plugins/redcar_debug/vendor/jruby-prof/lib/jruby-prof/profile_invocation.rb
redcar-dev-0.12.14dev-java plugins/redcar_debug/vendor/jruby-prof/lib/jruby-prof/profile_invocation.rb
redcar-dev-0.12.13dev-java plugins/redcar_debug/vendor/jruby-prof/lib/jruby-prof/profile_invocation.rb
redcar-dev-0.12.12dev-java plugins/redcar_debug/vendor/jruby-prof/lib/jruby-prof/profile_invocation.rb
redcar-dev-0.12.11dev-java plugins/redcar_debug/vendor/jruby-prof/lib/jruby-prof/profile_invocation.rb
redcar-dev-0.12.10dev-java plugins/redcar_debug/vendor/jruby-prof/lib/jruby-prof/profile_invocation.rb
redcar-dev-0.12.9dev-java plugins/redcar_debug/vendor/jruby-prof/lib/jruby-prof/profile_invocation.rb
redcar-dev-0.12.8dev-java plugins/redcar_debug/vendor/jruby-prof/lib/jruby-prof/profile_invocation.rb
redcar-dev-0.12.7dev-java plugins/redcar_debug/vendor/jruby-prof/lib/jruby-prof/profile_invocation.rb
redcar-dev-0.12.6dev-java plugins/redcar_debug/vendor/jruby-prof/lib/jruby-prof/profile_invocation.rb
redcar-dev-0.12.4dev-java plugins/redcar_debug/vendor/jruby-prof/lib/jruby-prof/profile_invocation.rb
redcar-dev-0.12.3dev-java plugins/redcar_debug/vendor/jruby-prof/lib/jruby-prof/profile_invocation.rb
redcar-dev-0.12.1dev-java plugins/redcar_debug/vendor/jruby-prof/lib/jruby-prof/profile_invocation.rb
redcar-dev-0.12.0dev-java plugins/redcar_debug/vendor/jruby-prof/lib/jruby-prof/profile_invocation.rb
redcar-0.11 plugins/redcar_debug/vendor/jruby-prof/lib/jruby-prof/profile_invocation.rb
redcar-0.11.0dev plugins/redcar_debug/vendor/jruby-prof/lib/jruby-prof/profile_invocation.rb
redcar-0.10 plugins/redcar_debug/vendor/jruby-prof/lib/jruby-prof/profile_invocation.rb
redcar-0.9.2 plugins/redcar_debug/vendor/jruby-prof/lib/jruby-prof/profile_invocation.rb
rdp-jruby-prof-0.1.0.1 lib/jruby-prof/profile_invocation.rb