Methods
Constants
Mode | = | RubyProf::ALLOCATIONS if RubyProf.const_defined?(:ALLOCATIONS) |
Public Instance methods
[ show source ]
# File activesupport/lib/active_support/testing/performance.rb, line 405 405: def format(measurement) 406: measurement.to_i.to_s 407: end
[ show source ]
# File activesupport/lib/active_support/testing/performance.rb, line 395 395: def measure 396: GC.enable 397: GC.start 398: last = GC::Profiler.data.last 399: count = last[:HEAP_LIVE_OBJECTS] + last[:HEAP_FREE_OBJECTS] 400: GC.disable 401: count 402: end
[ show source ]
# File activesupport/lib/active_support/testing/performance.rb, line 389 389: def measure 390: ObjectSpace.allocated_objects 391: end
[ show source ]
# File activesupport/lib/active_support/testing/performance.rb, line 383 383: def measure 384: RubyProf.measure_allocations 385: end