blob: 5b8500d920ac51856fd596bb8d12a8661c7951ac [file] [log] [blame]
// Copyright 2020 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <base/files/file_path.h>
#include <base/optional.h>
#include <base/values.h>
#include "proto/benchmark_config.pb.h"
namespace ml_benchmark {
// In case of failure reports error to LOG(ERROR) and returns base::nullopt.
base::Optional<base::Value> BenchmarkResultsToJson(
const chrome::ml_benchmark::BenchmarkResults& results);
void WriteResultsToPath(const chrome::ml_benchmark::BenchmarkResults& results,
const base::FilePath& output_path);
} // namespace ml_benchmark