mirror of
https://github.com/NVIDIA/nvbench.git
synced 2026-04-20 14:58:54 +00:00
s/output_multiplex/printer_multiplex/g
This commit is contained in:
@@ -13,8 +13,8 @@ set(srcs
|
||||
markdown_printer.cu
|
||||
named_values.cu
|
||||
option_parser.cu
|
||||
output_multiplex.cu
|
||||
printer_base.cu
|
||||
printer_multiplex.cu
|
||||
runner.cu
|
||||
state.cu
|
||||
string_axis.cu
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <nvbench/output_multiplex.cuh>
|
||||
#include <nvbench/printer_multiplex.cuh>
|
||||
|
||||
#include <iosfwd>
|
||||
#include <memory>
|
||||
@@ -103,7 +103,7 @@ private:
|
||||
std::vector<std::unique_ptr<std::ofstream>> m_ofstream_storage;
|
||||
|
||||
// The main printer to use:
|
||||
nvbench::output_multiplex m_printer;
|
||||
nvbench::printer_multiplex m_printer;
|
||||
|
||||
// Use color on any stdout markdown printers.
|
||||
bool m_color_md_stdout_printer{false};
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
#include <nvbench/output_multiplex.cuh>
|
||||
#include <nvbench/printer_multiplex.cuh>
|
||||
|
||||
#include <iostream>
|
||||
|
||||
namespace nvbench
|
||||
{
|
||||
|
||||
output_multiplex::output_multiplex()
|
||||
printer_multiplex::printer_multiplex()
|
||||
: printer_base(std::cerr) // Nothing should write to this.
|
||||
{}
|
||||
|
||||
void output_multiplex::do_print_device_info()
|
||||
void printer_multiplex::do_print_device_info()
|
||||
{
|
||||
for (auto &format_ptr : m_printers)
|
||||
{
|
||||
@@ -17,7 +17,7 @@ void output_multiplex::do_print_device_info()
|
||||
}
|
||||
}
|
||||
|
||||
void output_multiplex::do_print_log_preamble()
|
||||
void printer_multiplex::do_print_log_preamble()
|
||||
{
|
||||
for (auto &format_ptr : m_printers)
|
||||
{
|
||||
@@ -25,7 +25,7 @@ void output_multiplex::do_print_log_preamble()
|
||||
}
|
||||
}
|
||||
|
||||
void output_multiplex::do_print_log_epilogue()
|
||||
void printer_multiplex::do_print_log_epilogue()
|
||||
{
|
||||
for (auto &format_ptr : m_printers)
|
||||
{
|
||||
@@ -33,7 +33,7 @@ void output_multiplex::do_print_log_epilogue()
|
||||
}
|
||||
}
|
||||
|
||||
void output_multiplex::do_log(nvbench::log_level level, const std::string &str)
|
||||
void printer_multiplex::do_log(nvbench::log_level level, const std::string &str)
|
||||
{
|
||||
for (auto &format_ptr : m_printers)
|
||||
{
|
||||
@@ -41,7 +41,7 @@ void output_multiplex::do_log(nvbench::log_level level, const std::string &str)
|
||||
}
|
||||
}
|
||||
|
||||
void output_multiplex::do_log_run_state(const nvbench::state &exec_state)
|
||||
void printer_multiplex::do_log_run_state(const nvbench::state &exec_state)
|
||||
{
|
||||
for (auto &format_ptr : m_printers)
|
||||
{
|
||||
@@ -49,7 +49,7 @@ void output_multiplex::do_log_run_state(const nvbench::state &exec_state)
|
||||
}
|
||||
}
|
||||
|
||||
void output_multiplex::do_print_benchmark_list(const benchmark_vector &benches)
|
||||
void printer_multiplex::do_print_benchmark_list(const benchmark_vector &benches)
|
||||
{
|
||||
for (auto &format_ptr : m_printers)
|
||||
{
|
||||
@@ -57,7 +57,7 @@ void output_multiplex::do_print_benchmark_list(const benchmark_vector &benches)
|
||||
}
|
||||
}
|
||||
|
||||
void output_multiplex::do_print_benchmark_results(
|
||||
void printer_multiplex::do_print_benchmark_results(
|
||||
const benchmark_vector &benches)
|
||||
{
|
||||
for (auto &format_ptr : m_printers)
|
||||
@@ -11,10 +11,10 @@ namespace nvbench
|
||||
/*!
|
||||
* An nvbench::printer_base that just forwards calls to other `printer_base`s.
|
||||
*/
|
||||
struct output_multiplex : nvbench::printer_base
|
||||
struct printer_multiplex : nvbench::printer_base
|
||||
{
|
||||
|
||||
output_multiplex();
|
||||
printer_multiplex();
|
||||
|
||||
template <typename Format, typename... Ts>
|
||||
Format &emplace(Ts &&...ts)
|
||||
@@ -23,7 +23,7 @@ struct output_multiplex : nvbench::printer_base
|
||||
return static_cast<Format &>(*m_printers.back());
|
||||
}
|
||||
|
||||
[[nodiscard]] std::size_t get_output_count() const
|
||||
[[nodiscard]] std::size_t get_printer_count() const
|
||||
{
|
||||
return m_printers.size();
|
||||
}
|
||||
Reference in New Issue
Block a user