Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-07-26 08:22:13

0001 /** TRACCC library, part of the ACTS project (R&D line)
0002  *
0003  * (c) 2022-2025 CERN for the benefit of the ACTS project
0004  *
0005  * Mozilla Public License Version 2.0
0006  */
0007 
0008 // Local include(s).
0009 #include "traccc/options/performance.hpp"
0010 
0011 #include "traccc/examples/utils/printable.hpp"
0012 
0013 // System include(s).
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 }  // namespace traccc::opts