Helper to log the collected LiveInfo data during tuning to a csv file for easier analysis. More...
#include <LiveInfoLogger.h>
Public Member Functions | |
LiveInfoLogger (const std::string &outputSuffix="") | |
Constructor initializes the logger and sets the output file name. | |
~LiveInfoLogger () | |
Destructor drops the logger from the spd registry. | |
void | logLiveInfo (const LiveInfo &liveInfo, size_t iteration) |
Log the given arguments and the internal buffer to the csv file. | |
Helper to log the collected LiveInfo data during tuning to a csv file for easier analysis.
It uses an asynchronous spd logger to write a csv file named "AutoPas_liveInfoLogger_<dateStamp>.csv".
By default logging the data is disabled. It can be enabled by setting the cmake variable AUTOPAS_LOG_LIVEINFO 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::LiveInfoLogger::logLiveInfo | ( | const LiveInfo & | liveInfo, |
size_t | iteration | ||
) |
Log the given arguments and the internal buffer to the csv file.
liveInfo | The liveInfo Struct to log. |
iteration | The iteration number. |