Skip to content

File reporter.h

File List > benchmark > reporter > reporter.h

Go to the documentation of this file

#pragma once

#include "benchmark/benchmark.h"
#include "result.h"

namespace Argos {

class BenchmarkReporter : public benchmark::BenchmarkReporter {
private:
  BenchmarkResult value;

  benchmark::ConsoleReporter console_reporter;

public:
  bool ReportContext(const Context &context) override;
  void ReportRuns(const std::vector<Run> &report) override;
  void Finalize() override;

  const BenchmarkResultMetadata &metadata() const;
  const std::vector<BenchmarkResultLine> &results() const;
  const BenchmarkResult &result() const;
};

} // namespace Argos