Module: Datadog::Core::Environment::GC

Defined in:
lib/datadog/core/environment/gc.rb

Overview

Retrieves garbage collection statistics

Class Method Summary collapse

Class Method Details

.available?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/datadog/core/environment/gc.rb', line 14

def available?
  defined?(::GC) && ::GC.respond_to?(:stat)
end

.statObject



10
11
12
# File 'lib/datadog/core/environment/gc.rb', line 10

def stat
  ::GC.stat
end