lib/memdump/memory_dump.rb
# Compute the set of records that are not in self but are in to
#
# @param [MemoryDump]
# @return [MemoryDump]
Compute the set of records that are not in self but are in to
Compute the set of records that are not in self but are in to
def diff(to)
            diff = Hash.new
            to.each_record do |r|
                address = r['address']
                if !@address_to_record.include?(address)
                    diff[address] = r
                end
            end
            MemoryDump.new(diff)
        end
def diff ( to ) diff = Hash . new to . each_record do | r | address = r [ 'address' ] if ! @address_to_record . include? ( address ) diff [ address ] = r end end MemoryDump . new ( diff ) end
Compute the set of records that are not in self but are in to
Compute the set of records that are not in self but are in to
None
MemoryDump
to
None