AutoPas  3.0.0
Loading...
Searching...
No Matches
LiveInfoLogger.h
Go to the documentation of this file.
1
7#pragma once
8
9#include <spdlog/async.h>
10
13
14namespace autopas {
24 public:
29 explicit LiveInfoLogger(const std::string &outputSuffix = "");
30
35
41 void logLiveInfo(const LiveInfo &liveInfo, size_t iteration);
42
43 private:
44 std::string _loggerName;
45 std::string _outputFileName;
46#ifdef AUTOPAS_LOG_LIVEINFO
47 bool headerWritten = false;
48#endif
49};
50} // namespace autopas
Helper to log the collected LiveInfo data during tuning to a csv file for easier analysis.
Definition: LiveInfoLogger.h:23
~LiveInfoLogger()
Destructor drops the logger from the spd registry.
Definition: LiveInfoLogger.cpp:25
void logLiveInfo(const LiveInfo &liveInfo, size_t iteration)
Log the given arguments and the internal buffer to the csv file.
Definition: LiveInfoLogger.cpp:31
This class is able to gather and store important information for a tuning phase from a container and ...
Definition: LiveInfo.h:31
This is the main namespace of AutoPas.
Definition: AutoPasDecl.h:32