1 #ifndef EVF_FASTMONITORINGTHREAD 2 #define EVF_FASTMONITORINGTHREAD 23 struct ContainableAtomic {
28 m_value.store(iValue, std::memory_order_relaxed);
31 operator T() {
return m_value.load(std::memory_order_relaxed); }
173 unsigned nMaxStreams,
174 unsigned nMaxThreads) {
183 for (
unsigned int i = 0;
i < nMaxSlices;
i++) {
191 for (
unsigned int i = nMaxThreads;
i < nMaxSlices;
i++) {
196 for (
unsigned int i = nMaxStreams;
i < nMaxSlices;
i++) {
226 jsonMonitor_ = std::make_unique<jsoncollector::FastMonitor>(microStateDefPath, defGroup,
false);
227 if (!fastMicroStateDefPath.empty())
228 jsonMonitor_->addFastPathDefinition(fastMicroStateDefPath, defGroup,
false);
void registerFastGlobalMonitorable(JsonMonitorable *newMonitorable)
std::vector< const void * > decoder_
void update(const void *add)
jsoncollector::IntJ fastEventsProcessedJ_
ContainableAtomic(ContainableAtomic< T > const &iOther)
ContainableAtomic(T iValue)
void registerStreamMonitorableUIntVecAtomic(std::string const &name, std::vector< AtomicMonUInt *> *inputs, bool NAifZeroUpdates, unsigned int *nBins=nullptr)
void start(void(FastMonitoringService::*fp)(), FastMonitoringService *cp)
const void * decode(unsigned int index)
std::atomic< FastMonState::Macrostate > macrostate_
void updatePreinit(std::string const &add)
unsigned int microstateBins_
edm::ModuleDescription * dummiesForReserved_
jsoncollector::DoubleJ fastThroughputJ_
unsigned int varIndexThrougput_
std::unordered_map< std::string, int > quickReferencePreinit_
std::shared_ptr< std::thread > m_thread
int encodeString(const std::string *add)
std::vector< unsigned int > tmicrostateEncoded_
unsigned int inputstateBins_
void registerGlobalMonitorable(JsonMonitorable *newMonitorable, bool NAifZeroUpdates, unsigned int *nBins=nullptr)
jsoncollector::IntJ fastMacrostateJ_
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)
void registerVariables(jsoncollector::FastMonitor *fm, unsigned nMaxSlices, unsigned nMaxStreams, unsigned nMaxThreads)
jsoncollector::DoubleJ fastLockWaitJ_
void commit(std::vector< unsigned int > *streamLumisPtr)
unsigned int AtomicMonUInt
std::vector< unsigned int > microstateEncoded_
constexpr int nReservedModules
jsoncollector::IntJ fastPathProcessedJ_
void updateReserved(const void *add)
std::vector< FastMonEncoding > encPath_
void fillReserved(const void *add, unsigned int i)
void add(std::map< std::string, TH1 *> &h, TH1 *hist)
jsoncollector::IntJ fastLockCountJ_
std::atomic< bool > m_stoprequest
FastMonEncoding encModule_
std::vector< jsoncollector::AtomicMonUInt * > processed_
FastMonEncoding(unsigned int res)
int encode(const void *add) const
unsigned int macrostateBins_
std::vector< unsigned int > streamLumi_
std::vector< unsigned int > inputState_
void completeReservedWithDummies()
std::unordered_map< const void *, int > quickReference_
def cp(fromDir, toDir, listOfFiles, overwrite=False, smallList=False)
ContainableAtomic< T > & operator=(T iValue)