AutoPas  3.0.0
Loading...
Searching...
No Matches
IterationLogger.h
Go to the documentation of this file.
1
7#pragma once
8
9#include <spdlog/async.h>
10
13
14namespace autopas {
15
25 public:
31 explicit IterationLogger(const std::string &outputSuffix = "", bool energyMeasurements = false);
32
37
47 void logIteration(const Configuration &configuration, size_t iteration, const std::string &functorName,
48 bool inTuningPhase, long timeTuning, const IterationMeasurements &measurements) const;
49
50 private:
51 std::string _loggerName;
52};
53
54} // namespace autopas
Class containing multiple options that form an algorithm configuration for the pairwise iteration.
Definition: Configuration.h:24
Helper to log performance data of AutoPas::computeInteractions() to a csv file for easier analysis.
Definition: IterationLogger.h:24
~IterationLogger()
Destructor drops the logger from the spd registry.
Definition: IterationLogger.cpp:52
void logIteration(const Configuration &configuration, size_t iteration, const std::string &functorName, bool inTuningPhase, long timeTuning, const IterationMeasurements &measurements) const
Log the given arguments and the internal buffer to the csv file.
Definition: IterationLogger.cpp:58
This is the main namespace of AutoPas.
Definition: AutoPasDecl.h:32
Struct to collect all sorts of measurements taken during a computeInteractions iteration.
Definition: IterationMeasurements.h:13