Class: Rackprof::GCObserver

Inherits:
Observer show all
Defined in:
lib/rackprof/gc_observer.rb

Instance Attribute Summary

Attributes inherited from Observer

#connection

Instance Method Summary collapse

Methods inherited from Observer

#initialize

Constructor Details

This class inherits a constructor from Rackprof::Observer

Instance Method Details

#updateObject



3
4
5
# File 'lib/rackprof/gc_observer.rb', line 3

def update
  connection << "data: #{GC.stat.to_json}\n\n"
end