Class: RubyProf::Measure::GcRuns

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

Class Method Summary collapse

Class Method Details

.measureInteger

Returns the number of GC runs.

Returns:

  • (Integer)


54
55
56
57
58
59
60
61
62
# File 'ext/ruby_prof/rp_measure_gc_runs.c', line 54

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