Sha256: 3cf19ab3ffe6c8ab5d4614c266cb083945cbe4d620bf147315ae6080607948fb

Contents?: true

Size: 654 Bytes

Versions: 3

Compression:

Stored size: 654 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

3 entries across 3 versions & 1 rubygems

Version Path
newrelic_rpm-8.2.0 lib/new_relic/agent/vm/snapshot.rb
newrelic_rpm-8.1.0 lib/new_relic/agent/vm/snapshot.rb
newrelic_rpm-8.0.0 lib/new_relic/agent/vm/snapshot.rb