|
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 MEMSPYENGINEHELPERSYSMEMTRACKEROUTPUTFORMATTER_H |
|
19 #define MEMSPYENGINEHELPERSYSMEMTRACKEROUTPUTFORMATTER_H |
|
20 |
|
21 // System includes |
|
22 #include <e32base.h> |
|
23 #include <badesca.h> |
|
24 |
|
25 // User includes |
|
26 #include <memspy/engine/memspyenginehelpersysmemtrackerconfig.h> |
|
27 |
|
28 // Classes referenced |
|
29 class CMemSpyEngine; |
|
30 class TMemSpyEngineHelperSysMemTrackerConfig; |
|
31 class CMemSpyEngineHelperSysMemTrackerCycle; |
|
32 |
|
33 |
|
34 |
|
35 NONSHARABLE_CLASS( CMemSpyEngineHelperSysMemTrackerOutputFormatter ) : public CBase |
|
36 { |
|
37 public: |
|
38 static CMemSpyEngineHelperSysMemTrackerOutputFormatter* NewL( CMemSpyEngine& aEngine ); |
|
39 ~CMemSpyEngineHelperSysMemTrackerOutputFormatter(); |
|
40 |
|
41 private: |
|
42 CMemSpyEngineHelperSysMemTrackerOutputFormatter( CMemSpyEngine& aEngine ); |
|
43 void ConstructL(); |
|
44 |
|
45 public: // API |
|
46 void SetConfig( const TMemSpyEngineHelperSysMemTrackerConfig& aConfig ); |
|
47 void OutputL( const CMemSpyEngineHelperSysMemTrackerCycle& aCycle ); |
|
48 inline const TMemSpyEngineHelperSysMemTrackerConfig& Config() const { return iConfig; } |
|
49 |
|
50 private: // Internal methods |
|
51 void OutputOverallHeaderL( CMemSpyEngineHelperSysMemTrackerCycle& aCycle ); |
|
52 void OutputOverallFooterL( CMemSpyEngineHelperSysMemTrackerCycle& aCycle ); |
|
53 static TBool HaveTypesChanged( TInt aLeft, TInt aRight ); |
|
54 |
|
55 private: |
|
56 CMemSpyEngine& iEngine; |
|
57 TMemSpyEngineHelperSysMemTrackerConfig iConfig; |
|
58 }; |
|
59 |
|
60 |
|
61 |
|
62 #endif |