artdaq_core
v1_07_08
|
A collection of MonitoredQuantity instances describing low-level statistics of the artdaq system. More...
#include <artdaq-core/Core/StatisticsCollection.hh>
Public Member Functions | |
virtual | ~StatisticsCollection () noexcept |
StatisticsCollection Destructor. | |
void | addMonitoredQuantity (const std::string &name, MonitoredQuantityPtr mqPtr) |
Registers a new MonitoredQuantity to be tracked by the StatisticsCollection. More... | |
MonitoredQuantityPtr | getMonitoredQuantity (const std::string &name) const |
Lookup and return a MonitoredQuantity from the StatisticsCollection. More... | |
void | reset () |
Reset all MonitoredQuantity object in this StatisticsCollection. | |
void | requestStop () |
Stops the statistics calculation thread. | |
void | run () |
Start the background thread that performs MonitoredQuantity statistics calculation. | |
Static Public Member Functions | |
static StatisticsCollection & | getInstance () |
Returns the singleton instance of the StatisticsCollection. More... | |
A collection of MonitoredQuantity instances describing low-level statistics of the artdaq system.
A collection of MonitoredQuantity instances describing low-level statistics of the artdaq system. Periodically (default 1s) calculates statistics for each MonitoredQuantity instance.
Definition at line 23 of file StatisticsCollection.hh.
void artdaq::StatisticsCollection::addMonitoredQuantity | ( | const std::string & | name, |
MonitoredQuantityPtr | mqPtr | ||
) |
Registers a new MonitoredQuantity to be tracked by the StatisticsCollection.
name | Name of the MonitoredQuantity (used for lookup) |
mqPtr | shared_ptr to MonitoredQuantity |
Definition at line 25 of file StatisticsCollection.cc.
|
static |
Returns the singleton instance of the StatisticsCollection.
Definition at line 5 of file StatisticsCollection.cc.
MonitoredQuantityPtr artdaq::StatisticsCollection::getMonitoredQuantity | ( | const std::string & | name | ) | const |
Lookup and return a MonitoredQuantity from the StatisticsCollection.
name | Name of the MonitoredQuantity |
Definition at line 33 of file StatisticsCollection.cc.