AutoPas  3.0.0
Loading...
Searching...
No Matches
FLOPLogger.h
Go to the documentation of this file.
1
7#pragma once
8
9#include <spdlog/async.h>
10#include <spdlog/fmt/bundled/ranges.h>
11#include <spdlog/sinks/basic_file_sink.h>
12#include <spdlog/sinks/ostream_sink.h>
13#include <spdlog/sinks/stdout_color_sinks.h>
14#include <spdlog/spdlog.h>
15
16namespace autopas {
17
31 public:
36 explicit FLOPLogger(const std::string &outputSuffix = "");
37
42
52 void logIteration(size_t iteration, size_t numFLOPs, double hitRate);
53
54 private:
55 std::string _loggerName;
56};
57
58} // namespace autopas
Helper to log FLOP count and HitRate for AutoPas::iteratePairwise() calls with the functors in the mo...
Definition: FLOPLogger.h:30
void logIteration(size_t iteration, size_t numFLOPs, double hitRate)
Log the given arguments and the internal buffer to the csv file.
Definition: FLOPLogger.cpp:47
~FLOPLogger()
Destructor drops the logger from the spd registry.
Definition: FLOPLogger.cpp:41
This is the main namespace of AutoPas.
Definition: AutoPasDecl.h:32