Sha256: fcaac56cc5a2850ad54e2adb07dc669823b7766c796433000882f800fb6f8a29

Contents?: true

Size: 618 Bytes

Versions: 7

Compression:

Stored size: 618 Bytes

Contents

# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details.

module NewRelic
  module Agent
    module VM
      class Snapshot
        attr_accessor :gc_total_time, :gc_runs, :major_gc_count, :minor_gc_count,
          :total_allocated_object, :heap_live, :heap_free,
          :method_cache_invalidations, :constant_cache_invalidations,
          :thread_count, :taken_at

        def initialize
          @taken_at = Process.clock_gettime(Process::CLOCK_REALTIME)
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
newrelic_rpm-8.9.0 lib/new_relic/agent/vm/snapshot.rb
newrelic_rpm-8.8.0 lib/new_relic/agent/vm/snapshot.rb
newrelic_rpm-8.7.0 lib/new_relic/agent/vm/snapshot.rb
newrelic_rpm-8.6.0 lib/new_relic/agent/vm/snapshot.rb
newrelic_rpm-8.5.0 lib/new_relic/agent/vm/snapshot.rb
newrelic_rpm-8.4.0 lib/new_relic/agent/vm/snapshot.rb
newrelic_rpm-8.3.0 lib/new_relic/agent/vm/snapshot.rb