malloc_allocated_size

GC.malloc_allocated_size â Integer Class Public methods Returns the size of memory allocated by malloc(). Only available if ruby was built with CALC_EXACT_MALLOC_SIZE.

enable

GC.enable â true or false Class Public methods Enables garbage collection, returning true if garbage collection was previously disabled. GC.disable #=> false GC.enable #=> true GC.enable #=> false

disable

GC.disable â true or false Class Public methods Disables garbage collection, returning true if garbage collection was already disabled. GC.disable #=> false GC.disable #=> true

count

GC.count â Integer Class Public methods The number of times GC occurred. It returns the number of times GC occurred since the process started.

total_time

GC::Profiler.total_time â float Class Public methods The total time used for garbage collection in seconds

result

GC::Profiler.result â String Class Public methods Returns a profile data report such as: GC 1 invokes. Index Invoke Time(sec) Use Size(byte) Total Size(byte) Total Object GC time(ms) 1 0.012 159240 212940 10647 0.00000000000001530000

report

GC::Profiler.reportGC::Profiler.report(io) Class Public methods Writes the ::result to $stdout or the given IO object.

raw_data

GC::Profiler.raw_data â [Hash, ...] Class Public methods Returns an Array of individual raw profile data Hashes ordered from earliest to latest by :GC_INVOKE_TIME. For example: [ { :GC_TIME=>1.3000000000000858e-05, :GC_INVOKE_TIME=>0.010634999999999999, :HEAP_USE_SIZE=>289640, :HEAP_TOTAL_SIZE=>588960, :HEAP_TOTAL_OBJECTS=>14724, :GC_IS_MARKED=>false }, # ... ] The keys mean: :GC_TIME Time elapsed in seconds for this GC

enabled?

GC::Profiler.enabled? â true or false Class Public methods The current status of GC profile mode.

enable

GC::Profiler.enable â nil Class Public methods Starts the GC profiler.