Sha256: c4a1f25b873dc0116d2a170fe94351865df991bc6a119f24502e6089ed5957d1

Contents?: true

Size: 491 Bytes

Versions: 32

Compression:

Stored size: 491 Bytes

Contents

module RubyProf
  # 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.
  class Measurement
    def children_time
      self.total_time - self.self_time - self.wait_time
    end

    def to_s
      "c: #{called}, tt: #{total_time}, st: #{self_time}"
    end

    def inspect
      super + "(#{self.to_s})"
    end
  end
end

Version data entries

32 entries across 32 versions & 2 rubygems

Version Path
ruby-prof-1.4.2-x64-mingw32 lib/ruby-prof/measurement.rb
ruby-prof-1.4.2 lib/ruby-prof/measurement.rb
ruby-prof-1.4.1-x64-mingw32 lib/ruby-prof/measurement.rb
ruby-prof-1.4.1 lib/ruby-prof/measurement.rb
ruby-prof-1.4.0-x64-mingw32 lib/ruby-prof/measurement.rb
ruby-prof-1.4.0 lib/ruby-prof/measurement.rb
ruby-prof-1.3.2 lib/ruby-prof/measurement.rb
ruby-prof-1.3.1-x64-mingw32 lib/ruby-prof/measurement.rb
ruby-prof-1.3.1 lib/ruby-prof/measurement.rb
ruby-prof-1.3.0-x64-mingw32 lib/ruby-prof/measurement.rb
ruby-prof-1.3.0 lib/ruby-prof/measurement.rb
ruby-prof-1.2.0 lib/ruby-prof/measurement.rb