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{
186}
bool get_profiling_mode() const
Get status of profiling mode. The method returns true, if the profiling mode is switched 'On'....
Definition kernel.hpp:708
void Stop(OksProfiler::FunctionID, const std::chrono::time_point< std::chrono::steady_clock > &)
Definition profiler.cpp:168

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: