1 #ifndef EVF_FASTMONITORINGTHREAD 2 #define EVF_FASTMONITORINGTHREAD 136 fastThroughputJ_ = 0;
137 fastAvgLeadTimeJ_ = 0;
138 fastFilesProcessedJ_ = 0;
141 fastMacrostateJ_.
setName(
"Macrostate");
142 fastThroughputJ_.
setName(
"Throughput");
143 fastAvgLeadTimeJ_.
setName(
"AverageLeadTime");
144 fastFilesProcessedJ_.
setName(
"FilesProcessed");
145 fastLockWaitJ_.
setName(
"LockWaitUs");
146 fastLockCountJ_.
setName(
"LockCount");
148 fastPathProcessedJ_ = 0;
149 fastPathProcessedJ_.
setName(
"Processed");
162 for (
unsigned int i = 0;
i < nStreams;
i++) {
165 processed_.push_back(p);
166 streamLumi_.push_back(0);
169 microstateEncoded_.resize(nStreams);
170 ministateEncoded_.resize(nStreams);
171 threadMicrostateEncoded_.resize(nThreads);
172 inputState_.resize(nStreams);
173 for (
unsigned int j = 0;
j < inputState_.size();
j++)
179 if (nThreads <= nStreams)
203 if (!fastMicroStateDefPath.empty())
204 jsonMonitor_->addFastPathDefinition(fastMicroStateDefPath, defGroup,
false);
void registerFastGlobalMonitorable(JsonMonitorable *newMonitorable)
static boost::mutex mutex
jsoncollector::IntJ fastEventsProcessedJ_
void start(void(FastMonitoringService::*fp)(), FastMonitoringService *cp)
unsigned int microstateBins_
void registerStreamMonitorableUIntVecAtomic(std::string const &name, std::vector< AtomicMonUInt * > *inputs, bool NAifZeroUpdates, unsigned int *nBins=nullptr)
jsoncollector::DoubleJ fastThroughputJ_
unsigned int varIndexThrougput_
std::shared_ptr< std::thread > m_thread
unsigned int inputstateBins_
void registerGlobalMonitorable(JsonMonitorable *newMonitorable, bool NAifZeroUpdates, unsigned int *nBins=nullptr)
jsoncollector::IntJ fastMacrostateJ_
void registerVariables(jsoncollector::FastMonitor *fm, unsigned int nStreams, unsigned int nThreads)
std::vector< unsigned int > threadMicrostateEncoded_
virtual void setName(std::string name)
void registerStreamMonitorableUIntVec(std::string const &name, std::vector< unsigned int > *inputs, bool NAifZeroUpdates, unsigned int *nBins=nullptr)
std::unique_ptr< jsoncollector::FastMonitor > jsonMonitor_
jsoncollector::IntJ fastFilesProcessedJ_
jsoncollector::DoubleJ fastAvgLeadTimeJ_
void resetFastMonitor(std::string const µStateDefPath, std::string const &fastMicroStateDefPath)
jsoncollector::DoubleJ fastLockWaitJ_
void commit(std::vector< unsigned int > *streamLumisPtr)
unsigned int AtomicMonUInt
std::vector< unsigned int > microstateEncoded_
jsoncollector::IntJ fastPathProcessedJ_
jsoncollector::IntJ fastLockCountJ_
std::atomic< bool > m_stoprequest
std::vector< jsoncollector::AtomicMonUInt * > processed_
unsigned int macrostateBins_
std::vector< unsigned int > streamLumi_
unsigned int ministateBins_
std::vector< unsigned int > inputState_
std::vector< unsigned int > ministateEncoded_