windowing/windowserver/nga/SERVER/debugbar.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 15 Sep 2010 13:39:03 +0300
branchRCL_3
changeset 186 1bc91eb0b8ae
parent 0 5d03bc08d59c
permissions -rw-r--r--
Revision: 201029 Kit: 201036

// Copyright (c) 1995-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
//

#ifndef __DEBUGBAR_H__
#define __DEBUGBAR_H__

#include <e32base.h>
#include <fbs.h>
#include <graphics/wsgraphicscontext.h>
#include <graphics/wsrenderstage.h>
class CScreen;

class CDebugBar : public CBase
	{
	public:
		static CDebugBar* NewL(CScreen * aScreen,TTimeIntervalMicroSeconds32 aRefreshInterval);
		~CDebugBar();
		void OnKeyEvent();
		void DebugBarInfo(RArray<TPtrC>& aArray) const;
				
	private:
		CDebugBar(CScreen * aScreen);
		void ConstructL(TTimeIntervalMicroSeconds32 aRefreshInterval);
		static TBool RedrawDebugBarCallback(TAny* aAny);
	private:
		CPeriodic* iTimer;
		CScreen* iScreen;
		mutable TBuf<128> iTextLine0;
		mutable TBuf<128> iTextLine1;
		TInt iKeyEvents;
		TInt iPolls;
		mutable TInt64 iLastTotal;
		mutable TInt64 iLastIdle;
		mutable TInt64 iLastDrawing;
		mutable TInt64 iLastReclaimedIdleTime;
	};
#endif