Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Metrics::Memory measures in fractional KB also

  • Loading branch information...
commit ed67d90a9874df2e42d6045d47e805b3e594d718 1 parent 49d1951
@jeremy jeremy authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 activesupport/lib/active_support/testing/performance.rb
View
6 activesupport/lib/active_support/testing/performance.rb
@@ -285,15 +285,15 @@ class Memory < Base
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
Please sign in to comment.
Something went wrong with that request. Please try again.