Sha256: eaa1d33cd89ea4d3ea2c286bf4a14e55f1f49a70db0f103bf27197a88669253c

Contents?: true

Size: 415 Bytes

Versions: 3

Compression:

Stored size: 415 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 CallInfo object directly, they are generated while running a profile.
  class Measurement
    # :nodoc:
    def to_s
      "c: #{called}, tt: #{total_time}, st: #{self_time}"
    end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby-prof-1.1.0-x64-mingw32 lib/ruby-prof/measurement.rb
ruby-prof-1.1.0 lib/ruby-prof/measurement.rb
ruby-prof-1.0.0 lib/ruby-prof/measurement.rb