equal
deleted
inserted
replaced
|
1 // Copyright (c) 1995-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef __DEBUGBAR_H__ |
|
17 #define __DEBUGBAR_H__ |
|
18 |
|
19 #include <e32base.h> |
|
20 #include <fbs.h> |
|
21 #include <graphics/wsgraphicscontext.h> |
|
22 #include <graphics/wsrenderstage.h> |
|
23 class CScreen; |
|
24 |
|
25 class CDebugBar : public CBase |
|
26 { |
|
27 public: |
|
28 static CDebugBar* NewL(CScreen * aScreen,TTimeIntervalMicroSeconds32 aRefreshInterval); |
|
29 ~CDebugBar(); |
|
30 void OnKeyEvent(); |
|
31 void DebugBarInfo(RArray<TPtrC>& aArray) const; |
|
32 |
|
33 private: |
|
34 CDebugBar(CScreen * aScreen); |
|
35 void ConstructL(TTimeIntervalMicroSeconds32 aRefreshInterval); |
|
36 static TBool RedrawDebugBarCallback(TAny* aAny); |
|
37 private: |
|
38 CPeriodic* iTimer; |
|
39 CScreen* iScreen; |
|
40 mutable TBuf<128> iTextLine0; |
|
41 mutable TBuf<128> iTextLine1; |
|
42 TInt iKeyEvents; |
|
43 TInt iPolls; |
|
44 mutable TInt64 iLastTotal; |
|
45 mutable TInt64 iLastIdle; |
|
46 mutable TInt64 iLastDrawing; |
|
47 mutable TInt64 iLastReclaimedIdleTime; |
|
48 }; |
|
49 #endif |
|
50 |
|
51 |