memspy/Engine/Source/ThreadAndProcess/MemSpyEngineObjectContainer.cpp
branchRCL_3
changeset 59 8ad140f3dd41
parent 49 7fdc9a71d314
equal deleted inserted replaced
49:7fdc9a71d314 59:8ad140f3dd41
   771         helper.GetHeapInfoUserL( *aLeft, leftInfos );
   771         helper.GetHeapInfoUserL( *aLeft, leftInfos );
   772         const TInt leftCount = leftInfos.Count();
   772         const TInt leftCount = leftInfos.Count();
   773         for( TInt i=0; i<leftCount; i++ )
   773         for( TInt i=0; i<leftCount; i++ )
   774             {
   774             {
   775             const TMemSpyHeapInfo& info = leftInfos[ i ];
   775             const TMemSpyHeapInfo& info = leftInfos[ i ];
   776             if ( info.Type() != TMemSpyHeapInfo::ETypeUnknown )
   776             if ( info.Type() == TMemSpyHeapInfo::ETypeRHeap )
   777                 {
   777                 {
   778                 leftSize += (TInt) info.AsRHeap().MetaData().iHeapSize;
   778                 leftSize += (TInt) info.AsRHeap().ObjectData().Size();
   779                 }
   779                 }
   780             }
   780             }
   781         CleanupStack::PopAndDestroy( &leftInfos );
   781         CleanupStack::PopAndDestroy( &leftInfos );
   782         );
   782         );
   783     //
   783     //
   787         helper.GetHeapInfoUserL( *aRight, rightInfos );
   787         helper.GetHeapInfoUserL( *aRight, rightInfos );
   788         const TInt rightCount = rightInfos.Count();
   788         const TInt rightCount = rightInfos.Count();
   789         for( TInt i=0; i<rightCount; i++ )
   789         for( TInt i=0; i<rightCount; i++ )
   790             {
   790             {
   791             const TMemSpyHeapInfo& info = rightInfos[ i ];
   791             const TMemSpyHeapInfo& info = rightInfos[ i ];
   792             if ( info.Type() == TMemSpyHeapInfo::ETypeUnknown )
   792             if ( info.Type() == TMemSpyHeapInfo::ETypeRHeap )
   793                 {
   793                 {
   794                 rightSize += (TInt) info.AsRHeap().MetaData().iHeapSize;
   794                 rightSize += (TInt) info.AsRHeap().ObjectData().Size();
   795                 }
   795                 }
   796             }
   796             }
   797         CleanupStack::PopAndDestroy( &rightInfos );
   797         CleanupStack::PopAndDestroy( &rightInfos );
   798         );
   798         );
   799     //
   799     //