Class: ActiveSupport::Testing::Performance::Metrics::GcRuns

Inherits:
Base
  • Object
show all
Defined in:
lib/active_support/testing/performance.rb

Constant Summary collapse

Mode =
RubyProf::GC_RUNS

Instance Attribute Summary

Attributes inherited from Base

#total

Instance Method Summary collapse

Methods inherited from Base

#benchmark, #initialize, #measure_mode, #name, #profile

Constructor Details

This class inherits a constructor from ActiveSupport::Testing::Performance::Metrics::Base

Instance Method Details

#format(measurement) ⇒ Object



427
428
429
# File 'lib/active_support/testing/performance.rb', line 427

def format(measurement)
  measurement.to_i.to_s
end

#measureObject



414
415
416
# File 'lib/active_support/testing/performance.rb', line 414

def measure
  RubyProf.measure_gc_runs
end