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 -
:GC_INVOKE_TIME -
Time elapsed in seconds from startup to when the GC was invoked
-
:HEAP_USE_SIZE -
Total bytes of heap used
-
:HEAP_TOTAL_SIZE -
Total size of heap in bytes
-
:HEAP_TOTAL_OBJECTS -
Total number of objects
-
:GC_IS_MARKED -
Returns
trueif the GC is in mark phase
If ruby was built with GC_PROFILE_MORE_DETAIL, you will also
have access to the following hash keys:
-
:GC_MARK_TIME -
:GC_SWEEP_TIME -
:ALLOCATE_INCREASE -
:ALLOCATE_LIMIT -
:HEAP_USE_SLOTS -
:HEAP_LIVE_OBJECTS -
:HEAP_FREE_OBJECTS -
:HAVE_FINALIZE
Please login to continue.