memspy/Driver/Kernel/Include/MemSpyDriverHeapStatistics.h
changeset 0 a03f92240627
child 20 ca8a1b6995f6
equal deleted inserted replaced
-1:000000000000 0:a03f92240627
       
     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 *
       
    16 */
       
    17 
       
    18 #ifndef MEMSPYDRIVERHEAPSTATISTICS_H
       
    19 #define MEMSPYDRIVERHEAPSTATISTICS_H
       
    20 
       
    21 // System includes
       
    22 #include <e32cmn.h>
       
    23 
       
    24 
       
    25 class TMemSpyHeapWalkStatistics
       
    26     {
       
    27 public:
       
    28 
       
    29     // Total number of cells enumerated
       
    30     TInt iNumberOfWalkedCells;
       
    31 
       
    32     // The type of the last cell
       
    33     TMemSpyDriverCellType iLastCellType;
       
    34 
       
    35     // The address of the last cell
       
    36     TLinAddr iLastCellAddress;
       
    37 
       
    38 public: // Free cell related
       
    39 
       
    40     // The address of the first free heap cell
       
    41     TLinAddr iFirstFreeCellAddress;
       
    42     
       
    43     // The length of the first free heap cell
       
    44     TUint iFirstFreeCellLength;
       
    45 
       
    46     // Whether the last cell in the entire heap was a free cell
       
    47     // (i.e. slack space)
       
    48     TBool iLastCellWasFreeCell;
       
    49 
       
    50     // The length of the last free cell in the heap
       
    51     TUint iLastFreeCellLength;
       
    52 
       
    53     // The total amount of free space in the heap
       
    54     TUint iTotalFreeSpace;
       
    55 
       
    56     // The number of free heap cells
       
    57     TUint iFreeCellCount;
       
    58 
       
    59     // The size of the largest free cell
       
    60     TUint iLargestCellSizeFree;
       
    61 
       
    62     // The previous largest free cell size
       
    63     TUint iLargestCellSizeFreePrevious;
       
    64 
       
    65     // The address of the largest free cell
       
    66     TLinAddr iLargestCellAddressFree;
       
    67 
       
    68     // The previous address of the largest free cell
       
    69     TUint iLargestCellAddressFreePrevious;
       
    70 
       
    71     // The overhead associated with a free cell (header length)
       
    72     TUint iFreeCellOverheadHeaderLength;
       
    73 
       
    74     // The slace space at the end of the heap
       
    75     TUint iSlackSpace;
       
    76 
       
    77     // The address of the slack space cell
       
    78     TLinAddr iSpackSpaceCellAddress;
       
    79 
       
    80     // A very simple XOR checksum of all the free cell addresses that were
       
    81     // detected during the heap navigation
       
    82     TUint32 iFreeCellCRC;
       
    83 
       
    84 public: // Alloc cell related
       
    85 
       
    86     // The number of allocated heap cells
       
    87     TUint iAllocCellCount;
       
    88 
       
    89     // The size of the largest allocated cell
       
    90     TUint iLargestCellSizeAlloc;
       
    91 
       
    92     // The address of the largest allocated cell
       
    93     TLinAddr iLargestCellAddressAlloc;
       
    94    
       
    95     // The overhead associated with an allocated cell (header length)
       
    96     TUint iAllocCellOverheadHeaderLength;
       
    97 
       
    98 public: // Common
       
    99 
       
   100     // The total amount of allocated space in the heap
       
   101     TUint iTotalAllocSpace;
       
   102     };
       
   103 
       
   104 
       
   105 
       
   106 #endif