class Fluent::Plugin::GCStatInput

def configure(conf)

def configure(conf)
  super
end

def initialize

def initialize
  super
end

def multi_workers_ready?

def multi_workers_ready?
  true
end

def on_timer

def on_timer
  now = Fluent::EventTime.now
  record = GC.stat
  router.emit(@tag, now, record)
end

def shutdown

def shutdown
  super
end

def start

def start
  super
  timer_execute(:in_gc_stat, @emit_interval, &method(:on_timer))
end