1 #ifndef EvFFastMonitoringService_H
2 #define EvFFastMonitoringService_H 1
14 #include "boost/filesystem.hpp"
24 #include <unordered_map>
68 std::unordered_map<const void *, int>::const_iterator it=
quickReference_.find(add);
166 void doSnapshot(
const unsigned int ls,
const bool isGlobalEOL);
174 monInit_.exchange(
true,std::memory_order_acquire);
int encode(const void *add)
void prePathEvent(edm::StreamContext const &, edm::PathContext const &)
Encoding(unsigned int res)
unsigned int getEventsProcessedForLumi(unsigned int lumi, bool *abortFlag=0)
std::string pathLegendFile_
void postSourceEvent(edm::StreamID)
void startedLookingForFile()
void setExceptionDetected(unsigned int ls)
boost::filesystem::path runDirectory_
void preallocate(edm::service::SystemBounds const &)
std::map< unsigned int, timeval > lumiStartTime_
void preGlobalBeginLumi(edm::GlobalContext const &)
std::string getRunDirName() const
void postGlobalEndLumi(edm::GlobalContext const &)
TrainProcessor *const proc
void postEvent(edm::StreamContext const &)
void accumulateFileSize(unsigned int lumi, unsigned long fileSize)
std::map< unsigned int, unsigned long > accuSize_
FastMonitoringThread fmt_
std::vector< unsigned int > eventCountForPathInit_
unsigned int snapCounter_
std::vector< std::atomic< bool > * > streamCounterUpdating_
bool shouldWriteFiles(unsigned int lumi, unsigned int *proc=0)
void add(const std::vector< const T * > &source, std::vector< const T * > &dest)
void doStreamEOLSnapshot(const unsigned int ls, const unsigned int streamID)
std::map< unsigned int, unsigned int > filesProcessedDuringLumi_
void preGlobalEndLumi(edm::GlobalContext const &)
unsigned int lastGlobalLumi_
void preGlobalEarlyTermination(edm::GlobalContext const &, edm::TerminationOrigin)
unsigned int fastMonIntervals_
void reportEventsThisLumiInSource(unsigned int lumi, unsigned int events)
std::vector< bool > pathNamesReady_
std::atomic< bool > monInit_
void preModuleBeginJob(edm::ModuleDescription const &)
void updateReserved(void *add)
unsigned int lumiFromSource_
std::vector< std::atomic< bool > * > collectedPathList_
tuple path
else: Piece not in the list, fine.
std::queue< unsigned int > lastGlobalLumisClosed_
std::string microstateDefPath_
void preStreamEndLumi(edm::StreamContext const &)
std::map< unsigned int, double > avgLeadTime_
std::string moduleLegendFile_
void doSnapshot(const unsigned int ls, const bool isGlobalEOL)
void preStreamEarlyTermination(edm::StreamContext const &, edm::TerminationOrigin)
static const std::string nopath_
std::vector< const void * > threadMicrostate_
std::string fastMicrostateDefPath_
std::unordered_map< const void *, int > quickReference_
bool emptyLumisectionMode_
std::map< unsigned int, std::pair< double, unsigned int > > lockStatsDuringLumi_
std::vector< unsigned long > firstEventId_
std::vector< const void * > decoder_
static const std::string macroStateNames[FastMonitoringThread::MCOUNT]
void postModuleEvent(edm::StreamContext const &, edm::ModuleCallingContext const &)
void postStreamBeginLumi(edm::StreamContext const &)
void completeReservedWithDummies()
void preSourceEvent(edm::StreamID)
void postStreamEndLumi(edm::StreamContext const &)
std::vector< const void * > microstate_
std::map< unsigned int, std::pair< unsigned int, bool > > processedEventsPerLumi_
void preStreamBeginLumi(edm::StreamContext const &)
std::atomic< unsigned long > totalEventsProcessed_
FastMonitoringThread::Macrostate macrostate_
std::vector< double > leadTimes_
void stoppedLookingForFile(unsigned int lumi)
void setMicroState(MicroStateService::Microstate)
std::string makePathLegenda()
boost::filesystem::path workingDirectory_
std::atomic< bool > m_stoprequest
std::map< unsigned int, unsigned int > sourceEventsReport_
std::unique_ptr< FastMonitor > jsonMonitor_
void postGlobalBeginRun(edm::GlobalContext const &)
void preEvent(edm::StreamContext const &)
bool isGlobalLumiTransition_
void preSourceEarlyTermination(edm::TerminationOrigin)
bool getAbortFlagForLumi(unsigned int lumi)
void preModuleEvent(edm::StreamContext const &, edm::ModuleCallingContext const &)
std::vector< const void * > ministate_
const void * decode(unsigned int index)
std::vector< Encoding > encPath_
edm::ModuleDescription * dummiesForReserved_
FastMonitoringService(const edm::ParameterSet &, edm::ActivityRegistry &)
void reportLockWait(unsigned int ls, double waitTime, unsigned int lockCount)
std::vector< unsigned int > exceptionInLS_
void fillReserved(void *add, unsigned int i)
std::string makeModuleLegenda()