os/ossrv/lowlevellibsandfws/pluginfw/TestExecute/EComPerfTest/src/Te_EComPerfLoggerStep.cpp
Update contrib.
1 // Copyright (c) 2005-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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // Implements the performance loggr for ECOM
23 #include "Te_EComPerfLoggerStep.h"
27 #include <startup.hrh>
28 #include <ecom/ecom.h>
29 #include "EComSessionAux.h"
31 CEComPerfLogger::CEComPerfLogger() : CEComPerfTestBase(KEComPerfLogger)
35 CEComPerfLogger::~CEComPerfLogger()
43 TVerdict CEComPerfLogger::doTestStepL()
45 #ifdef __ECOM_SERVER_PERFORMANCE__
46 // get all the timer results from the server
47 RStartupStateTimerResults timerResults;
48 timerResults.GetAllTimerResults();
51 TInt count = timerResults.Count();
52 for(i=0; i<count; i++)
54 const TStartupStateTimerResult& timerResult = timerResults.At(i);
56 INFO_PRINTF3(_L("State: %d start time: %f mSecs\n"), timerResult.iState , timerResult.iStartTime);
57 INFO_PRINTF3(_L("State: %d end time: %f mSecs\n"), timerResult.iState, timerResult.iEndTime);
58 INFO_PRINTF3(_L("State: %d elapsed time: %f mSecs\n\n"), timerResult.iState, timerResult.iEndTime - timerResult.iStartTime);
61 MacroNotDefinedError();
62 #endif // __ECOM_SERVER_PERFORMANCE__
63 return TestStepResult();