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)

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

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