#include <StatisticsReporter.h>
Private Types | |
typedef std::list< std::string > | InfoSpaceItemNames |
Private Member Functions | |
void | addRunInfoQuantitiesToApplicationInfoSpace () |
void | calculateStatistics () |
void | collectInfoSpaceItems () |
void | createMonitoringInfoSpace () |
bool | monitorAction (toolbox::task::WorkLoop *) |
StatisticsReporter & | operator= (StatisticsReporter const &) |
void | putItemsIntoInfoSpace (MonitorCollection::InfoSpaceItems &) |
StatisticsReporter (StatisticsReporter const &) | |
void | updateInfoSpace () |
Private Attributes | |
xdaq::Application * | app_ |
xdata::UnsignedInteger32 | closedFiles_ |
DataSenderMonitorCollection | dataSenderMonCollection_ |
bool | doMonitoring_ |
DQMConsumerMonitorCollection | dqmConsumerMonCollection_ |
DQMEventMonitorCollection | dqmEventMonCollection_ |
EventConsumerMonitorCollection | eventConsumerMonCollection_ |
FilesMonitorCollection | filesMonCollection_ |
FragmentMonitorCollection | fragMonCollection_ |
xdata::InfoSpace * | infoSpace_ |
InfoSpaceItemNames | infoSpaceItemNames_ |
utils::TimePoint_t | lastMonitorAction_ |
utils::Duration_t | monitoringSleepSec_ |
toolbox::task::WorkLoop * | monitorWL_ |
ResourceMonitorCollection | resourceMonCollection_ |
RunMonitorCollection | runMonCollection_ |
StateMachineMonitorCollection | stateMachineMonCollection_ |
xdata::String | stateName_ |
xdata::UnsignedInteger32 | storedEvents_ |
StreamsMonitorCollection | streamsMonCollection_ |
ThroughputMonitorCollection | throughputMonCollection_ |
Singleton to keep track of all monitoring and statistics issues
This class also starts the monitoring workloop to update the statistics for all MonitorCollections.
Definition at line 50 of file StatisticsReporter.h.
|
private |
Definition at line 157 of file StatisticsReporter.h.
|
explicit |
Definition at line 25 of file StatisticsReporter.cc.
References reset().
|
virtual |
Definition at line 86 of file StatisticsReporter.cc.
References doMonitoring_, and monitorWL_.
|
private |
|
virtual |
Update the variables put into the application info space
Definition at line 336 of file StatisticsReporter.cc.
References closedFiles_, alignCSCRings::e, edm::hlt::Exception, filesMonCollection_, infoSpace_, stateMachineMonCollection_, stateName_, storedEvents_, streamsMonCollection_, and stor::MonitorCollection::updateInfoSpaceItems().
|
private |
Definition at line 181 of file StatisticsReporter.cc.
References app_, closedFiles_, stateName_, and storedEvents_.
|
private |
Definition at line 247 of file StatisticsReporter.cc.
References stor::MonitorCollection::calculateStatistics(), dataSenderMonCollection_, dqmConsumerMonCollection_, dqmEventMonCollection_, eventConsumerMonCollection_, filesMonCollection_, fragMonCollection_, stor::utils::getCurrentTime(), cmsPerfSuiteHarvest::now, resourceMonCollection_, runMonCollection_, stateMachineMonCollection_, streamsMonCollection_, and throughputMonCollection_.
Referenced by monitorAction().
|
private |
Definition at line 131 of file StatisticsReporter.cc.
References stor::MonitorCollection::appendInfoSpaceItems(), dataSenderMonCollection_, dqmConsumerMonCollection_, dqmEventMonCollection_, eventConsumerMonCollection_, filesMonCollection_, fragMonCollection_, infoSpaceItemNames_, putItemsIntoInfoSpace(), resourceMonCollection_, runMonCollection_, stateMachineMonCollection_, streamsMonCollection_, and throughputMonCollection_.
|
private |
Definition at line 96 of file StatisticsReporter.cc.
References app_, alignCSCRings::e, edm::hlt::Exception, and infoSpace_.
|
inline |
Definition at line 90 of file StatisticsReporter.h.
References dataSenderMonCollection_.
|
inline |
Definition at line 93 of file StatisticsReporter.h.
References dataSenderMonCollection_.
|
inline |
Definition at line 125 of file StatisticsReporter.h.
References dqmConsumerMonCollection_.
|
inline |
Definition at line 128 of file StatisticsReporter.h.
References dqmConsumerMonCollection_.
|
inline |
Definition at line 97 of file StatisticsReporter.h.
References dqmEventMonCollection_.
|
inline |
Definition at line 100 of file StatisticsReporter.h.
References dqmEventMonCollection_.
|
inline |
Definition at line 118 of file StatisticsReporter.h.
References eventConsumerMonCollection_.
|
inline |
Definition at line 121 of file StatisticsReporter.h.
References eventConsumerMonCollection_.
|
inline |
Definition at line 76 of file StatisticsReporter.h.
References filesMonCollection_.
|
inline |
Definition at line 79 of file StatisticsReporter.h.
References filesMonCollection_.
|
inline |
Definition at line 69 of file StatisticsReporter.h.
References fragMonCollection_.
|
inline |
Definition at line 72 of file StatisticsReporter.h.
References fragMonCollection_.
|
inline |
Definition at line 104 of file StatisticsReporter.h.
References resourceMonCollection_.
|
inline |
Definition at line 107 of file StatisticsReporter.h.
References resourceMonCollection_.
|
inline |
Definition at line 62 of file StatisticsReporter.h.
References runMonCollection_.
|
inline |
Definition at line 65 of file StatisticsReporter.h.
References runMonCollection_.
|
inline |
Definition at line 111 of file StatisticsReporter.h.
References stateMachineMonCollection_.
|
inline |
Definition at line 114 of file StatisticsReporter.h.
References stateMachineMonCollection_.
|
inline |
Definition at line 83 of file StatisticsReporter.h.
References streamsMonCollection_.
|
inline |
Definition at line 86 of file StatisticsReporter.h.
References streamsMonCollection_.
|
inline |
Definition at line 132 of file StatisticsReporter.h.
References throughputMonCollection_.
|
inline |
Definition at line 135 of file StatisticsReporter.h.
References throughputMonCollection_.
|
private |
Definition at line 198 of file StatisticsReporter.cc.
References app_, calculateStatistics(), doMonitoring_, alignCSCRings::e, cppFunctionSkipper::exception, edm::hlt::Exception, stor::utils::getCurrentTime(), lastMonitorAction_, monitoringSleepSec_, stor::utils::sleepUntil(), and updateInfoSpace().
Referenced by startWorkLoop().
|
private |
|
private |
Definition at line 152 of file StatisticsReporter.cc.
References alignCSCRings::e, edm::hlt::Exception, infoSpace_, and infoSpaceItemNames_.
Referenced by collectInfoSpaceItems().
void stor::StatisticsReporter::reset | ( | void | ) |
Reset all monitored quantities
Definition at line 317 of file StatisticsReporter.cc.
References dataSenderMonCollection_, dqmConsumerMonCollection_, dqmEventMonCollection_, eventConsumerMonCollection_, filesMonCollection_, fragMonCollection_, stor::utils::getCurrentTime(), cmsPerfSuiteHarvest::now, stor::MonitorCollection::reset(), resourceMonCollection_, runMonCollection_, streamsMonCollection_, and throughputMonCollection_.
void stor::StatisticsReporter::startWorkLoop | ( | std::string | workloopName | ) |
Create and start the monitoring workloop
Definition at line 54 of file StatisticsReporter.cc.
References app_, doMonitoring_, alignCSCRings::e, edm::hlt::Exception, stor::utils::getCurrentTime(), stor::utils::getIdentifier(), lastMonitorAction_, monitorAction(), monitorWL_, and lumiQueryAPI::msg.
|
private |
Definition at line 265 of file StatisticsReporter.cc.
References dataSenderMonCollection_, dqmConsumerMonCollection_, dqmEventMonCollection_, alignCSCRings::e, eventConsumerMonCollection_, cppFunctionSkipper::exception, edm::hlt::Exception, filesMonCollection_, fragMonCollection_, infoSpace_, infoSpaceItemNames_, resourceMonCollection_, runMonCollection_, stateMachineMonCollection_, streamsMonCollection_, throughputMonCollection_, and stor::MonitorCollection::updateInfoSpaceItems().
Referenced by monitorAction().
|
private |
Definition at line 171 of file StatisticsReporter.h.
Referenced by addRunInfoQuantitiesToApplicationInfoSpace(), createMonitoringInfoSpace(), monitorAction(), and startWorkLoop().
|
private |
Definition at line 199 of file StatisticsReporter.h.
Referenced by actionPerformed(), and addRunInfoQuantitiesToApplicationInfoSpace().
|
private |
Definition at line 179 of file StatisticsReporter.h.
Referenced by calculateStatistics(), collectInfoSpaceItems(), getDataSenderMonitorCollection(), reset(), and updateInfoSpace().
|
private |
Definition at line 187 of file StatisticsReporter.h.
Referenced by monitorAction(), startWorkLoop(), and ~StatisticsReporter().
|
private |
Definition at line 184 of file StatisticsReporter.h.
Referenced by calculateStatistics(), collectInfoSpaceItems(), getDQMConsumerMonitorCollection(), reset(), and updateInfoSpace().
|
private |
Definition at line 180 of file StatisticsReporter.h.
Referenced by calculateStatistics(), collectInfoSpaceItems(), getDQMEventMonitorCollection(), reset(), and updateInfoSpace().
|
private |
Definition at line 183 of file StatisticsReporter.h.
Referenced by calculateStatistics(), collectInfoSpaceItems(), getEventConsumerMonitorCollection(), reset(), and updateInfoSpace().
|
private |
Definition at line 177 of file StatisticsReporter.h.
Referenced by actionPerformed(), calculateStatistics(), collectInfoSpaceItems(), getFilesMonitorCollection(), reset(), and updateInfoSpace().
|
private |
Definition at line 176 of file StatisticsReporter.h.
Referenced by calculateStatistics(), collectInfoSpaceItems(), getFragmentMonitorCollection(), reset(), and updateInfoSpace().
|
private |
Definition at line 190 of file StatisticsReporter.h.
Referenced by actionPerformed(), createMonitoringInfoSpace(), putItemsIntoInfoSpace(), and updateInfoSpace().
|
private |
Definition at line 191 of file StatisticsReporter.h.
Referenced by collectInfoSpaceItems(), putItemsIntoInfoSpace(), and updateInfoSpace().
|
private |
Definition at line 173 of file StatisticsReporter.h.
Referenced by monitorAction(), and startWorkLoop().
|
private |
Definition at line 172 of file StatisticsReporter.h.
Referenced by monitorAction().
|
private |
Definition at line 186 of file StatisticsReporter.h.
Referenced by startWorkLoop(), and ~StatisticsReporter().
|
private |
Definition at line 181 of file StatisticsReporter.h.
Referenced by calculateStatistics(), collectInfoSpaceItems(), getResourceMonitorCollection(), reset(), and updateInfoSpace().
|
private |
Definition at line 175 of file StatisticsReporter.h.
Referenced by calculateStatistics(), collectInfoSpaceItems(), getRunMonitorCollection(), reset(), and updateInfoSpace().
|
private |
Definition at line 182 of file StatisticsReporter.h.
Referenced by actionPerformed(), calculateStatistics(), collectInfoSpaceItems(), getStateMachineMonitorCollection(), and updateInfoSpace().
|
private |
Definition at line 197 of file StatisticsReporter.h.
Referenced by actionPerformed(), and addRunInfoQuantitiesToApplicationInfoSpace().
|
private |
Definition at line 198 of file StatisticsReporter.h.
Referenced by actionPerformed(), and addRunInfoQuantitiesToApplicationInfoSpace().
|
private |
Definition at line 178 of file StatisticsReporter.h.
Referenced by actionPerformed(), calculateStatistics(), collectInfoSpaceItems(), getStreamsMonitorCollection(), reset(), and updateInfoSpace().
|
private |
Definition at line 185 of file StatisticsReporter.h.
Referenced by calculateStatistics(), collectInfoSpaceItems(), getThroughputMonitorCollection(), reset(), and updateInfoSpace().