aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--activesupport/lib/active_support/testing/performance.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/testing/performance.rb b/activesupport/lib/active_support/testing/performance.rb
index 377150a0a6..7da2f6791a 100644
--- a/activesupport/lib/active_support/testing/performance.rb
+++ b/activesupport/lib/active_support/testing/performance.rb
@@ -285,15 +285,15 @@ module ActiveSupport
if RubyProf.respond_to?(:measure_memory)
def measure
- RubyProf.measure_memory
+ RubyProf.measure_memory / 1024.0
end
elsif GC.respond_to?(:allocated_size)
def measure
- GC.allocated_size
+ GC.allocated_size / 1024.0
end
elsif GC.respond_to?(:malloc_allocated_size)
def measure
- GC.malloc_allocated_size
+ GC.malloc_allocated_size / 1024.0
end
end