blob: d4d7ba74a84527739d727de2a89b0fdbc72f00a7 [file] [log] [blame]
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SRC_PERFORMANCE_CPUPERF_PRINT_PRINTER_CONFIG_H_
#define SRC_PERFORMANCE_CPUPERF_PRINT_PRINTER_CONFIG_H_
#include <string>
#include "raw_printer.h"
namespace cpuperf {
// Various kinds of output format.
enum class OutputFormat {
// Raw format. Prints data for each instruction.
kRaw,
};
struct PrinterConfig {
RawPrinter::Config ToRawPrinterConfig() const;
OutputFormat output_format = OutputFormat::kRaw;
// If "" then output goes to the default location (typically stdout).
std::string output_file_name;
};
} // namespace cpuperf
#endif // SRC_PERFORMANCE_CPUPERF_PRINT_PRINTER_CONFIG_H_