Class: JRubyProf::Method::CallContext

Inherits:
Object
  • Object
show all
Defined in:
lib/jruby-prof/method.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_durationObject

Returns the value of attribute childrens_duration.


48
49
50
# File 'lib/jruby-prof/method.rb', line 48

def childrens_duration
  @childrens_duration
end

#countObject

Returns the value of attribute count.


48
49
50
# File 'lib/jruby-prof/method.rb', line 48

def count
  @count
end

#durationObject

Returns the value of attribute duration.


48
49
50
# File 'lib/jruby-prof/method.rb', line 48

def duration
  @duration
end

#nameObject

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

Returns:

  • (Boolean)

50
51
52
# File 'lib/jruby-prof/method.rb', line 50

def toplevel?
  @name == "#"
end