class Benchmark::Malloc::AllocationResult
Attributes
allocated[R]
retained[R]
Public Class Methods
new(allocated, retained)
click to toggle source
# File lib/benchmark/malloc/allocation_result.rb, line 10 def initialize(allocated, retained) @allocated = allocated @retained = retained end
Public Instance Methods
total_allocated_objects()
click to toggle source
# File lib/benchmark/malloc/allocation_result.rb, line 15 def total_allocated_objects @allocated.total_objects end
total_retained_objects()
click to toggle source
# File lib/benchmark/malloc/allocation_result.rb, line 19 def total_retained_objects @retained.total_objects end