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 OksKernel * kernel
OksProfiler::FunctionID func_id
std::chrono::time_point< std::chrono::steady_clock > p_start_time_point

Detailed Description

Definition at line 80 of file profiler.hpp.

Constructor & Destructor Documentation

◆ OksFunctionProfiler()

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

Definition at line 192 of file profiler.cpp.

193 : kernel(k)
194 , func_id(fid)
195{
196 if (k && k->get_profiling_mode())
197 k->GetOksProfiler()->Start(fid, p_start_time_point);
198}
OksProfiler::FunctionID func_id
Definition profiler.hpp:88
std::chrono::time_point< std::chrono::steady_clock > p_start_time_point
Definition profiler.hpp:89

◆ ~OksFunctionProfiler()

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

Definition at line 200 of file profiler.cpp.

201{
204}
bool get_profiling_mode() const
Get status of profiling mode. The method returns true, if the profiling mode is switched 'On'....
Definition kernel.hpp:739
OksProfiler * GetOksProfiler() const
Definition kernel.hpp:655
void Stop(OksProfiler::FunctionID, const std::chrono::time_point< std::chrono::steady_clock > &)
Definition profiler.cpp:186

Member Data Documentation

◆ func_id

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

Definition at line 88 of file profiler.hpp.

◆ kernel

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

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


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