diff -r 7fdc9a71d314 -r 8ad140f3dd41 analyzetool/analyzetool_plat/analyzetool_api/inc/analyzetool/analyzetooltraceconstants.h --- a/analyzetool/analyzetool_plat/analyzetool_api/inc/analyzetool/analyzetooltraceconstants.h Wed Sep 15 13:53:27 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,209 +0,0 @@ -/* -* Copyright (c) 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: Common declarations/definitions for Analyze Tool. -* -*/ - -#ifndef __ANALYZETOOLTRACECONSTANTS_H__ -#define __ANALYZETOOLTRACECONSTANTS_H__ - -#include - -// Trace version information. -const TUint KATTraceVersion = 0x3; - -// The default logging mode -const TATLogOption KDefaultLoggingMode = EATLogToTraceFast; - -// When needed, update the data file's version number directly inside -// the _LIT8 macro. Note, if you change this string, also remember to update -// the constant "KVersionStringLength" below. - -_LIT8( KDataFileVersion, "ATOOL_BINARY_FILE_VERSION 1\n" ); -_LIT( KOpenSquareBracket, "[" ); -_LIT( KCloseSquareBracket, "]" ); -_LIT( KUnderLine, "_" ); -_LIT( KLeftBracket, "(" ); -_LIT( KRightBracket, ")" ); - -_LIT8( KSpace, " " ); -_LIT8( KUdeb, "UDEB" ); -_LIT8( KUrel, "UREL" ); - -// Constants for logging through debug channel - -// remember to change length of KTagLength when length of constants changes - -_LIT8( KATIdentifier, " " ); -_LIT8( KProcessStart, "PCS " ); -_LIT8( KProcessEnd, "PCE " ); -_LIT8( KVersionsInfo, "DEVINFO "); -_LIT8( KThreadStart, "TDS " ); -_LIT8( KThreadEnd, "TDE " ); -_LIT8( KDllLoad, "DLL " ); -_LIT8( KDllUnload, "DLU " ); -_LIT8( KTestStart, "TSS " ); -_LIT8( KTestEnd, "TSE " ); -_LIT8( KHandleLeak, "HDL " ); -_LIT8( KLoggingCancelled, "LGC " ); -_LIT8( KErrorOccured, "ERR " ); -_LIT8( KMemoryAllocHeader, "ALH " ); -_LIT8( KMemoryAllocFragment, "ALF " ); -_LIT8( KMemoryFreedHeader, "FRH " ); -_LIT8( KMemoryFreedFragment, "FRF " ); -_LIT8( KMemoryReallocHeader, "RAH " ); -_LIT8( KMemoryReallocFragment, "RAF " ); - -//to be implemented on carbide side (was logged from storage server/ carbide extension) -//_LIT( KSubtestStart, "TEST_START " ); -//_LIT( KSubtestEnd, "TEST_END " ); - -// File name format -_LIT( KFormat, "%S%S%02d%S%S");// pad char="0", field width=2 - -// A string for setting time January 1st, 1970 AD nominal Gregorian -_LIT( KJanuaryFirst1970, "19700000:000000.000000" ); - - -// todo -// Module name when it cannot be defined -// was used in "handle leak" message - always unknown -//_LIT8( KUnknownModule, "Unknown" ); - -// Constant time variable used to calculate timestamps for pc side. -const TInt64 KMicroSecondsAt1970 = 62168256000000000; - -// The length of the string KDataFileVersion -const TInt KVersionStringLength = 27; - -// The maximum length of one word (32 bits) represented in the hexadecimal text format -// without "0x" prefix -const TInt KHexa32Length = 8; - -// The maximum length of one word (32 bits) represented in the decimal text format -const TInt KDec32Length = 10; - -// The maximum length of a TInt64 represented in the hexadecimal text format without -// "0x" prefix -const TInt KHexa64Length = 16; - -// The length of one space character in text -const TInt KSpaceLength = 1; - -// The length of the AT message identifier with one space character (" ") -const TInt KATIdentifierLength = 5; - -// The length of the tag with one space character (e.g. "FRH ") -const TInt KTagLength = 4; - -// The length of atool version string (x.x.x) -const TInt KAtoolVersionLength = 6; - -// The length of api version string (x.x.x) -const TInt KApiVersionLength = 5; - -// The length of sw version version string -const TInt KSwVersionLength = 64; - -// The length of the combination atId+processId+msgTag ( NNN PCS ) -const TInt KTraceHeaderLength = KATIdentifierLength + KHexa32Length + KSpaceLength + KTagLength; - -// Max length of alloc, free, realloc last item (callstack adress) -const TInt KLastItemLength = KHexa32Length + KSpaceLength; - -// The maximum length of the process start (PCS) buffer -// <> PCS