Class: JRubyProf::Invocation
- Inherits:
-
Object
- Object
- JRubyProf::Invocation
- Defined in:
- lib/jruby-prof/profile_invocation.rb
Class Method Summary collapse
Instance Method Summary collapse
- #childrens_duration ⇒ Object
- #get_methods ⇒ Object
- #id ⇒ Object
- #name ⇒ Object
- #static? ⇒ Boolean
- #to_method ⇒ Object
Class Method Details
.new_id ⇒ Object
30 31 32 33 34 |
# File 'lib/jruby-prof/profile_invocation.rb', line 30 def self.new_id @id ||= 0 @id += 1 @id end |
Instance Method Details
#childrens_duration ⇒ Object
12 13 14 |
# File 'lib/jruby-prof/profile_invocation.rb', line 12 def childrens_duration children.inject(0) {|m, inv| m + inv.duration} end |
#get_methods ⇒ Object
36 37 38 39 40 |
# File 'lib/jruby-prof/profile_invocation.rb', line 36 def get_methods h = {} ThreadSet.add_methods(h, self) h end |
#id ⇒ Object
26 27 28 |
# File 'lib/jruby-prof/profile_invocation.rb', line 26 def id @id ||= Invocation.new_id end |
#name ⇒ Object
8 9 10 |
# File 'lib/jruby-prof/profile_invocation.rb', line 8 def name "#{class_name}#{static? ? "." : "#"}#{method_name}" end |
#static? ⇒ Boolean
16 17 18 |
# File 'lib/jruby-prof/profile_invocation.rb', line 16 def static? false end |