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

This commit is contained in:
Gonçalo Silva
2010-06-12 11:49:11 +01:00
committed by wycats
parent 36f5d09692
commit 4813462eea

View File

@@ -339,18 +339,6 @@ begin
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)