Methods
Constants
Mode = RubyProf::MEMORY if RubyProf.const_defined?(:MEMORY)
Public Instance methods
format(measurement)
     # File activesupport/lib/active_support/testing/performance.rb, line 374
374:           def format(measurement)
375:             '%.2f KB' % measurement
376:           end
measure()
     # File activesupport/lib/active_support/testing/performance.rb, line 353
353:             def measure
354:               GC.total_malloc_allocated_size / 1024.0
355:             end
measure()
     # File activesupport/lib/active_support/testing/performance.rb, line 347
347:             def measure
348:               GC.heap_info['heap_current_memory'] / 1024.0
349:             end
measure()
     # File activesupport/lib/active_support/testing/performance.rb, line 341
341:             def measure
342:               GC.allocated_size / 1024.0
343:             end
measure()
     # File activesupport/lib/active_support/testing/performance.rb, line 359
359:             def measure
360:               GC.malloc_allocated_size / 1024.0
361:             end
measure()
     # File activesupport/lib/active_support/testing/performance.rb, line 365
365:             def measure
366:               GC.enable
367:               GC.start
368:               kb = GC::Profiler.data.last[:HEAP_USE_SIZE] / 1024.0
369:               GC.disable
370:               kb
371:             end
measure()
     # File activesupport/lib/active_support/testing/performance.rb, line 335
335:             def measure
336:               RubyProf.measure_memory / 1024.0
337:             end