uiacceltk/hitchcock/goommonitor/inc/traceconfiguration.hrh
changeset 0 15bf7259bb7c
child 11 46927d61fef3
equal deleted inserted replaced
-1:000000000000 0:15bf7259bb7c
       
     1 /*
       
     2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "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 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Tracing flags configuration.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef TRACECONFIGURATION_HRH
       
    20 #define TRACECONFIGURATION_HRH
       
    21 
       
    22 //-----------------------------------------------------------------------------
       
    23 // Trace definitions
       
    24 //-----------------------------------------------------------------------------
       
    25 //
       
    26 
       
    27 // just to make it easier to enable traces on rel builds also
       
    28 #ifdef _DEBUG
       
    29     #define _GOOM_DEBUG
       
    30     #define __GOOM_INFO_TRACE__
       
    31     #define __GOOM_FUNC_TRACE__
       
    32 #endif
       
    33 
       
    34 /**
       
    35 * Error trace enabled
       
    36 */
       
    37 #ifdef _GOOM_DEBUG
       
    38     #define ERROR_TRACE
       
    39 #else
       
    40     #undef ERROR_TRACE
       
    41 #endif
       
    42 
       
    43 /**
       
    44 * Info trace enabled
       
    45 */
       
    46 #define __GOOM_INFO_TRACE__
       
    47 #if defined _GOOM_DEBUG && defined __GOOM_INFO_TRACE__
       
    48     #define INFO_TRACE
       
    49     #define TIMESTAMP_TRACE
       
    50 #else
       
    51     #undef INFO_TRACE
       
    52     #undef TIMESTAMP_TRACE
       
    53 #endif
       
    54 
       
    55 /**
       
    56 * Function trace enabled
       
    57 */
       
    58 #if defined _GOOM_DEBUG && defined __GOOM_FUNC_TRACE__
       
    59     #define FUNC_TRACE
       
    60 #else
       
    61     #undef FUNC_TRACE
       
    62 #endif
       
    63 
       
    64 /**
       
    65 * Timestamp tracing on
       
    66 */
       
    67 #if defined _GOOM_DEBUG && defined __GOOM_TIMESTAMP_TRACE__
       
    68     #define TIMESTAMP_TRACE
       
    69 #else
       
    70     #undef TIMESTAMP_TRACE
       
    71 #endif
       
    72 
       
    73 /**
       
    74 * Tracing current client process and thread
       
    75 */
       
    76 #ifdef _GOOM_DEBUG
       
    77     #define CLIENT_TRACE
       
    78 #else
       
    79     #undef CLIENT_TRACE
       
    80 #endif
       
    81 
       
    82 /**
       
    83 * Tracing into file enabled, default RDebug
       
    84 */
       
    85 #ifdef __GOOM_TRACE_INTO_FILE__
       
    86     #define TRACE_INTO_FILE
       
    87 #else
       
    88     #undef TRACE_INTO_FILE
       
    89 #endif
       
    90 
       
    91 #endif