memspy/MemSpyClient/inc/memspyheapdata.h
branchRCL_3
changeset 59 8ad140f3dd41
parent 49 7fdc9a71d314
equal deleted inserted replaced
49:7fdc9a71d314 59:8ad140f3dd41
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 * Contains the declaration of  TMemSpyProcessData class
       
    16 */
       
    17 
       
    18 #ifndef MEMSPYHEAPDATA_H
       
    19 #define MEMSPYHEAPDATA_H
       
    20 
       
    21 #include <memspy/driver/memspydriverobjectsshared.h>
       
    22 
       
    23 // Constants
       
    24 const TInt KBuf = 16;
       
    25 
       
    26 // TMemSpyProcess data class holds data to be sent to the UI
       
    27 class TMemSpyHeapData 
       
    28 	{	
       
    29 public:
       
    30 	//constructor & destructor
       
    31 	inline TMemSpyHeapData()		
       
    32 	: iSize(0), iBaseAddress(0), iShared(EFalse), iChunkSize(0),
       
    33 	iAllocationsCount(0), iFreeCount(0), iBiggestAllocation(0), iBiggestFree(0), iTotalAllocations(0),
       
    34     iTotalFree(0), iSlackFreeSpace(0), iFragmentation(0), iHeaderSizeA(0), iHeaderSizeF(0), iAllocationOverhead(0),
       
    35     iFreeOverhead(0), iTotalOverhead(0), iOverhead(0), iMinLength(0), iMaxLength(0), iDebugAllocatorLibrary(EFalse)
       
    36 		{
       
    37 		}
       
    38 	
       
    39 public:
       
    40 	TBuf<KBuf> iType;
       
    41 	TUint iSize;
       
    42 	TLinAddr iBaseAddress;
       
    43 	TBool iShared;
       
    44 	TUint iChunkSize;
       
    45 	TUint iAllocationsCount;
       
    46 	TUint iFreeCount;
       
    47 	TUint iBiggestAllocation;
       
    48 	TUint iBiggestFree;
       
    49     TUint iTotalAllocations;
       
    50     TUint iTotalFree;
       
    51     TUint iSlackFreeSpace;
       
    52     TReal iFragmentation;
       
    53     TUint iHeaderSizeA;
       
    54     TUint iHeaderSizeF;
       
    55     TUint iAllocationOverhead;
       
    56     TUint iFreeOverhead;
       
    57     TUint iTotalOverhead;
       
    58     TReal iOverhead;
       
    59     TInt iMinLength;
       
    60     TInt iMaxLength;
       
    61     TBool iDebugAllocatorLibrary;
       
    62 	};
       
    63 
       
    64 #endif // MEMSPYHEAPDATA_H