Class: RubyProf::Measure::Allocations

Inherits:
Object
  • Object
show all
Defined in:
ext/ruby_prof/rp_measure_allocations.c

Class Method Summary collapse

Class Method Details

.measureInteger

Returns the number of Ruby object allocations.

Returns:

  • (Integer)


59
60
61
62
63
64
65
66
67
# File 'ext/ruby_prof/rp_measure_allocations.c', line 59

static VALUE
prof_measure_allocations(VALUE self)
{
#if defined(HAVE_LONG_LONG)
    return ULL2NUM(measure_allocations());
#else
    return ULONG2NUM(measure_allocations());
#endif
}