End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
GC.malloc_allocations
GC.malloc_allocations → Integer
gc.c
View on GitHub ↗
static VALUE
gc_malloc_allocations(VALUE self)
{
return UINT2NUM(rb_objspace.malloc_params.allocations);
}
Returns the number of malloc() allocations.
Only available if ruby was built with CALC_EXACT_MALLOC_SIZE.
See also
.malloc_allocated_size
.measure_total_time
.latest_gc_info
.measure_total_time=
also in
4.1 · 3.3 · 3.1 · 3.0