Update contrib.
1 // Copyright (c) 2005-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 the License "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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // Header file for Kernel Performance Logger test
22 #ifndef T_PERFLOGGER_H__
23 #define T_PERFLOGGER_H__
25 #include <d32btrace.h>
27 //-------------------------------------------------------------------------------------
29 /** Unrolled trace record layout for simplier access to the record fields */
44 TInt iDataWords; ///< number of 32 bit words in the trace record "data" section. 0 means that tere is no data.
45 const TUint32* ipData; ///< pointer to the data.
49 iSize=0; iFlags=0; iCategory=0; iSubCategory=0; iHeader2 =0;
50 iTimestamp=0; iTimestamp2=0; iContext=0; iPC=0; iExtra=0; iDataWords=0;
57 //-------------------------------------------------------------------------------------
61 TUint ParseTraceRecord(const TUint8* apRecord, TTraceLayout& aTraceLayout);
62 void PrintTraceRecord(const TTraceLayout& aTraceLayout);
63 TUint URnd(TUint aMin, TUint aMax);
64 TUint URnd(TUint aMax);
67 #endif //T_PERFLOGGER_H__