51
|
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 |
TUint iReserved1;
|
|
74 |
|
|
75 |
// The slace space at the end of the heap
|
|
76 |
TUint iSlackSpace;
|
|
77 |
|
|
78 |
// The address of the slack space cell
|
|
79 |
TLinAddr iSpackSpaceCellAddress;
|
|
80 |
|
|
81 |
// A very simple XOR checksum of all the free cell addresses that were
|
|
82 |
// detected during the heap navigation
|
|
83 |
TUint32 iFreeCellCRC;
|
|
84 |
|
|
85 |
public: // Alloc cell related
|
|
86 |
|
|
87 |
// The number of allocated heap cells
|
|
88 |
TUint iAllocCellCount;
|
|
89 |
|
|
90 |
// The size of the largest allocated cell
|
|
91 |
TUint iLargestCellSizeAlloc;
|
|
92 |
|
|
93 |
// The address of the largest allocated cell
|
|
94 |
TLinAddr iLargestCellAddressAlloc;
|
|
95 |
|
|
96 |
// The overhead associated with an allocated cell (header length)
|
|
97 |
//TUint iAllocCellOverheadHeaderLength;
|
|
98 |
TUint iReserved2;
|
|
99 |
|
|
100 |
public: // Common
|
|
101 |
|
|
102 |
// The total amount of allocated space in the heap
|
|
103 |
TUint iTotalAllocSpace;
|
|
104 |
};
|
|
105 |
|
|
106 |
|
|
107 |
|
|
108 |
#endif
|