DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dunedaq::oks::OksFunctionProfiler Class Reference

#include <profiler.hpp>

Collaboration diagram for dunedaq::oks::OksFunctionProfiler:
[legend]

Public Member Functions

 OksFunctionProfiler (OksProfiler::FunctionID, const OksKernel *)
 ~OksFunctionProfiler ()

Private Attributes

const OksKernelkernel
OksProfiler::FunctionID func_id
std::chrono::time_point< std::chrono::steady_clock > p_start_time_point

Detailed Description

Definition at line 89 of file profiler.hpp.

Constructor & Destructor Documentation

◆ OksFunctionProfiler()

dunedaq::oks::OksFunctionProfiler::OksFunctionProfiler ( OksProfiler::FunctionID fid,
const OksKernel * k )

Definition at line 179 of file profiler.cpp.

179 :
180 kernel (k),
181 func_id (fid)
182{
183 if(k && k->get_profiling_mode())
185}
OksProfiler::FunctionID func_id
Definition profiler.hpp:97
std::chrono::time_point< std::chrono::steady_clock > p_start_time_point
Definition profiler.hpp:98
OksProfiler * GetOksProfiler() const
Definition kernel.hpp:619
void Start(OksProfiler::FunctionID, std::chrono::time_point< std::chrono::steady_clock > &)
Definition profiler.cpp:166

◆ ~OksFunctionProfiler()

dunedaq::oks::OksFunctionProfiler::~OksFunctionProfiler ( )

Definition at line 187 of file profiler.cpp.

188{
189 if(kernel && kernel->get_profiling_mode())
190 kernel->GetOksProfiler()->Stop(func_id, p_start_time_point);
191}

Member Data Documentation

◆ func_id

OksProfiler::FunctionID dunedaq::oks::OksFunctionProfiler::func_id
private

Definition at line 97 of file profiler.hpp.

◆ kernel

const OksKernel* dunedaq::oks::OksFunctionProfiler::kernel
private

Definition at line 96 of file profiler.hpp.

◆ p_start_time_point

std::chrono::time_point<std::chrono::steady_clock> dunedaq::oks::OksFunctionProfiler::p_start_time_point
private

Definition at line 98 of file profiler.hpp.


The documentation for this class was generated from the following files: