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