File indexing completed on 2026-07-26 08:22:13
0001
0002
0003
0004
0005
0006
0007
0008
0009 #include "traccc/options/performance.hpp"
0010
0011 #include "traccc/examples/utils/printable.hpp"
0012
0013
0014 #include <format>
0015
0016 namespace traccc::opts {
0017
0018 performance::performance() : interface("Performance Measurement Options") {
0019 m_desc.add_options()("check-performance",
0020 boost::program_options::bool_switch(&run),
0021 "Run performance checks");
0022 }
0023
0024 std::unique_ptr<configuration_printable> performance::as_printable() const {
0025 auto cat = std::make_unique<configuration_category>(m_description);
0026
0027 cat->add_child(std::make_unique<configuration_kv_pair>(
0028 "Run performance checks", std::format("{}", run)));
0029
0030 return cat;
0031 }
0032 }