|
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 CMemSpyApiHeap class |
|
16 */ |
|
17 |
|
18 #ifndef MEMSPYAPIHEAP_H |
|
19 #define MEMSPYAPIHEAP_H |
|
20 |
|
21 // System includes |
|
22 #include <e32base.h> |
|
23 |
|
24 class TMemSpyHeapData; |
|
25 |
|
26 NONSHARABLE_CLASS( CMemSpyApiHeap ) |
|
27 { |
|
28 public: |
|
29 IMPORT_C ~CMemSpyApiHeap(); |
|
30 |
|
31 static CMemSpyApiHeap* NewL(const TMemSpyHeapData& aData); |
|
32 |
|
33 static CMemSpyApiHeap* NewLC(const TMemSpyHeapData& aData); |
|
34 |
|
35 public: //API |
|
36 IMPORT_C TDesC& Type(); |
|
37 IMPORT_C TInt Size(); |
|
38 IMPORT_C TInt BaseAddress(); |
|
39 IMPORT_C TBool Shared(); |
|
40 IMPORT_C TInt ChunkSize(); |
|
41 IMPORT_C TInt AllocationsCount(); |
|
42 IMPORT_C TInt FreeCount(); |
|
43 IMPORT_C TInt BiggestAllocation(); |
|
44 IMPORT_C TInt BiggestFree(); |
|
45 IMPORT_C TInt TotalAllocations(); |
|
46 IMPORT_C TInt TotalFree(); |
|
47 IMPORT_C TInt SlackFreeSpace(); |
|
48 IMPORT_C TInt Fragmentation(); // Percentage value, iSize is 100% - value for calculation |
|
49 IMPORT_C TInt HeaderSizeA(); |
|
50 IMPORT_C TInt HeaderSizeF(); |
|
51 IMPORT_C TInt AllocationOverhead(); |
|
52 IMPORT_C TInt FreeOverhead(); |
|
53 IMPORT_C TInt TotalOverhead(); |
|
54 IMPORT_C TInt Overhead(); //Percentage value, iSize is 100% - value for calculation |
|
55 IMPORT_C TInt MinLength(); |
|
56 IMPORT_C TInt MaxLength(); |
|
57 IMPORT_C TBool DebugAllocatorLibrary(); |
|
58 |
|
59 private: |
|
60 CMemSpyApiHeap(); |
|
61 |
|
62 void ConstructL(const TMemSpyHeapData& aData); |
|
63 |
|
64 private: |
|
65 TMemSpyHeapData *iHeapData; |
|
66 }; |
|
67 |
|
68 |
|
69 #endif // MEMSPYAPIHEAP_H |