memspy/Engine/Source/ThreadAndProcess/MemSpyEngineObjectContainer.cpp
changeset 34 7259cf1302ad
parent 0 a03f92240627
child 44 52e343bb8f80
equal deleted inserted replaced
33:0d72cc2a29a3 34:7259cf1302ad
   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::ETypeRHeap )
   776             if ( info.Type() != TMemSpyHeapInfo::ETypeUnknown )
   777                 {
   777                 {
   778                 leftSize += (TInt) info.AsRHeap().ObjectData().Size();
   778                 leftSize += (TInt) info.AsRHeap().MetaData().iHeapSize;
   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::ETypeRHeap )
   792             if ( info.Type() == TMemSpyHeapInfo::ETypeUnknown )
   793                 {
   793                 {
   794                 rightSize += (TInt) info.AsRHeap().ObjectData().Size();
   794                 rightSize += (TInt) info.AsRHeap().MetaData().iHeapSize;
   795                 }
   795                 }
   796             }
   796             }
   797         CleanupStack::PopAndDestroy( &rightInfos );
   797         CleanupStack::PopAndDestroy( &rightInfos );
   798         );
   798         );
   799     //
   799     //