Method: OneApm::Support::VM::JRubyVM#gather_stats

Defined in:
lib/one_apm/support/vm/jruby_vm.rb

#gather_stats(snap) ⇒ Object



16
17
18
19
20
21
22
23
# File 'lib/one_apm/support/vm/jruby_vm.rb', line 16

def gather_stats(snap)
  if supports?(:gc_runs)
    gc_stats = GC.stat
    snap.gc_runs = gc_stats[:count]
  end

  snap.thread_count = Thread.list.size
end