inc/alf/alfperf.h
changeset 3 4526337fb576
parent 2 b1a1f09f9110
child 7 c2c0f97004fc
child 8 b802b04b6cfa
child 17 3eca7e70b1b8
equal deleted inserted replaced
2:b1a1f09f9110 3:4526337fb576
     1 /*
       
     2 * Copyright (c) 2007 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:  Defines macros to log performance related details
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef ALFPERF_H
       
    20 #define ALFPERF_H
       
    21 #include "alf/alfwidgetmodeldefines.hrh"
       
    22 #ifdef ALF_DEBUG_PERFORMANCE
       
    23 #include "alf/alfperformance.h"
       
    24   #define ALF_PERF_START(p1,p2) CAlfPerformance::TPerfData* p1=CAlfPerformance::StartTestCase(_L(p2));
       
    25   #define ALF_PERF_STOP(p1,p2) CAlfPerformance::StopTestCase(p1,_L(p2));
       
    26 #else
       
    27   #define ALF_PERF_START(p1,p2)
       
    28   #define ALF_PERF_STOP(p1,p2)
       
    29 #endif
       
    30 
       
    31 #endif //ALFPERF_H