Class: ActiveSupport::Testing::Performance::Metrics::GcTime
- Defined in:
- lib/active_support/testing/performance.rb
Constant Summary collapse
- Mode =
RubyProf::GC_TIME
Instance Attribute Summary
Attributes inherited from Base
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
445 446 447 |
# File 'lib/active_support/testing/performance.rb', line 445 def format(measurement) '%d ms' % (measurement / 1000) end |
#measure ⇒ Object
436 437 438 |
# File 'lib/active_support/testing/performance.rb', line 436 def measure RubyProf.measure_gc_time end |