Module: Remnant::GC::Ree::ClassMethods
- Included in:
- Remnant::GC::Ree
- Defined in:
- lib/remnant/gc/ree.rb
Instance Method Summary collapse
- #clear_stats ⇒ Object
- #collections ⇒ Object
- #disable_stats ⇒ Object
- #enable_stats ⇒ Object
- #enabled? ⇒ Boolean
- #time ⇒ Object
Instance Method Details
#clear_stats ⇒ Object
26 27 28 |
# File 'lib/remnant/gc/ree.rb', line 26 def clear_stats ::GC.clear_stats end |
#collections ⇒ Object
14 15 16 |
# File 'lib/remnant/gc/ree.rb', line 14 def collections ::GC.collections end |
#disable_stats ⇒ Object
22 23 24 |
# File 'lib/remnant/gc/ree.rb', line 22 def disable_stats ::GC.disable_stats end |
#enable_stats ⇒ Object
18 19 20 |
# File 'lib/remnant/gc/ree.rb', line 18 def enable_stats ::GC.enable_stats end |
#enabled? ⇒ Boolean
5 6 7 |
# File 'lib/remnant/gc/ree.rb', line 5 def enabled? true end |
#time ⇒ Object
9 10 11 12 |
# File 'lib/remnant/gc/ree.rb', line 9 def time # returns time in microseconds so convert to ms ::GC.time / 1000 end |