|
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 MEMSPYDRIVERLOGICALCHANCHUNKS_H |
|
19 #define MEMSPYDRIVERLOGICALCHANCHUNKS_H |
|
20 |
|
21 // System includes |
|
22 #include <e32cmn.h> |
|
23 #include <kern_priv.h> |
|
24 #include <memspy/driver/memspydriverobjectsshared.h> |
|
25 #include <memspy/driver/memspydriverenumerationsshared.h> |
|
26 |
|
27 // User includes |
|
28 #include "MemSpyDriverLogChanBase.h" |
|
29 |
|
30 // Classes referenced |
|
31 class DMemSpyDriverDevice; |
|
32 class TMemSpyDriverInternalChunkInfoParams; |
|
33 class TMemSpyDriverInternalChunkHandleParams; |
|
34 |
|
35 |
|
36 class DMemSpyDriverLogChanChunks : public DMemSpyDriverLogChanBase |
|
37 { |
|
38 public: |
|
39 DMemSpyDriverLogChanChunks( DMemSpyDriverDevice& aDevice, DThread& aThread ); |
|
40 ~DMemSpyDriverLogChanChunks(); |
|
41 |
|
42 public: // From DMemSpyDriverLogChanBase |
|
43 TInt Request( TInt aFunction, TAny* a1, TAny* a2 ); |
|
44 TBool IsHandler( TInt aFunction ) const; |
|
45 |
|
46 private: // Channel operation handlers |
|
47 TInt GetChunkInfo( TMemSpyDriverInternalChunkInfoParams* aParams ); |
|
48 TInt GetChunkHandles( TMemSpyDriverInternalChunkHandleParams* aParams ); |
|
49 |
|
50 private: // Internal methods |
|
51 void PrintChunkInfo( DChunk& aChunk ); |
|
52 TMemSpyDriverChunkType IdentifyChunkType( DChunk& aChunk ); |
|
53 TBool IsHeapChunk( DChunk& aChunk, const TName& aName ); |
|
54 TBool DoesChunkRelateToProcess( DChunk& aChunk, DProcess& aProcess ); |
|
55 |
|
56 private: // Data members |
|
57 }; |
|
58 |
|
59 |
|
60 #endif |