1 #ifndef EvFFastMonitoringService_H
2 #define EvFFastMonitoringService_H 1
14 #include "boost/filesystem.hpp"
24 #include <unordered_map>
74 std::unordered_map<const void *, int>::const_iterator it=
quickReference_.find(add);
163 void reportLockWait(
unsigned int ls,
double waitTime,
unsigned int lockCount);
179 void doSnapshot(
const unsigned int ls,
const bool isGlobalEOL);
187 monInit_.exchange(
true,std::memory_order_acquire);
203 std::vector<std::string> CSVv;
int encode(const void *add)
void prePathEvent(edm::StreamContext const &, edm::PathContext const &)
FastMonitoringThread::InputState inputState_
Encoding(unsigned int res)
std::string pathLegendFileJson_
unsigned int getEventsProcessedForLumi(unsigned int lumi, bool *abortFlag=0)
std::string pathLegendFile_
void postSourceEvent(edm::StreamID)
std::string makePathLegendaJson()
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 &)
void fillReserved(const void *add, unsigned int i)
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_
void setInState(FastMonitoringThread::InputState inputState)
std::vector< unsigned int > eventCountForPathInit_
unsigned int snapCounter_
std::vector< std::atomic< bool > * > streamCounterUpdating_
bool shouldWriteFiles(unsigned int lumi, unsigned int *proc=0)
unsigned int nOutputModules_
void setInStateSup(FastMonitoringThread::InputState inputState)
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_
FastMonitoringThread::InputState inputSupervisorState_
void preGlobalEarlyTermination(edm::GlobalContext const &, edm::TerminationOrigin)
std::string inputLegendFileJson_
jsoncollector::IntJ fastMacrostateJ_
unsigned int fastMonIntervals_
std::vector< bool > pathNamesReady_
std::atomic< bool > monInit_
std::string makeModuleLegendaJson()
void preModuleBeginJob(edm::ModuleDescription const &)
static const std::string inputStateNames[FastMonitoringThread::inCOUNT]
std::string makeInputLegendaJson()
void updateReserved(const void *add)
unsigned int lumiFromSource_
std::vector< std::atomic< bool > * > collectedPathList_
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)
std::unique_ptr< jsoncollector::FastMonitor > jsonMonitor_
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::string moduleLegendFileJson_
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 &)
std::vector< std::string > fastPathList_
void postStreamBeginLumi(edm::StreamContext const &)
void completeReservedWithDummies()
void setInputSource(FedRawDataInputSource *inputSource)
void preSourceEvent(edm::StreamID)
void postStreamEndLumi(edm::StreamContext const &)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
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_
FedRawDataInputSource * inputSource_
FastMonitoringThread::Macrostate macrostate_
std::vector< double > leadTimes_
void preBeginJob(edm::PathsAndConsumesOfModulesBase const &, edm::ProcessContext const &pc)
void stoppedLookingForFile(unsigned int lumi)
void setMicroState(MicroStateService::Microstate)
boost::filesystem::path workingDirectory_
std::atomic< bool > m_stoprequest
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)
void update(const void *add)
std::vector< Encoding > encPath_
tuple size
Write out results.
edm::ModuleDescription * dummiesForReserved_
FastMonitoringService(const edm::ParameterSet &, edm::ActivityRegistry &)
void reportLockWait(unsigned int ls, double waitTime, unsigned int lockCount)
std::vector< unsigned int > exceptionInLS_