Methods

Class/Module Index [+]

Quicksearch

ActiveSupport::Testing::Performance::Metrics::Memory

Constants

Mode

Public Instance Methods

format(measurement) click to toggle source
# File D:/Develope/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activesupport-3.0.9/lib/active_support/testing/performance.rb, line 353
def format(measurement)
  '%.2f KB' % measurement
end
measure() click to toggle source
# File D:/Develope/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activesupport-3.0.9/lib/active_support/testing/performance.rb, line 342
def measure
  GC.malloc_allocated_size / 1024.0
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.