diff -r 31fc1277642e -r 41ebde60981f memspyui/ui/avkon/src/MemSpyViewKernelHeap.cpp --- a/memspyui/ui/avkon/src/MemSpyViewKernelHeap.cpp Thu May 13 21:10:48 2010 +0300 +++ b/memspyui/ui/avkon/src/MemSpyViewKernelHeap.cpp Fri May 14 15:15:12 2010 +0300 @@ -101,7 +101,7 @@ CMemSpyApiHeap* iHeap; iHeap = iMemSpySession.GetHeap( ); - CDesCArrayFlat* model = new (ELeave) CDesC16ArrayFlat( 22 ); //array for formated items TODO: to remove constant + CDesCArrayFlat* model = new (ELeave) CDesC16ArrayFlat( 22 ); model = FormatModel( iHeap ); @@ -144,9 +144,8 @@ void CMemSpyViewKernelHeap::OnCmdDumpKernelHeapL() - { - // TODO - //iEngine.HelperHeap().OutputHeapDataKernelL(); + { + iMemSpySession.DumpKernelHeap(); } @@ -178,7 +177,7 @@ _LIT( KItem11, "Max. length" ); _LIT( KItem12, "Debug Allocator Library" ); - HBufC* iItem = HBufC::NewL( 64 ); + HBufC* iItem = HBufC::NewL( KMaxName ); iItem = FormatItem( KItem0, aHeap->Type() ); TPtr pItem( iItem->Des() ); @@ -305,7 +304,7 @@ HBufC* CMemSpyViewKernelHeap::FormatItem( const TDesC& aCaption, const TDesC& aValue ) { - HBufC* retBuf = HBufC::NewL( 64 ); + HBufC* retBuf = HBufC::NewL( KMaxName ); TPtr pRetBuf( retBuf->Des() ); pRetBuf.Zero(); pRetBuf.Append( _L("\t") ); @@ -317,7 +316,7 @@ HBufC* CMemSpyViewKernelHeap::FormatItem( const TDesC& aCaption, TInt aValue ) { - HBufC* retBuf = HBufC::NewL( 64 ); + HBufC* retBuf = HBufC::NewL( KMaxName ); TPtr pRetBuf( retBuf->Des() ); pRetBuf.Zero(); @@ -334,7 +333,7 @@ HBufC* CMemSpyViewKernelHeap::FormatItem( const TDesC& aCaption, TUint aValue ) { - HBufC* retBuf = HBufC::NewL( 64 ); + HBufC* retBuf = HBufC::NewL( KMaxName ); TPtr pRetBuf( retBuf->Des() ); pRetBuf.Zero(); @@ -352,7 +351,7 @@ HBufC* CMemSpyViewKernelHeap::FormatItem( const TDesC& aCaption, const TInt64& aValue ) { - HBufC* retBuf = HBufC::NewL( 64 ); + HBufC* retBuf = HBufC::NewL( KMaxName ); TPtr pRetBuf( retBuf->Des() ); pRetBuf.Zero(); @@ -369,7 +368,7 @@ HBufC* CMemSpyViewKernelHeap::FormatItem( const TDesC& aCaption, TAny* aValue ) { - HBufC* retBuf = HBufC::NewL( 64 ); + HBufC* retBuf = HBufC::NewL( KMaxName ); TPtr pRetBuf( retBuf->Des() ); pRetBuf.Zero(); @@ -386,7 +385,7 @@ HBufC* CMemSpyViewKernelHeap::FormatItem( const TDesC& aCaption, TUint* aValue ) { - HBufC* retBuf = HBufC::NewL( 64 ); + HBufC* retBuf = HBufC::NewL( KMaxName ); TPtr pRetBuf( retBuf->Des() ); pRetBuf.Zero(); @@ -403,7 +402,7 @@ HBufC* CMemSpyViewKernelHeap::FormatItem( const TDesC& aCaption, TUint8* aValue ) { - HBufC* retBuf = HBufC::NewL( 64 ); + HBufC* retBuf = HBufC::NewL( KMaxName ); TPtr pRetBuf( retBuf->Des() ); pRetBuf.Zero(); @@ -420,7 +419,7 @@ HBufC* CMemSpyViewKernelHeap::FormatPercentageItem( const TDesC& aCaption, TReal aOneHundredPercentValue, TReal aValue ) { - HBufC* retBuf = HBufC::NewL( 64 ); //buffer for formatted item + HBufC* retBuf = HBufC::NewL( KMaxName ); //buffer for formatted item TPtr pRetBuf( retBuf->Des() ); pRetBuf.Zero();