class OneApm::Collector::JrubyPoller

Public Class Methods

enable?() click to toggle source
# File lib/one_apm/collector/support/jruby_poller.rb, line 8
def self.enable?
  defined?(::JRuby)
end

Public Instance Methods

memory() click to toggle source
# File lib/one_apm/collector/support/jruby_poller.rb, line 12
def memory
  java.lang.Runtime.getRuntime.totalMemory / (1024 * 1024).to_f rescue nil
end
to_s() click to toggle source
# File lib/one_apm/collector/support/jruby_poller.rb, line 16
def to_s
  "JrubyPoller from: java.lang.Runtime.getRuntime.totalMemory"
end