class Fluent::Plugin::GCStatInput

Public Class Methods

new() click to toggle source
Calls superclass method Fluent::PluginLoggerMixin.new
# File lib/fluent/plugin/in_gc_stat.rb, line 25
def initialize
  super
end

Public Instance Methods

configure(conf) click to toggle source
Calls superclass method Fluent::PluginLoggerMixin#configure
# File lib/fluent/plugin/in_gc_stat.rb, line 32
def configure(conf)
  super
end
on_timer() click to toggle source
# File lib/fluent/plugin/in_gc_stat.rb, line 46
def on_timer
  now = Fluent::EventTime.now
  record = GC.stat
  router.emit(@tag, now, record)
end
shutdown() click to toggle source
Calls superclass method Fluent::Plugin::Base#shutdown
# File lib/fluent/plugin/in_gc_stat.rb, line 42
def shutdown
  super
end
start() click to toggle source
Calls superclass method Fluent::PluginLoggerMixin#start
# File lib/fluent/plugin/in_gc_stat.rb, line 36
def start
  super

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