Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-08-13 09:15:44

0001 
0002 // Copyright 2020, Jefferson Science Associates, LLC.
0003 // Subject to the terms in the LICENSE file found in the top-level directory.
0004 
0005 #pragma once
0006 #include <JANA/JApplication.h>
0007 
0008 class JBenchmarker {
0009 
0010     JApplication* m_app;
0011     JLogger m_logger;
0012 
0013     size_t m_min_threads = 1;
0014     size_t m_max_threads = 0;
0015     unsigned m_thread_step = 1;
0016     unsigned m_nsamples = 15;
0017     std::string m_output_dir = "JANA_Test_Results";
0018     std::string m_rates_filename = "rates.dat";
0019     std::string m_samples_filename = "samples.dat";
0020     bool m_copy_script = true;
0021     bool m_include_samples = true;
0022     bool m_use_log_scale = false;
0023 
0024 public:
0025     explicit JBenchmarker(JApplication* app);
0026     ~JBenchmarker();
0027     void RunUntilFinished();
0028 
0029 private:
0030     void copy_to_output_dir(std::string filename);
0031 };
0032 
0033