|
CbmRoot
|
#include <CaMonitorData.h>
Public Types | |
| template<typename T> | |
| using | CounterArray = EnumArray<ECounterKey, T> |
| Alias to array, indexed by the counter enumeration. | |
| template<typename T> | |
| using | TimerArray = EnumArray<ETimerKey, T> |
| Alias to array, indexed by the timer enumeration. | |
Public Member Functions | |
| MonitorData ()=default | |
| Default constructor. | |
| MonitorData (const MonitorData &)=default | |
| Copy constructor. | |
| MonitorData (MonitorData &&)=default | |
| Move constructor. | |
| ~MonitorData ()=default | |
| Destructor. | |
| MonitorData & | operator= (const MonitorData &)=default |
| Copy assignment operator. | |
| MonitorData & | operator= (MonitorData &&)=default |
| Move assignment operator. | |
| void | AddMonitorData (const MonitorData &other, bool parallel=false) |
| Adds the other monitor data to this. | |
| int | GetCounterValue (ECounterKey key) const |
| Gets counter value. | |
| int | GetNofCounters () const |
| Gets number of counters. | |
| int | GetNofTimers () const |
| Gets number of timers. | |
| const Timer & | GetTimer (ETimerKey key) const |
| Gets timer. | |
| void | IncrementCounter (ECounterKey key) |
| Increments key counter by 1. | |
| void | IncrementCounter (ECounterKey key, int num) |
| Increments key counter by a number. | |
| void | Reset () |
| Resets all the counters and timers. | |
| void | ResetCounter (ECounterKey key) |
| Resets a particular counter. | |
| void | StartTimer (ETimerKey key) |
| Starts timer. | |
| void | StopTimer (ETimerKey key) |
| Stops timer. | |
Private Member Functions | |
| template<typename Archive> | |
| void | serialize (Archive &ar, const unsigned int) |
Private Attributes | |
| TimerArray< Timer > | faTimers {} |
| Array of timers. | |
| CounterArray< int > | faCounters {} |
| Array of counters. | |
Friends | |
| class | boost::serialization::access |
Monitor data block.
| ECounterKey | A enum class, containing keys for monitorables |
| ETimerKey | A enum class, containing keys for timers |
Definition at line 27 of file CaMonitorData.h.
| using cbm::algo::ca::MonitorData< ECounterKey, ETimerKey >::CounterArray = EnumArray<ECounterKey, T> |
Alias to array, indexed by the counter enumeration.
Definition at line 31 of file CaMonitorData.h.
| using cbm::algo::ca::MonitorData< ECounterKey, ETimerKey >::TimerArray = EnumArray<ETimerKey, T> |
Alias to array, indexed by the timer enumeration.
Definition at line 35 of file CaMonitorData.h.
|
default |
Default constructor.
Referenced by AddMonitorData().
|
default |
Copy constructor.
|
default |
Move constructor.
|
default |
Destructor.
|
inline |
Adds the other monitor data to this.
| other | Reference to the other MonitorData object to add |
| parallel | If the monitors were filled in parallel (See CaTimer::AddTimer) |
Definition at line 118 of file CaMonitorData.h.
References faCounters, faTimers, and MonitorData().
|
inline |
Gets counter value.
| key |
Definition at line 62 of file CaMonitorData.h.
Referenced by cbm::algo::Reco::QueueTrackingMetrics().
|
inline |
Gets number of counters.
Definition at line 65 of file CaMonitorData.h.
|
inline |
Gets number of timers.
Definition at line 68 of file CaMonitorData.h.
|
inline |
Gets timer.
Definition at line 71 of file CaMonitorData.h.
Referenced by cbm::algo::Reco::QueueTrackingMetrics().
|
inline |
Increments key counter by 1.
| key | Counter key |
Definition at line 75 of file CaMonitorData.h.
|
inline |
Increments key counter by a number.
| key | Counter key |
| num | Number to add |
Definition at line 80 of file CaMonitorData.h.
|
default |
Copy assignment operator.
|
default |
Move assignment operator.
|
inline |
Resets all the counters and timers.
Definition at line 132 of file CaMonitorData.h.
References faCounters, and faTimers.
|
inline |
Resets a particular counter.
| key | Counter key |
Definition at line 87 of file CaMonitorData.h.
|
inlineprivate |
Definition at line 100 of file CaMonitorData.h.
|
inline |
|
inline |
|
friend |
Definition at line 98 of file CaMonitorData.h.
|
private |
Array of counters.
Definition at line 107 of file CaMonitorData.h.
Referenced by AddMonitorData(), and Reset().
|
private |
Array of timers.
Definition at line 106 of file CaMonitorData.h.
Referenced by AddMonitorData(), and Reset().