Class: JRubyProf::Method::CallContext
- Inherits:
-
Object
- Object
- JRubyProf::Method::CallContext
- Defined in:
- lib/jruby-prof/method.rb
Instance Attribute Summary collapse
-
#childrens_duration ⇒ Object
Returns the value of attribute childrens_duration.
-
#count ⇒ Object
Returns the value of attribute count.
-
#duration ⇒ Object
Returns the value of attribute duration.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ CallContext
constructor
A new instance of CallContext.
- #toplevel? ⇒ Boolean
Constructor Details
#initialize(name) ⇒ CallContext
Returns a new instance of CallContext.
58 59 60 61 |
# File 'lib/jruby-prof/method.rb', line 58 def initialize(name) @name = name @duration, @childrens_duration, @count = 0, 0, 0 end |
Instance Attribute Details
#childrens_duration ⇒ Object
Returns the value of attribute childrens_duration.
48 49 50 |
# File 'lib/jruby-prof/method.rb', line 48 def childrens_duration @childrens_duration end |
#count ⇒ Object
Returns the value of attribute count.
48 49 50 |
# File 'lib/jruby-prof/method.rb', line 48 def count @count end |
#duration ⇒ Object
Returns the value of attribute duration.
48 49 50 |
# File 'lib/jruby-prof/method.rb', line 48 def duration @duration end |
#name ⇒ Object
Returns the value of attribute name.
48 49 50 |
# File 'lib/jruby-prof/method.rb', line 48 def name @name end |
Instance Method Details
#toplevel? ⇒ Boolean
50 51 52 |
# File 'lib/jruby-prof/method.rb', line 50 def toplevel? @name == "#" end |