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.7.1-x64-mingw-ucrt lib/ruby-prof/measurement.rb
ruby-prof-1.7.1 lib/ruby-prof/measurement.rb
ruby-prof-1.7.0-x64-mingw-ucrt lib/ruby-prof/measurement.rb
ruby-prof-1.7.0 lib/ruby-prof/measurement.rb
honeybadger-5.4.0 vendor/bundle/ruby/3.2.0/gems/ruby-prof-1.6.3/lib/ruby-prof/measurement.rb
honeybadger-5.3.0 vendor/bundle/ruby/3.2.0/gems/ruby-prof-1.6.3/lib/ruby-prof/measurement.rb
ruby-prof-1.6.3-x64-mingw-ucrt lib/ruby-prof/measurement.rb
ruby-prof-1.6.3 lib/ruby-prof/measurement.rb
ruby-prof-1.6.2-x64-mingw-ucrt lib/ruby-prof/measurement.rb
ruby-prof-1.6.2 lib/ruby-prof/measurement.rb
ruby-prof-1.6.1 lib/ruby-prof/measurement.rb
ruby-prof-1.6.1-x64-mingw-ucrt lib/ruby-prof/measurement.rb
ruby-prof-1.5.0-x64-mingw-ucrt lib/ruby-prof/measurement.rb
ruby-prof-1.5.0 lib/ruby-prof/measurement.rb
ruby-prof-1.4.5-x64-mingw-ucrt lib/ruby-prof/measurement.rb
ruby-prof-1.4.5 lib/ruby-prof/measurement.rb
ruby-prof-1.4.4-x64-mingw-ucrt lib/ruby-prof/measurement.rb
ruby-prof-1.4.4 lib/ruby-prof/measurement.rb
ruby-prof-1.4.3-x64-mingw32 lib/ruby-prof/measurement.rb
ruby-prof-1.4.3 lib/ruby-prof/measurement.rb