Sha256: 4c18cd509a3dcdbc10ab7a42b9d9b0d092ae28c3c4e9725e77614d6b7612e62b

Contents?: true

Size: 570 Bytes

Versions: 30

Compression:

Stored size: 570 Bytes

Contents

module Appsignal
  module Probes
    class MriProbe
      # @api private
      def self.dependencies_present?
        defined?(::RubyVM) && ::RubyVM.respond_to?(:stat)
      end

      def initialize
        Appsignal.logger.debug("Initializing VM probe")
      end

      # @api private
      def call
        stat = RubyVM.stat
        [:class_serial, :global_constant_state].each do |metric|
          Appsignal.add_distribution_value(
            "ruby_vm",
            stat[metric],
            :metric => metric
          )
        end
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
appsignal-3.0.27-java lib/appsignal/probes/mri.rb
appsignal-3.0.27 lib/appsignal/probes/mri.rb
appsignal-3.0.26-java lib/appsignal/probes/mri.rb
appsignal-3.0.26 lib/appsignal/probes/mri.rb
appsignal-3.0.25-java lib/appsignal/probes/mri.rb
appsignal-3.0.25 lib/appsignal/probes/mri.rb
appsignal-3.0.24-java lib/appsignal/probes/mri.rb
appsignal-3.0.24 lib/appsignal/probes/mri.rb
appsignal-3.0.23-java lib/appsignal/probes/mri.rb
appsignal-3.0.23 lib/appsignal/probes/mri.rb
appsignal-3.0.22-java lib/appsignal/probes/mri.rb
appsignal-3.0.22 lib/appsignal/probes/mri.rb
appsignal-3.0.21-java lib/appsignal/probes/mri.rb
appsignal-3.0.21 lib/appsignal/probes/mri.rb
appsignal-3.0.21.alpha.1-java lib/appsignal/probes/mri.rb
appsignal-3.0.21.alpha.1 lib/appsignal/probes/mri.rb
appsignal-3.0.20-java lib/appsignal/probes/mri.rb
appsignal-3.0.20 lib/appsignal/probes/mri.rb
appsignal-3.0.19-java lib/appsignal/probes/mri.rb
appsignal-3.0.19 lib/appsignal/probes/mri.rb