#include <BenchmarkRecorder.h>
Definition at line 18 of file BenchmarkRecorder.h.
◆ BenchmarkRecorderTree() [1/3]
podio::benchmark::BenchmarkRecorderTree::BenchmarkRecorderTree |
( |
| ) |
|
|
delete |
◆ BenchmarkRecorderTree() [2/3]
◆ BenchmarkRecorderTree() [3/3]
podio::benchmark::BenchmarkRecorderTree::BenchmarkRecorderTree |
( |
TFile * |
recFile, |
|
|
const std::string & |
name, |
|
|
const std::vector< std::string > & |
steps |
|
) |
| |
|
inline |
Definition at line 26 of file BenchmarkRecorder.h.
26 :
27 m_stepNames(steps), m_stepTimes(steps.size()) {
28 recFile->cd();
29 m_recordTree = new TTree(name.c_str(), "time recording tree");
30 m_recordTree->SetDirectory(recFile);
31
32 for (size_t i = 0; i < m_stepNames.size(); ++i) {
33 m_recordTree->Branch(m_stepNames[i].c_str(), &m_stepTimes[i]);
34 }
35 }
◆ Fill()
void podio::benchmark::BenchmarkRecorderTree::Fill |
( |
| ) |
|
|
inline |
◆ operator=()
◆ recordTime()
template<typename TimingResolution = std::chrono::nanoseconds>
void podio::benchmark::BenchmarkRecorderTree::recordTime |
( |
const std::string & |
stepName, |
|
|
const ClockT::duration |
time |
|
) |
| |
|
inline |
Definition at line 38 of file BenchmarkRecorder.h.
38 {
39 const auto it = std::find(m_stepNames.cbegin(), m_stepNames.cend(), stepName);
40 const auto index = std::distance(m_stepNames.cbegin(), it);
41 m_stepTimes[index] = std::chrono::duration_cast<TimingResolution>(time).count();
42 }
Referenced by podio::TimedReader< WrappedReader >::endOfEvent().
◆ Write()
void podio::benchmark::BenchmarkRecorderTree::Write |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file: