traceservices/tracefw/integ_test/ost/TEF/te_ostv2integsuite_performance/inc/te_perftracetester.h
changeset 0 08ec8eefde2f
child 23 26645d81f48d
equal deleted inserted replaced
-1:000000000000 0:08ec8eefde2f
       
     1 // Copyright (c) 2007-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 "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".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // UTrace Performance Tests UTrace Call Controller
       
    15 //
       
    16 
       
    17 
       
    18 
       
    19 /**
       
    20  @file te_perftracetester.h
       
    21  @internalTechnology
       
    22  @prototype
       
    23 */
       
    24 
       
    25 #ifndef TE_UPTUTRACETESTER_H
       
    26 #define TE_UPTUTRACETESTER_H
       
    27 
       
    28 
       
    29 #include <opensystemtrace.h>
       
    30 #include "te_instrumentation_enum.h"
       
    31 #include "te_perf.h"
       
    32 
       
    33 
       
    34 /**
       
    35  * Use this class to call to get the traces.
       
    36  * It will behind the scene work out if its a kernel or user side call
       
    37  */
       
    38 class TUptTraceTester
       
    39 {
       
    40 public:
       
    41 	/**
       
    42 	 * @param aApiRunConfig Configuration parameters that both set and return values
       
    43 	 * @return Returns if there was an error or not.
       
    44 	 */
       
    45 	TInt SendTraceL(const TApiRunConfig& aApiRunConfig,  TApiRunResults& aApiRunResults); //pass the configuration here
       
    46 
       
    47 	/**
       
    48 	 * This returns the average execution time calculated over
       
    49 	 * KMeasurementTime and KNumberOfTraceCallIterations
       
    50 	 * @param aApiRunConfig Configuration parameters that both set and return values
       
    51 	 * @return Returns if there was an error or not.
       
    52 	 */
       
    53 	TInt TimeTraceL(const TApiRunConfig& aApiRunConfig,  TApiRunResults& aApiRunResults);
       
    54 
       
    55 	/**
       
    56 	 * Makes a trace call to either kernel or user side
       
    57 	 * and returns the time in the parameter aApiRunConfig.iApiTraceTime
       
    58 	 */
       
    59 	TInt TimeTraceCall(const TApiRunConfig& aApiRunConfig,  TApiRunResults& aApiRunResults);
       
    60 
       
    61 	/**
       
    62 	 * Makes a call to user side, returning the time in the
       
    63 	 * parameter aApiRunConfig.iApiTraceTime
       
    64 	 */
       
    65 	TInt TimeUsersideTraceCalls(const TApiRunConfig& aApiRunConfig,  TApiRunResults& aApiRunResults);
       
    66 
       
    67 	/**
       
    68 	 */
       
    69 	TInt GenerateEvpDataField(const TInt aDataSize, TInt8* aData);
       
    70 
       
    71 };
       
    72 
       
    73 #endif
       
    74 
       
    75