libraries/btrace_parser/inc/btrace_parser_defs.h
changeset 0 7f656887cf89
child 95 b3ffff030d5c
equal deleted inserted replaced
-1:000000000000 0:7f656887cf89
       
     1 // btrace_parser_defs.h
       
     2 // 
       
     3 // Copyright (c) 2008 - 2010 Accenture. All rights reserved.
       
     4 // This component and the accompanying materials are made available
       
     5 // under the terms of the "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 // Accenture - Initial contribution
       
    11 //
       
    12 
       
    13 #ifndef __BTRACE_PARSER_DEFS_H__
       
    14 #define __BTRACE_PARSER_DEFS_H__
       
    15 
       
    16 #include <e32cmn.h>
       
    17 #include <fshell/extrabtrace.h>
       
    18 
       
    19 // BTrace category
       
    20 const TUint KAmTraceCategory = BTrace::ESymbianExtentionsFirst;
       
    21 
       
    22 // BTrace subcategories
       
    23 enum TAmTraceSubCategory
       
    24 	{
       
    25 	// Subcategories for trace generated by autometric components
       
    26 	EAmTraceSubCategoryEvCapture				= 0,
       
    27 	EAmTraceSubCategoryScreenDriver				= 1,
       
    28 	EAmTraceSubCategoryScreenText				= 2,
       
    29 	EAmTraceSubCategoryWindowGroupName			= 3,
       
    30 	EAmTraceSubCategoryReaderSync				= 4,
       
    31 	EAmTraceSubCategoryWindowGroupFocus			= 5,
       
    32 	EAmTraceSubCategoryViewActivated			= 6,
       
    33 	EAmTraceSubCategoryThreadKilled				= 7,
       
    34 	EAmTraceSubCategoryThreadTerminated			= 8,
       
    35 	EAmTraceSubCategoryThreadPanicked			= 9,
       
    36 	EAmTraceSubCategoryProcessKilled			= 10,
       
    37 	EAmTraceSubCategoryProcessTerminated		= 11,
       
    38 	EAmTraceSubCategoryProcessPanicked			= 12,
       
    39 	EAmTraceSubCategoryScreenshot               = 13,
       
    40 	EAmTraceSubCategoryFreeRAM                  = 14,
       
    41 
       
    42 	// Btrace frames with subcategory number higher than this are parsed by CBtraceDomainEvent.
       
    43 	EAmTraceSubCategoryDomainEventBase          = 64,
       
    44 	
       
    45 	// Subcategories for trace generated by other subsystems.
       
    46 	EAmTraceSubCategoryMultimediaAudio			= 65,
       
    47 	EAmTraceSubCategoryMultimediaVideo			= 66,
       
    48 	EAmTraceSubCategoryCompatibilityPlaceHolder = 67, // Was previously EAmTraceSubCategoryScreenshot.
       
    49 	};
       
    50 
       
    51 
       
    52 /**
       
    53  * Enumeration specifying the event types which can be provided in frames with
       
    54  * the EAmTraceSubCategoryEvCapture subcategory.
       
    55  */
       
    56 enum TAmTraceEventEvCapture
       
    57 	{
       
    58 	EAmTraceEventEvCaptureKeyPress				= 2,
       
    59 	EAmTraceEventEvCapturePointer				= 3,
       
    60 	EAmTraceEventEvCaptureUnclassified			= 4,
       
    61 	EAmTraceEventEvCaptureSystemAppResponse		= 5,
       
    62 	EAmTraceEventEvCaptureRawScan				= 6,
       
    63 	};
       
    64 
       
    65 
       
    66 /**
       
    67  * Enumeration specifying the event types which can be provided in frames with
       
    68  * the EAmTraceSubCategoryMultimediaVideo subcategory.
       
    69  * 
       
    70  * Note: in future, these should move into a separate, video-specific header.
       
    71  */
       
    72 enum TAmTraceEventMultimediaVideo
       
    73 	{
       
    74 	EAmTraceEventMultimediaVideoStart			= 1,
       
    75 	EAmTraceEventMultimediaVideoFrame			= 2,
       
    76 	EAmTraceEventMultimediaVideoStop			= 3,
       
    77 	EAmTraceEventMultimediaVideoUnderflowError	= 4,
       
    78 	EAmTraceEventMultimediaVideoOverflowError	= 5,
       
    79 	
       
    80 	// Error other than underflow or overflow
       
    81 	EAmTraceEventMultimediaVideoError			= 6
       
    82 	};
       
    83 
       
    84 enum TAmTraceEventMultimediaAudio
       
    85 	{
       
    86 	EAmTraceEventMultimediaAudioStart			= 1,
       
    87 	EAmTraceEventMultimediaAudioFrame			= 2,
       
    88 	EAmTraceEventMultimediaAudioStop			= 3,
       
    89 	EAmTraceEventMultimediaAudioUnderflowError	= 4,
       
    90 	EAmTraceEventMultimediaAudioOverflowError	= 5,
       
    91 	
       
    92 	// Error other than underflow or overflow
       
    93 	EAmTraceEventMultimediaAudioError			= 6
       
    94 	};
       
    95 
       
    96 /**
       
    97  * Enumeration specifying the event types which can be provided in frames with
       
    98  * the EAmTraceSubCategoryScreenDriver subcategory.
       
    99  */
       
   100 enum TAmTraceEventScreenDriver
       
   101 	{
       
   102 	EAmTraceEventScreenDriverRectangleUpdated
       
   103 	};
       
   104 
       
   105 #endif // __BTRACE_PARSER_DEFS_H__