DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
profiler.hpp
Go to the documentation of this file.
1#ifndef __OKS_PROFILER
2#define __OKS_PROFILER
3
4#include <chrono>
5
6#include "oks/defs.hpp"
7
8namespace dunedaq {
9namespace oks {
10
11class OksKernel;
12
13
15{
16public:
55
56 friend std::ostream&
57 operator<<(std::ostream&, const OksProfiler&);
58
59 const std::chrono::time_point<std::chrono::steady_clock>
61 {
62 return p_start_time_point;
63 }
64
65private:
67
68 void
69 Start(OksProfiler::FunctionID, std::chrono::time_point<std::chrono::steady_clock>&);
70
71 void
72 Stop(OksProfiler::FunctionID, const std::chrono::time_point<std::chrono::steady_clock>&);
73
74 std::chrono::time_point<std::chrono::steady_clock> p_start_time_point;
75
77 unsigned long c_total[(unsigned) OksProfiler::QueryOperatorFrom + 1];
78
79 friend class OksKernel;
80 friend class OksFunctionProfiler;
81};
82
83
85{
86public:
89
90private:
93 std::chrono::time_point<std::chrono::steady_clock> p_start_time_point;
94};
95
96} // namespace oks
97} // namespace dunedaq
98#endif
OksProfiler::FunctionID func_id
Definition profiler.hpp:92
std::chrono::time_point< std::chrono::steady_clock > p_start_time_point
Definition profiler.hpp:93
OksFunctionProfiler(OksProfiler::FunctionID, const OksKernel *)
Definition profiler.cpp:174
Provides interface to the OKS kernel.
Definition kernel.hpp:577
friend std::ostream & operator<<(std::ostream &, const OksProfiler &)
Definition profiler.cpp:85
unsigned long c_total[(unsigned) OksProfiler::QueryOperatorFrom+1]
Definition profiler.hpp:77
std::chrono::time_point< std::chrono::steady_clock > p_start_time_point
Definition profiler.hpp:74
double t_total[(unsigned) OksProfiler::QueryOperatorFrom+1]
Definition profiler.hpp:76
const std::chrono::time_point< std::chrono::steady_clock > start_time_point() const
Definition profiler.hpp:60
void Start(OksProfiler::FunctionID, std::chrono::time_point< std::chrono::steady_clock > &)
Definition profiler.cpp:161
void Stop(OksProfiler::FunctionID, const std::chrono::time_point< std::chrono::steady_clock > &)
Definition profiler.cpp:168
Including Qt Headers.
Definition __init__.py:1