|
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 MEMSPYENGINEHELPERSYSMEMTRACKERENTRYFBSERV_H |
|
19 #define MEMSPYENGINEHELPERSYSMEMTRACKERENTRYFBSERV_H |
|
20 |
|
21 // System includes |
|
22 #include <e32base.h> |
|
23 #include <badesca.h> |
|
24 |
|
25 // Driver includes |
|
26 #include <memspy/driver/memspydriverobjectsshared.h> |
|
27 |
|
28 // User includes |
|
29 #include "MemSpyEngineHelperSysMemTrackerEntries.h" |
|
30 #include <memspy/engine/memspyenginehelpersysmemtrackercyclechange.h> |
|
31 |
|
32 // Classes referenced |
|
33 class CFbsBitmap; |
|
34 class CMemSpyEngine; |
|
35 class CMemSpyThread; |
|
36 class CMemSpyProcess; |
|
37 class CMemSpyEngineOutputSink; |
|
38 class CMemSpyEngineOpenFileListEntry; |
|
39 class CMemSpyEngineOpenFileListForThread; |
|
40 class CMemSpyEngineHelperSysMemTrackerImp; |
|
41 class CMemSpyEngineHelperSysMemTrackerCycle; |
|
42 class TMemSpyEngineHelperSysMemTrackerConfig; |
|
43 class TMemSpyEngineFBServBitmapInfo; |
|
44 |
|
45 |
|
46 |
|
47 class CMemSpyEngineHelperSysMemTrackerEntryFbserv : public CMemSpyEngineHelperSysMemTrackerEntry |
|
48 { |
|
49 public: |
|
50 static CMemSpyEngineHelperSysMemTrackerEntryFbserv* NewLC( CMemSpyEngineHelperSysMemTrackerImp& aTracker, const TMemSpyDriverChunkInfo& aCurrentLarge, const TMemSpyDriverChunkInfo& aCurrentShared, TInt aBitmapConCount, TInt aFontConCount, TInt aAccessibleBitmapCount ); |
|
51 ~CMemSpyEngineHelperSysMemTrackerEntryFbserv(); |
|
52 |
|
53 private: |
|
54 CMemSpyEngineHelperSysMemTrackerEntryFbserv( CMemSpyEngineHelperSysMemTrackerImp& aTracker, const TMemSpyDriverChunkInfo& aCurrentLarge, const TMemSpyDriverChunkInfo& aCurrentShared, TInt aBitmapConCount, TInt aFontConCount, TInt aAccessibleBitmapCount ); |
|
55 void ConstructL(); |
|
56 |
|
57 public: // From CMemSpyEngineHelperSysMemTrackerEntry |
|
58 TUint64 Key() const; |
|
59 void UpdateFromL( const CMemSpyEngineHelperSysMemTrackerEntry& aEntry ); |
|
60 TBool HasChangedL( const TMemSpyEngineHelperSysMemTrackerConfig& aConfig ) const; |
|
61 void CreateChangeDescriptorL( CMemSpyEngineHelperSysMemTrackerCycle& aCycle ); |
|
62 void UpdateCycleStatistics( CMemSpyEngineHelperSysMemTrackerCycle& aInfo ); |
|
63 |
|
64 private: // Internal methods |
|
65 |
|
66 private: // Data members |
|
67 TMemSpyDriverChunkInfo iCurrentLarge; |
|
68 TMemSpyDriverChunkInfo iCurrentShared; |
|
69 TMemSpyDriverChunkInfoWithoutName iLastShared; |
|
70 TMemSpyDriverChunkInfoWithoutName iLastLarge; |
|
71 TInt iCurrentBitmapConCount; |
|
72 TInt iCurrentFontConCount; |
|
73 TInt iLastBitmapConCount; |
|
74 TInt iLastFontConCount; |
|
75 TInt iCurrentAccessibleBitmapCount; |
|
76 TInt iLastAccessibleBitmapCount; |
|
77 }; |
|
78 |
|
79 |
|
80 |
|
81 |
|
82 |
|
83 /** |
|
84 * Change descriptor associated with bitmap changes |
|
85 */ |
|
86 NONSHARABLE_CLASS( CMemSpyEngineHelperSysMemTrackerCycleChangeFbserv ) : public CMemSpyEngineHelperSysMemTrackerCycleChange |
|
87 { |
|
88 public: |
|
89 static CMemSpyEngineHelperSysMemTrackerCycleChangeFbserv* NewLC( TUint8 aAttribs, const TMemSpyDriverChunkInfoWithoutName& aCurrentLarge, const TMemSpyDriverChunkInfoWithoutName& aCurrentShared, TInt aBitmapConCount, TInt aFontConCount, TInt aAccessibleBitmapCount ); |
|
90 ~CMemSpyEngineHelperSysMemTrackerCycleChangeFbserv(); |
|
91 |
|
92 private: |
|
93 CMemSpyEngineHelperSysMemTrackerCycleChangeFbserv( TUint8 aAttrib, const TMemSpyDriverChunkInfoWithoutName& aCurrentLarge, const TMemSpyDriverChunkInfoWithoutName& aCurrentShared, TInt aBitmapConCount, TInt aFontConCount, TInt aAccessibleBitmapCount ); |
|
94 void ConstructL(); |
|
95 |
|
96 public: // From CMemSpyEngineHelperSysMemTrackerCycleChange |
|
97 TMemSpyEngineSysMemTrackerType Type() const; |
|
98 void OutputHeaderL( CMemSpyEngineOutputSink& aSink, CMemSpyEngineHelperSysMemTrackerCycle& aCycle ); |
|
99 void OutputContentL( CMemSpyEngineOutputSink& aSink, CMemSpyEngineHelperSysMemTrackerCycle& aCycle ); |
|
100 |
|
101 private: // Data members |
|
102 const TMemSpyDriverChunkInfoWithoutName iSharedChunk; |
|
103 const TMemSpyDriverChunkInfoWithoutName iLargeChunk; |
|
104 const TInt iBitmapConCount; |
|
105 const TInt iFontConCount; |
|
106 const TInt iAccessibleBitmapCount; |
|
107 }; |
|
108 |
|
109 |
|
110 |
|
111 |
|
112 |
|
113 #endif |