Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 4813462eeaf172b6155cb61757da2b073e2ebb74 1 parent 36f5d09
Gonçalo Silva goncalossilva authored wycats committed
Showing with 0 additions and 12 deletions.
  1. +0 −12 activesupport/lib/active_support/testing/performance.rb
12 activesupport/lib/active_support/testing/performance.rb
View
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.