equal
deleted
inserted
replaced
28 |
28 |
29 class DMemoryEventHandler : public DKernelEventHandler |
29 class DMemoryEventHandler : public DKernelEventHandler |
30 { |
30 { |
31 public: |
31 public: |
32 // constructor |
32 // constructor |
33 DMemoryEventHandler(DProfilerSampleBuffer* aSampleBuffer); |
33 DMemoryEventHandler(DProfilerSampleBuffer* aSampleBuffer, TProfilerGppSamplerData* aGppSamplerDataIn); |
34 TInt Create(); |
34 TInt Create(); |
35 ~DMemoryEventHandler(); |
35 ~DMemoryEventHandler(); |
36 TInt Start(); |
36 TInt Start(); |
37 TInt Stop(); |
37 TInt Stop(); |
38 TBool Tracking() {return iTracking;} |
38 TBool Tracking() {return iTracking;} |
39 |
39 |
40 TBool SampleNeeded(); |
40 TBool SampleNeeded(); |
|
41 void SampleHandled(); |
41 |
42 |
42 private: |
43 private: |
43 static TUint EventHandler(TKernelEvent aEvent, TAny* a1, TAny* a2, TAny* aThis); |
44 static TUint EventHandler(TKernelEvent aEvent, TAny* a1, TAny* a2, TAny* aThis); |
44 TUint HandleEvent(TKernelEvent aType, TAny* a1, TAny* a2); |
45 TUint HandleEvent(TKernelEvent aType, TAny* a1, TAny* a2); |
45 // handle chunk activity |
46 // handle chunk activity |
78 TBool iTracking; |
79 TBool iTracking; |
79 |
80 |
80 DProfilerSampleBuffer* iSampleBuffer; |
81 DProfilerSampleBuffer* iSampleBuffer; |
81 TInt iCounters[EEventLimit]; |
82 TInt iCounters[EEventLimit]; |
82 |
83 |
83 TUint32 iCount; |
84 //TUint32 iCount; |
84 |
85 |
85 TUint8 iSample[KEventBufferSize]; |
86 TUint8 iSample[KEventBufferSize]; |
86 TPtr8 iSampleDescriptor; |
87 TPtr8 iSampleDescriptor; |
87 |
88 |
88 TUint32 iPreviousCount; |
89 TUint32 iPreviousCount; |
|
90 TBool iSampleAvailable; |
|
91 TProfilerGppSamplerData* gppSamplerData; |
89 }; |
92 }; |
90 |
93 |
91 #endif |
94 #endif |