Module: Remnant::GC::Ree::ClassMethods

Included in:
Remnant::GC::Ree
Defined in:
lib/remnant/gc/ree.rb

Instance Method Summary collapse

Instance Method Details

#clear_statsObject



26
27
28
# File 'lib/remnant/gc/ree.rb', line 26

def clear_stats
  ::GC.clear_stats
end

#collectionsObject



14
15
16
# File 'lib/remnant/gc/ree.rb', line 14

def collections
  ::GC.collections
end

#disable_statsObject



22
23
24
# File 'lib/remnant/gc/ree.rb', line 22

def disable_stats
  ::GC.disable_stats
end

#enable_statsObject



18
19
20
# File 'lib/remnant/gc/ree.rb', line 18

def enable_stats
  ::GC.enable_stats
end

#enabled?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/remnant/gc/ree.rb', line 5

def enabled?
  true
end

#timeObject



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