private void AggregateFree(int processId, AllocationData lastAllocationData, ulong freeAddress) { if (!Summary.TryRemove(freeAddress, out lastAllocationData)) { throw new Exception(); } Stacks.RemoveStack(processId, lastAllocationData.Stack.Stack.Addresses, lastAllocationData.AllocSize); lastAllocationData = null; }
private AllocationData AggregateAlloc(ulong allocSize, ulong allocAddress) { //Console.WriteLine($"{nameof(AggregateAlloc)} {allocSize} {allocAddress}"); var lastAllocationData = new AllocationData(allocSize, allocAddress); if (!Summary.TryAdd(allocAddress, lastAllocationData)) { throw new Exception(); } return(lastAllocationData); }