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 84 of file profiler.hpp.

Constructor & Destructor Documentation

◆ OksFunctionProfiler()

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

Definition at line 174 of file profiler.cpp.

174 :
175 kernel (k),
176 func_id (fid)
177{
178 if(k && k->get_profiling_mode())
180}
OksProfiler::FunctionID func_id
Definition profiler.hpp:92
std::chrono::time_point< std::chrono::steady_clock > p_start_time_point
Definition profiler.hpp:93
OksProfiler * GetOksProfiler() const
Definition kernel.hpp:614
void Start(OksProfiler::FunctionID, std::chrono::time_point< std::chrono::steady_clock > &)
Definition profiler.cpp:161

◆ ~OksFunctionProfiler()

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

Definition at line 182 of file profiler.cpp.

183{
184 if(kernel && kernel->get_profiling_mode())
185 kernel->GetOksProfiler()->Stop(func_id, p_start_time_point);
186}

Member Data Documentation

◆ func_id

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

Definition at line 92 of file profiler.hpp.

◆ kernel

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

Definition at line 91 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 93 of file profiler.hpp.


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