Helper to log results of the tuning process to a csv file for easier analysis. More...
#include <TuningResultLogger.h>
Public Member Functions | |
TuningResultLogger (const std::string &outputSuffix="") | |
Constructor initializes the logger and sets the output file name. | |
~TuningResultLogger () | |
Destructor drops the logger from the spd registry. | |
void | logTuningResult (const autopas::Configuration &configuration, size_t iteration, long timeTuning, long optimumPerformance) const |
Log the result of a tuning phase. | |
Helper to log results of the tuning process to a csv file for easier analysis.
It uses an asynchronous spd logger to write a csv file named "AutoPas_iterationPerformance_<dateStamp>.csv".
By default logging the data is disabled. It can be enabled by setting the cmake variable AUTOPAS_LOG_TUNINGRESULTS to ON.
|
explicit |
Constructor initializes the logger and sets the output file name.
outputSuffix | Suffix for all output files produced by this class. |
void autopas::TuningResultLogger::logTuningResult | ( | const autopas::Configuration & | configuration, |
size_t | iteration, | ||
long | timeTuning, | ||
long | optimumPerformance | ||
) | const |
Log the result of a tuning phase.
configuration | |
iteration | |
timeTuning | |
optimumPerformance | Performance of the best configuration |