src/Generic/commandLineInterface/CommandLineInterface.cpp
/** Display a message indicating how much time we spent loading models
	  * and processing documents. */
Display a message indicating how much time we spent loading models
and processing documents.
Display a message indicating how much time we spent loading models and processing documents .
void reportProfilingInformation(const GenericTimer &totalLoadTimer, 
									const GenericTimer &totalProcessTimer,
									const DocumentDriver &documentDriver
									) {
		std::ostringstream ostr;
		ostr << "Load time: " << (int) (totalLoadTimer.getTime() / 1000) << " seconds\n";
		ostr << "Load\t" << totalLoadTimer.getTime() << " msec" << endl;
		ostr << "Process\t" << totalProcessTimer.getTime() << " msec" << endl;
		ostr << "Load(exc.score)\t" << totalLoadTimer.getTime() - documentDriver.stageLoadTimer[Stage("score")].getTime() << " msec" << endl;
		ostr << "Process(exc.score)\t" << totalProcessTimer.getTime() - documentDriver.stageProcessTimer[Stage("score")].getTime() << " msec" << endl;
		ostr << endl;
		if (documentDriver.getSessionProgram())
			SessionLogger::updateContext(SESSION_CONTEXT, documentDriver.getSessionProgram()->getSessionName());
		SessionLogger::info("profiling") << ostr.str();
		documentDriver.logTrace();
	}
void reportProfilingInformation ( const GenericTimer & totalLoadTimer , const GenericTimer & totalProcessTimer , const DocumentDriver & documentDriver ) { std :: ostringstream ostr ; ostr << " " << ( int ) ( totalLoadTimer . getTime ( ) / 1000 ) << " \n " ; ostr << " \t " << totalLoadTimer . getTime ( ) << " " << endl ; ostr << " \t " << totalProcessTimer . getTime ( ) << " " << endl ; ostr << " \t " << totalLoadTimer . getTime ( ) - documentDriver . stageLoadTimer [ Stage ( " " ) ] . getTime ( ) << " " << endl ; ostr << " \t " << totalProcessTimer . getTime ( ) - documentDriver . stageProcessTimer [ Stage ( " " ) ] . getTime ( ) << " " << endl ; ostr << endl ; if ( documentDriver . getSessionProgram ( ) ) SessionLogger :: updateContext ( SESSION_CONTEXT , documentDriver . getSessionProgram ( ) -> getSessionName ( ) ) ; SessionLogger :: info ( " " ) << ostr . str ( ) ; documentDriver . logTrace ( ) ; }
Display a message indicating how much time we spent loading models
 and processing documents.
Display a message indicating how much time we spent loading models and processing documents .