Sha256: 0a1a24bc4359ca62d9b6d436c718bc92070fe52cc661d9e8b8cdea75e26852e7

Contents?: true

Size: 670 Bytes

Versions: 2

Compression:

Stored size: 670 Bytes

Contents

# frozen_string_literal: true

module MemprofilerPprof
  class ProfileData
    attr_accessor :pprof_data, :allocation_samples_count, :heap_samples_count,
      :dropped_samples_nolock, :dropped_samples_allocation_bufsize, :dropped_samples_heap_bufsize

    def to_s
      "<MemprofilerPprof::ProfileData:#{object_id.to_s(16)} (sample counts: " +
        "allocation=#{allocation_samples_count}, " +
        "heap=#{heap_samples_count}, " +
        "dropped_nolock=#{dropped_samples_nolock}, " +
        "dropped_allocation_bufsize=#{dropped_samples_allocation_bufsize}, " +
        "dropped_heap_bufsize=#{dropped_samples_heap_bufsize}" +
        ")>"
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ruby_memprofiler_pprof-0.0.3 lib/ruby_memprofiler_pprof/profile_data.rb
ruby_memprofiler_pprof-0.0.1 lib/ruby_memprofiler_pprof/profile_data.rb