class RubyProf::Measurement
The Measurement
class is a helper class used by RubyProf::MethodInfo
to store information about the method. You cannot create a CallTree
object directly, they are generated while running a profile.
Public Instance Methods
children_time()
click to toggle source
# File lib/ruby-prof/measurement.rb, line 5 def children_time self.total_time - self.self_time - self.wait_time end
inspect()
click to toggle source
Calls superclass method
# File lib/ruby-prof/measurement.rb, line 13 def inspect super + "(#{self.to_s})" end
to_s()
click to toggle source
# File lib/ruby-prof/measurement.rb, line 9 def to_s "c: #{called}, tt: #{total_time}, st: #{self_time}" end