equal
deleted
inserted
replaced
|
1 // leak.h |
|
2 // |
|
3 // Copyright (c) 2007 - 2010 Accenture. All rights reserved. |
|
4 // This component and the accompanying materials are made available |
|
5 // under the terms of the "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 // Accenture - Initial contribution |
|
11 // |
|
12 |
|
13 #include <fshell/ioutils.h> |
|
14 |
|
15 using namespace IoUtils; |
|
16 |
|
17 class CCmdLeak : public CCommandBase |
|
18 { |
|
19 public: |
|
20 static CCommandBase* NewLC(); |
|
21 ~CCmdLeak(); |
|
22 private: |
|
23 CCmdLeak(); |
|
24 TInt LeakStep(TInt aAmount); |
|
25 |
|
26 private: // From CCommandBase. |
|
27 virtual const TDesC& Name() const; |
|
28 virtual void DoRunL(); |
|
29 virtual void OptionsL(RCommandOptionList& aOptions); |
|
30 virtual void ArgumentsL(RCommandArgumentList& aArguments); |
|
31 private: |
|
32 TInt iAmount; |
|
33 TBool iVerbose; |
|
34 TInt iIncrementAmount; |
|
35 TUint iRate; |
|
36 |
|
37 TUint iHeapAddr; |
|
38 TBool iUseHeap; |
|
39 TBool iRetry; |
|
40 |
|
41 RChunk iChunk; |
|
42 RAllocator* iChunkHeap; |
|
43 |
|
44 TInt iCurrentLeak; |
|
45 }; |