|
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 MEMSPYENGINEHELPERSYSMEMTRACKERENTRYSTACK_H |
|
19 #define MEMSPYENGINEHELPERSYSMEMTRACKERENTRYSTACK_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 CMemSpyEngine; |
|
34 class CMemSpyThread; |
|
35 class CMemSpyProcess; |
|
36 class CMemSpyEngineHelperSysMemTrackerImp; |
|
37 class CMemSpyEngineHelperSysMemTrackerCycle; |
|
38 class TMemSpyEngineHelperSysMemTrackerConfig; |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 class CMemSpyEngineHelperSysMemTrackerEntryStack : public CMemSpyEngineHelperSysMemTrackerEntry |
|
44 { |
|
45 public: |
|
46 static CMemSpyEngineHelperSysMemTrackerEntryStack* NewLC( CMemSpyEngineHelperSysMemTrackerImp& aTracker, CMemSpyThread& aThread, const TMemSpyDriverChunkInfo& aChunkInfo, const TThreadStackInfo& aStackInfo ); |
|
47 ~CMemSpyEngineHelperSysMemTrackerEntryStack(); |
|
48 |
|
49 private: |
|
50 CMemSpyEngineHelperSysMemTrackerEntryStack( CMemSpyEngineHelperSysMemTrackerImp& aTracker, const TMemSpyDriverChunkInfo& aChunkInfo, const TThreadStackInfo& aStackInfo ); |
|
51 void ConstructL( CMemSpyThread& aThread ); |
|
52 |
|
53 public: // From CMemSpyEngineHelperSysMemTrackerEntry |
|
54 TUint64 Key() const; |
|
55 void CreateChangeDescriptorL( CMemSpyEngineHelperSysMemTrackerCycle& aCycle ); |
|
56 void UpdateCycleStatistics( CMemSpyEngineHelperSysMemTrackerCycle& aInfo ); |
|
57 |
|
58 private: // Internal methods |
|
59 TInt StackSize() const; |
|
60 |
|
61 private: // Data members |
|
62 TMemSpyDriverChunkInfo iChunkInfo; |
|
63 TThreadStackInfo iStackInfo; |
|
64 HBufC* iThreadName; |
|
65 }; |
|
66 |
|
67 |
|
68 |
|
69 |
|
70 |
|
71 |
|
72 |
|
73 /** |
|
74 * Change descriptor associated with stack-related changes |
|
75 */ |
|
76 NONSHARABLE_CLASS( CMemSpyEngineHelperSysMemTrackerCycleChangeStack ) : public CMemSpyEngineHelperSysMemTrackerCycleChange |
|
77 { |
|
78 public: |
|
79 static CMemSpyEngineHelperSysMemTrackerCycleChangeStack* NewLC( TUint8 aAttribs, const TDesC& aThreadName, const TMemSpyDriverChunkInfo& aChunkInfo, const TThreadStackInfo& aStackInfo ); |
|
80 ~CMemSpyEngineHelperSysMemTrackerCycleChangeStack(); |
|
81 |
|
82 private: |
|
83 CMemSpyEngineHelperSysMemTrackerCycleChangeStack( TUint8 aAttribs, const TMemSpyDriverChunkInfo& aChunkInfo, const TThreadStackInfo& aStackInfo ); |
|
84 void ConstructL( const TDesC& aThreadName ); |
|
85 |
|
86 public: // From CMemSpyEngineHelperSysMemTrackerCycleChange |
|
87 TMemSpyEngineSysMemTrackerType Type() const; |
|
88 void OutputHeaderL( CMemSpyEngineOutputSink& aSink, CMemSpyEngineHelperSysMemTrackerCycle& aCycle ); |
|
89 void OutputContentL( CMemSpyEngineOutputSink& aSink, CMemSpyEngineHelperSysMemTrackerCycle& aCycle ); |
|
90 void OutputDataL( CMemSpyEngineOutputSink& aSink, CMemSpyEngineHelperSysMemTrackerCycle& aCycle ); |
|
91 |
|
92 private: // Internal methods |
|
93 TInt StackSize() const; |
|
94 |
|
95 private: // Data members |
|
96 const TMemSpyDriverChunkInfo iChunkInfo; |
|
97 const TThreadStackInfo iStackInfo; |
|
98 HBufC* iThreadName; |
|
99 }; |
|
100 |
|
101 |
|
102 |
|
103 |
|
104 |
|
105 |
|
106 |
|
107 |
|
108 #endif |