4 #ifndef EventFilter_StorageManager_ThroughputMonitorCollection_h
5 #define EventFilter_StorageManager_ThroughputMonitorCollection_h
7 #include <boost/shared_ptr.hpp>
8 #include <boost/thread/mutex.hpp>
10 #include "toolbox/mem/Pool.h"
11 #include "xdata/Double.h"
12 #include "xdata/UnsignedInteger32.h"
38 const unsigned int& throuphputAveragingCycles
279 std::vector<double>& idleTimes,
280 std::vector<utils::Duration_t>& durations,
281 int firstIndex,
int lastIndex
357 #endif // EventFilter_StorageManager_ThroughputMonitorCollection_h
xdata::Double fragmentQueueRate_
xdata::Double dqmQueueBandwidth_
MonitoredQuantity memoryUsedInFragmentStoreMQ_
xdata::Double writtenEventsRate_
const MonitoredQuantity & getFragmentStoreEntryCountMQ() const
const MonitoredQuantity & getFragmentProcessorIdleMQ() const
MonitoredQuantity diskWriteSizeMQ_
void setFragmentStoreSize(unsigned int size)
xdata::UnsignedInteger32 entriesInDQMQueue_
ThroughputMonitorCollection(const utils::Duration_t &updateInterval, const unsigned int &throuphputAveragingCycles)
Snapshot operator+=(const Snapshot &)
double entriesInStreamQueue
xdata::Double memoryUsedInDQMQueue_
const MonitoredQuantity & getPoppedDQMEventSizeMQ() const
MonitoredQuantity & getFragmentStoreMemoryUsedMQ()
xdata::Double streamQueueBandwidth_
static boost::mutex mutex
MonitoredQuantity fragmentProcessorIdleTimeMQ_
StreamQueuePtr streamQueue_
MonitoredQuantity & getPoolUsageMQ()
const MonitoredQuantity & getDiskWriteMQ() const
MonitoredQuantity poolUsageMQ_
const MonitoredQuantity & getDQMEventProcessorIdleMQ() const
xdata::Double averagingTime_
double entriesInFragmentQueue
MonitoredQuantity & getPoppedDQMEventSizeMQ()
MonitoredQuantity poppedDQMEventSizeMQ_
xdata::Double memoryUsedInStreamQueue_
const MonitoredQuantity & getFragmentQueueMemoryUsedMQ() const
double streamQueueBandwidth
xdata::UnsignedInteger32 entriesInStreamQueue_
MonitoredQuantity memoryUsedInDQMEventQueueMQ_
const MonitoredQuantity & getDQMEventQueueEntryCountMQ() const
MonitoredQuantity & getDQMEventQueueEntryCountMQ()
const MonitoredQuantity & getPoppedFragmentSizeMQ() const
MonitoredQuantity poppedEventSizeMQ_
MonitoredQuantity & getPoppedFragmentSizeMQ()
const MonitoredQuantity & getFragmentStoreMemoryUsedMQ() const
xdata::Double streamQueueRate_
void setFragmentQueue(FragmentQueuePtr fragmentQueue)
MonitoredQuantity entriesInFragmentQueueMQ_
boost::shared_ptr< DQMEventQueue > DQMEventQueuePtr
double fragmentQueueBandwidth
MonitoredQuantity & getFragmentQueueMemoryUsedMQ()
int smoothIdleTimesHelper(std::vector< double > &idleTimes, std::vector< utils::Duration_t > &durations, int firstIndex, int lastIndex) const
double fragmentStoreMemoryUsed
void addPoppedFragmentSample(double dataSize)
virtual void do_appendInfoSpaceItems(InfoSpaceItems &)
double dqmEventProcessorBusy
MonitoredQuantity & getDQMEventProcessorIdleMQ()
void setFragmentStoreMemoryUsed(size_t memoryUsed)
virtual void do_calculateStatistics()
boost::shared_ptr< FragmentQueue > FragmentQueuePtr
boost::posix_time::time_duration Duration_t
MonitoredQuantity & getDiskWriteMQ()
double fragmentProcessorBusy
xdata::Double dqmQueueRate_
toolbox::mem::Pool * pool_
double writtenEventsBandwidth
MonitoredQuantity & getFragmentQueueEntryCountMQ()
virtual void do_updateInfoSpaceItems()
MonitoredQuantity & getFragmentStoreEntryCountMQ()
const MonitoredQuantity & getPoppedEventSizeMQ() const
double calcBusyPercentage(MonitoredQuantity::Stats &, const int &idx) const
void do_getStats(Stats &, const unsigned int sampleCount) const
const unsigned int binCount_
MonitoredQuantity poppedFragmentSizeMQ_
void setMemoryPoolPointer(toolbox::mem::Pool *)
void addPoppedDQMEventSample(double dataSize)
utils::Duration_t duration
boost::shared_ptr< StreamQueue > StreamQueuePtr
void addDiskWriteSample(double dataSize)
boost::posix_time::ptime TimePoint_t
const MonitoredQuantity & getStreamQueueEntryCountMQ() const
double memoryUsedInFragmentQueue
MonitoredQuantity & getPoppedEventSizeMQ()
xdata::UnsignedInteger32 fragmentStoreSize_
void getRateAndBandwidth(MonitoredQuantity::Stats &stats, const int &idx, double &rate, double &bandwidth) const
void getStats(Stats &) const
utils::TimePoint_t absoluteTime
xdata::UnsignedInteger32 entriesInFragmentQueue_
MonitoredQuantity diskWriterIdleTimeMQ_
const MonitoredQuantity & getFragmentQueueEntryCountMQ() const
void addDiskWriterIdleSample(utils::Duration_t idleTime)
xdata::UnsignedInteger32 poolUsage_
xdata::Double fragmentProcessorBusy_
MonitoredQuantity entriesInDQMEventQueueMQ_
xdata::Double diskWriterBusy_
DQMEventQueuePtr dqmEventQueue_
MonitoredQuantity dqmEventProcessorIdleTimeMQ_
double memoryUsedInDQMQueue
MonitoredQuantity memoryUsedInStreamQueueMQ_
MonitoredQuantity & getDQMEventQueueMemoryUsedMQ()
std::vector< std::pair< std::string, xdata::Serializable * > > InfoSpaceItems
Snapshot operator=(const Snapshot &)
MonitoredQuantity & getStreamQueueEntryCountMQ()
xdata::Double memoryUsedInFragmentQueue_
ThroughputMonitorCollection & operator=(ThroughputMonitorCollection const &)
void addPoppedEventSample(double dataSize)
const MonitoredQuantity & getDQMEventQueueMemoryUsedMQ() const
void smoothIdleTimes(MonitoredQuantity::Stats &) const
void setDQMEventQueue(DQMEventQueuePtr dqmEventQueue)
const MonitoredQuantity & getDiskWriterIdleMQ() const
void setStreamQueue(StreamQueuePtr streamQueue)
unsigned int currentFragmentStoreSize_
xdata::Double fragmentStoreMemoryUsed_
void addFragmentProcessorIdleSample(utils::Duration_t idleTime)
double currentFragmentStoreMemoryUsedMB_
MonitoredQuantity entriesInFragmentStoreMQ_
Snapshot operator/=(const double &)
MonitoredQuantity memoryUsedInFragmentQueueMQ_
MonitoredQuantity & getStreamQueueMemoryUsedMQ()
const MonitoredQuantity & getPoolUsageMQ() const
const MonitoredQuantity & getStreamQueueMemoryUsedMQ() const
xdata::Double writtenEventsBandwidth_
MonitoredQuantity & getFragmentProcessorIdleMQ()
unsigned int throuphputAveragingCycles_
void addDQMEventProcessorIdleSample(utils::Duration_t idleTime)
FragmentQueuePtr fragmentQueue_
xdata::Double fragmentQueueBandwidth_
xdata::Double dqmEventProcessorBusy_
double memoryUsedInStreamQueue
tuple size
Write out results.
MonitoredQuantity entriesInStreamQueueMQ_
std::vector< Snapshot > Snapshots
MonitoredQuantity & getDiskWriterIdleMQ()