#include <DQMStoreStats.h>
Public Types | |
enum | statsMode { considerAllME = 0, considerOnlyLumiProductME = 1 } |
Public Types inherited from edm::EDAnalyzer | |
typedef EDAnalyzer | ModuleType |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Protected Member Functions | |
void | analyze (const edm::Event &e, const edm::EventSetup &c) override |
void | beginJob () override |
void | beginRun (const edm::Run &r, const edm::EventSetup &c) override |
void | endJob () override |
void | endLuminosityBlock (const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c) override |
void | endRun (const edm::Run &r, const edm::EventSetup &c) override |
Protected Member Functions inherited from edm::EDConsumerBase | |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes () |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
Private Member Functions | |
void | calcIgProfDump (Folder &) |
int | calcstats (int) |
void | dumpMemoryProfile () |
void | print () |
std::pair< unsigned int, unsigned int > | readMemoryEntry () const |
Private Attributes | |
DQMStore * | dbe_ |
bool | dumpMemHistory_ |
bool | dumpToFWJR_ |
bool | isOpenProcFileSuccessful_ |
int | maxbinsglobal_ |
std::string | maxbinsmeglobal_ |
std::string | maxbinsmesubsys_ |
int | maxbinssubsys_ |
std::vector< std::pair< time_t, unsigned int > > | memoryHistoryVector_ |
int | nbinsglobal_ |
int | nbinssubsys_ |
int | nmeglobal_ |
int | nmesubsys_ |
edm::ParameterSet | parameters_ |
std::string | pathnamematch_ |
std::stringstream | procFileName_ |
bool | runineventloop_ |
bool | runonendjob_ |
bool | runonendlumi_ |
bool | runonendrun_ |
time_t | startingTime_ |
int | statsdepth_ |
std::string | subfolder_ |
std::string | subsystem_ |
int | verbose_ |
Additional Inherited Members | |
Static Public Member Functions inherited from edm::EDAnalyzer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &) |
static bool | wantsGlobalLuminosityBlocks () |
static bool | wantsGlobalRuns () |
static bool | wantsStreamLuminosityBlocks () |
static bool | wantsStreamRuns () |
DQMStoreStats::DQMStoreStats | ( | const edm::ParameterSet & | ps | ) |
Definition at line 47 of file DQMStoreStats.cc.
References dumpMemHistory_, dumpToFWJR_, edm::ParameterSet::getUntrackedParameter(), parameters_, pathnamematch_, runineventloop_, runonendjob_, runonendlumi_, runonendrun_, startingTime_, statsdepth_, AlCaHLTBitMon_QueryRunRegistry::string, ntuplemaker::time, and verbose_.
|
overridedefault |
|
overrideprotectedvirtual |
Implements edm::EDAnalyzer.
Definition at line 684 of file DQMStoreStats.cc.
References calcstats(), considerAllME, considerOnlyLumiProductME, dumpMemoryProfile(), memoryHistoryVector_, readMemoryEntry(), and runineventloop_.
|
overrideprotectedvirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 655 of file DQMStoreStats.cc.
References beam_dqm_sourceclient-live_cfg::cerr, dbe_, recoMuon::in, isOpenProcFileSuccessful_, and procFileName_.
|
overrideprotectedvirtual |
|
private |
Definition at line 77 of file DQMStoreStats.cc.
References Folder::children(), VIterator< Item >::CurrentItem(), VIterator< Item >::First(), cuy::ii, VIterator< Item >::IsDone(), Folder::mainrows(), VIterator< Item >::Next(), Folder::parents(), cms::cuda::stream, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by calcstats().
|
private |
do the stats here and produce output;
mode is coded in DQMStoreStats::statMode enum (select subsets of ME, e.g. those with getLumiFlag() == true)
Definition at line 159 of file DQMStoreStats.cc.
References DQMStoreStatsSubfolder::AddBinsD(), DQMStoreStatsSubfolder::AddBinsF(), DQMStoreStatsSubfolder::AddBinsS(), calcIgProfDump(), Folder::cd(), considerAllME, considerOnlyLumiProductME, gather_cfg::cout, dbe_, dumpToFWJR_, dqmMemoryStats::float, dqm::implementation::IGetter::getAllContents(), getEmptyMetric(), edm::Service< T >::isAvailable(), maxbinsglobal_, maxbinssubsys_, ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, seedmultiplicitymonitor_newtracking_cfi::nBins, nbinsglobal_, nbinssubsys_, castor_dqm_sourceclient_file_cfg::path, pathnamematch_, edm::JobReport::reportAnalysisFile(), runineventloop_, runonendjob_, runonendlumi_, runonendrun_, AlCaHLTBitMon_QueryRunRegistry::string, DQMStoreStatsSubfolder::subfolderName_, DQMStoreStatsSubsystem::subsystemName_, MonitorElementData::TH1D, MonitorElementData::TH1F, MonitorElementData::TH1S, MonitorElementData::TH2D, MonitorElementData::TH2F, MonitorElementData::TH2S, MonitorElementData::TH3F, MonitorElementData::TPROFILE, MonitorElementData::TPROFILE2D, and Folder::update().
Referenced by analyze(), endJob(), endLuminosityBlock(), and endRun().
|
private |
Definition at line 559 of file DQMStoreStats.cc.
References gather_cfg::cout, dumpMemHistory_, isOpenProcFileSuccessful_, memoryHistoryVector_, download_sqlite_cfg::outputFile, and startingTime_.
Referenced by analyze(), endJob(), endLuminosityBlock(), and endRun().
|
overrideprotectedvirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 720 of file DQMStoreStats.cc.
References calcstats(), considerAllME, considerOnlyLumiProductME, dumpMemoryProfile(), and runonendjob_.
|
overrideprotectedvirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 698 of file DQMStoreStats.cc.
References calcstats(), considerAllME, considerOnlyLumiProductME, dumpMemoryProfile(), and runonendlumi_.
|
overrideprotectedvirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 709 of file DQMStoreStats.cc.
References calcstats(), considerAllME, considerOnlyLumiProductME, dumpMemoryProfile(), and runonendrun_.
|
private |
Definition at line 614 of file DQMStoreStats.cc.
References gather_cfg::cout, maxbinsmesubsys_, maxbinssubsys_, nbinssubsys_, nmesubsys_, subfolder_, and subsystem_.
|
private |
read virtual memory size from /proc/<pid>/status file
Definition at line 628 of file DQMStoreStats.cc.
References recoMuon::in, isOpenProcFileSuccessful_, procFileName_, AlCaHLTBitMon_QueryRunRegistry::string, and ntuplemaker::time.
Referenced by analyze().
|
private |
Definition at line 332 of file DQMStoreStats.h.
Referenced by beginJob(), and calcstats().
|
private |
Definition at line 359 of file DQMStoreStats.h.
Referenced by DQMStoreStats(), and dumpMemoryProfile().
|
private |
Definition at line 360 of file DQMStoreStats.h.
Referenced by calcstats(), and DQMStoreStats().
|
private |
Definition at line 352 of file DQMStoreStats.h.
Referenced by beginJob(), dumpMemoryProfile(), and readMemoryEntry().
|
private |
Definition at line 341 of file DQMStoreStats.h.
Referenced by calcstats().
|
private |
Definition at line 343 of file DQMStoreStats.h.
|
private |
Definition at line 344 of file DQMStoreStats.h.
Referenced by print().
|
private |
Definition at line 342 of file DQMStoreStats.h.
Referenced by calcstats(), and print().
|
private |
Definition at line 350 of file DQMStoreStats.h.
Referenced by analyze(), and dumpMemoryProfile().
|
private |
Definition at line 337 of file DQMStoreStats.h.
Referenced by calcstats().
|
private |
Definition at line 338 of file DQMStoreStats.h.
Referenced by calcstats(), and print().
|
private |
Definition at line 339 of file DQMStoreStats.h.
|
private |
Definition at line 340 of file DQMStoreStats.h.
Referenced by print().
|
private |
Definition at line 333 of file DQMStoreStats.h.
Referenced by Mixins._TypedParameterizable::clone(), Types.PSet::clone(), Types.EDAlias::clone(), Mixins._TypedParameterizable::copy(), and DQMStoreStats().
|
private |
Definition at line 347 of file DQMStoreStats.h.
Referenced by calcstats(), and DQMStoreStats().
|
private |
Definition at line 353 of file DQMStoreStats.h.
Referenced by beginJob(), and readMemoryEntry().
|
private |
Definition at line 358 of file DQMStoreStats.h.
Referenced by analyze(), calcstats(), and DQMStoreStats().
|
private |
Definition at line 356 of file DQMStoreStats.h.
Referenced by calcstats(), DQMStoreStats(), and endJob().
|
private |
Definition at line 357 of file DQMStoreStats.h.
Referenced by calcstats(), DQMStoreStats(), and endLuminosityBlock().
|
private |
Definition at line 355 of file DQMStoreStats.h.
Referenced by calcstats(), DQMStoreStats(), and endRun().
|
private |
Definition at line 351 of file DQMStoreStats.h.
Referenced by DQMStoreStats(), and dumpMemoryProfile().
|
private |
Definition at line 346 of file DQMStoreStats.h.
Referenced by DQMStoreStats().
|
private |
Definition at line 336 of file DQMStoreStats.h.
Referenced by print().
|
private |
Definition at line 335 of file DQMStoreStats.h.
Referenced by print().
|
private |
Definition at line 348 of file DQMStoreStats.h.
Referenced by DQMStoreStats().