traceservices/tracefw/integ_test/ost/TEF/te_ostv2integsuite_performance/src/sanity/te_perfsanitytimer.cpp
branchRCL_3
changeset 24 cc28652e0254
parent 23 26645d81f48d
equal deleted inserted replaced
23:26645d81f48d 24:cc28652e0254
    28 #include "te_instrumentationpoints.h"
    28 #include "te_instrumentationpoints.h"
    29 
    29 
    30 #endif
    30 #endif
    31 #include "te_dataparameters.h"
    31 #include "te_dataparameters.h"
    32 
    32 
    33 TBool TTestTimer::TestUserTimerL(TUint32& aTestTime)
    33 TBool TTestTimer::TestUserTimer(TUint32& aTestTime)
    34 	{
    34 	{
    35 	return DoTestTraceL(ESanityFoo, aTestTime);
    35 	return DoTestTrace(ESanityFoo, aTestTime);
    36 	}
    36 	}
    37 
    37 
    38 TBool TTestTimer::TestUserLongTimerL(TUint32& aTestTime)
    38 TBool TTestTimer::TestUserLongTimer(TUint32& aTestTime)
    39 	{
    39 	{
    40 	return DoTestTraceL(ESanityFooLong, aTestTime);
    40 	return DoTestTrace(ESanityFooLong, aTestTime);
    41 	}
    41 	}
    42 
    42 
    43 
    43 
    44 TBool TTestTimer::TestKernelTimerL(TUint32& aTestTime)
    44 TBool TTestTimer::TestKernelTimer(TUint32& aTestTime)
    45 	{
    45 	{
    46 	return DoTestTraceL(ESanityFoo, aTestTime);
    46 	return DoTestTrace(ESanityFoo, aTestTime);
    47 	}
    47 	}
    48 
    48 
    49 TBool TTestTimer::TestKernelLongTimerL(TUint32& aTestTime)
    49 TBool TTestTimer::TestKernelLongTimer(TUint32& aTestTime)
    50 	{
    50 	{
    51 	return DoTestTraceL(ESanityFooLong, aTestTime);
    51 	return DoTestTrace(ESanityFooLong, aTestTime);
    52 	}
    52 	}
    53 
    53 
    54 TBool TTestTimer::TestUTraceUserTimerL(TUint32& aTestTime)
    54 TBool TTestTimer::TestUTraceUserTimer(TUint32& aTestTime)
    55 	{
    55 	{
    56 	return DoTestTraceL(EUtraceUsr, aTestTime);
    56 	return DoTestTrace(EUtraceUsr, aTestTime);
    57 	}
    57 	}
    58 
    58 
    59 TBool TTestTimer::TestUTraceKernelTimerL(TUint32& aTestTime)
    59 TBool TTestTimer::TestUTraceKernelTimer(TUint32& aTestTime)
    60 	{
    60 	{
    61 	return DoTestTraceL(EUtraceKrn, aTestTime);
    61 	return DoTestTrace(EUtraceKrn, aTestTime);
    62 	}
    62 	}
    63 
    63 
    64 
    64 
    65 TBool TTestTimer::DoTestTraceL(const TTestMethodType aMethod, TUint32& aTestTime)
    65 TBool TTestTimer::DoTestTrace(const TTestMethodType aMethod, TUint32& aTestTime)
    66 	{
    66 	{
    67 	aTestTime = 0;
    67 	aTestTime = 0;
    68 
    68 
    69 	//Want to set this up before we run the timers not to affect them
    69 	//Want to set this up before we run the timers not to affect them
    70 	TApiRunConfig apiRunConfig;
    70 	TApiRunConfig apiRunConfig;