Permalink
Browse files

GC at 1.9.X doesn't have malloc_allocated_size, remove support for it

  • Loading branch information...
1 parent 36f5d09 commit 4813462eeaf172b6155cb61757da2b073e2ebb74 @goncalossilva goncalossilva committed with wycats Jun 12, 2010
Showing with 0 additions and 12 deletions.
  1. +0 −12 activesupport/lib/active_support/testing/performance.rb
@@ -339,18 +339,6 @@ def measure
def measure
RubyProf.measure_memory / 1024.0
end
-
- # Ruby 1.9 with total_malloc_allocated_size patch
- elsif GC.respond_to?(:malloc_total_allocated_size)
- def measure
- GC.total_malloc_allocated_size / 1024.0
- end
-
- # Ruby 1.9 unpatched
- elsif GC.respond_to?(:malloc_allocated_size)
- def measure
- GC.malloc_allocated_size / 1024.0
- end
end
def format(measurement)

0 comments on commit 4813462

Please sign in to comment.