class Rackprof::GCNotify

Public Instance Methods

notify() click to toggle source
# File lib/rackprof/gc_notify.rb, line 16
def notify
  changed
  notify_observers
end
start() click to toggle source
# File lib/rackprof/gc_notify.rb, line 8
def start
  EM.run do
    EM.add_periodic_timer(3) do
      notify if count_observers > 0
    end
  end
end