62 ESortProcByThreadCount, |
66 ESortProcByThreadCount, |
63 ESortProcByCodeSegs, |
67 ESortProcByCodeSegs, |
64 ESortProcByHeapUsage, |
68 ESortProcByHeapUsage, |
65 ESortProcByStackUsage, |
69 ESortProcByStackUsage, |
66 ESortServByName, |
70 ESortServByName, |
67 ESortServBySessionCount |
71 ESortServBySessionCount, |
|
72 ESortChunkByName, |
|
73 ESortChunkBySize, |
|
74 ESortCodeSegByName, |
|
75 ESortCodeSegBySize, |
|
76 ESortCodeSegByTotalDataSize, |
|
77 ESortCodeSegByUid |
68 }; |
78 }; |
69 |
79 |
70 enum TMemSpyOutputType |
80 enum TMemSpyOutputType |
71 { |
81 { |
72 EOutputTypeDebug = 0, |
82 EOutputTypeDebug = 0, |
165 |
175 |
166 IMPORT_C TProcessId GetProcessIdByNameL(const TDesC& aProcessName); |
176 IMPORT_C TProcessId GetProcessIdByNameL(const TDesC& aProcessName); |
167 |
177 |
168 IMPORT_C void GetThreadsL(TProcessId aProcessId, RArray<CMemSpyApiThread*> &aThreads, TSortType aSortType = ESortProcById); |
178 IMPORT_C void GetThreadsL(TProcessId aProcessId, RArray<CMemSpyApiThread*> &aThreads, TSortType aSortType = ESortProcById); |
169 |
179 |
170 IMPORT_C TInt ProcessSystemPermanentOrCritical( TProcessId aId, TBool aValue ); //aValue -> return value |
180 IMPORT_C TInt ProcessSystemPermanentOrCritical( TProcessId aId, TBool& aValue ); //aValue -> return value |
171 |
181 |
172 IMPORT_C void SetThreadPriorityL(TThreadId aId, TInt aPriority); |
182 IMPORT_C void SetThreadPriorityL(TThreadId aId, TInt aPriority); |
173 |
183 |
174 IMPORT_C TInt EndProcessL( TProcessId aId, TMemSpyEndType aType ); |
184 IMPORT_C TInt EndProcessL( TProcessId aId, TMemSpyEndType aType ); |
175 |
185 |
176 IMPORT_C TInt SwitchToProcess( TProcessId aId, TBool aBrought ); |
186 IMPORT_C TInt SwitchToProcess( TProcessId aId, TBool aBrought ); |
177 |
187 |
178 IMPORT_C void GetProcessIdByThreadId( TProcessId& aPID, TThreadId aTID ); |
188 IMPORT_C void GetProcessIdByThreadId( TProcessId& aPID, TThreadId aTID ); |
|
189 |
|
190 IMPORT_C void NotifyEvent(TRequestStatus &aStatus); |
|
191 |
|
192 IMPORT_C void CancelEventNotificationL(); |
179 |
193 |
180 //SWMT operations |
194 //SWMT operations |
181 |
195 |
182 IMPORT_C void GetMemoryTrackingCyclesL(RArray<CMemSpyApiMemoryTrackingCycle*>& aCycles); |
196 IMPORT_C void GetMemoryTrackingCyclesL(RArray<CMemSpyApiMemoryTrackingCycle*>& aCycles); |
183 |
197 |
259 |
273 |
260 IMPORT_C CMemSpyApiHeap* GetHeap(); |
274 IMPORT_C CMemSpyApiHeap* GetHeap(); |
261 |
275 |
262 IMPORT_C void DumpKernelHeap(); |
276 IMPORT_C void DumpKernelHeap(); |
263 |
277 |
|
278 //Chunks |
|
279 IMPORT_C void GetChunksL(RArray<CMemSpyApiChunk*> &aChunks, TSortType aSortType); |
|
280 |
|
281 IMPORT_C void ChunkListOutputL(); |
|
282 |
264 // Servers |
283 // Servers |
265 IMPORT_C void GetServersL(RArray<CMemSpyApiServer*> &aServers); |
284 IMPORT_C void GetServersL(RArray<CMemSpyApiServer*> &aServers); |
266 |
285 |
267 IMPORT_C void GetServersL(RArray<CMemSpyApiServer*> &aServers, TSortType aSortType); |
286 IMPORT_C void GetServersL(RArray<CMemSpyApiServer*> &aServers, TSortType aSortType); |
268 |
287 |
277 IMPORT_C void GetEComImplementationsL(TUid aInterface, RArray<CMemSpyApiEComImplementation*> &aImplementations); |
296 IMPORT_C void GetEComImplementationsL(TUid aInterface, RArray<CMemSpyApiEComImplementation*> &aImplementations); |
278 |
297 |
279 // Window Groups |
298 // Window Groups |
280 IMPORT_C void GetWindowGroupsL(RArray<CMemSpyApiWindowGroup*> &aGroups); |
299 IMPORT_C void GetWindowGroupsL(RArray<CMemSpyApiWindowGroup*> &aGroups); |
281 |
300 |
|
301 IMPORT_C void SwitchToWindowGroupL( TInt aId ); |
|
302 |
|
303 // RAM info |
|
304 IMPORT_C void IsAknIconCacheConfigurable( TBool& aValue ); |
|
305 |
|
306 IMPORT_C void SetAknIconCacheStatusL( TBool aEnabled, TInt64& aValue ); |
|
307 |
|
308 //CodeSegments |
|
309 IMPORT_C void GetCodeSegmentsL( RArray<CMemSpyApiCodeSegment*> &aCodeSegments, TSortType aSortType) ; |
|
310 |
|
311 IMPORT_C void CodeSegmentsListOutputL(); |
|
312 |
282 private: |
313 private: |
283 TInt StartServer(); |
314 TInt StartServer(); |
284 |
315 |
285 void SetOutputTypeL(TMemSpyOutputType aOutputType); |
316 void SetOutputTypeL(TMemSpyOutputType aOutputType); |
286 |
317 |