#include <DQMStoreStats.h>
Public Types | |
enum | statsMode { considerAllME = 0, considerOnlyLumiProductME = 1 } |
Public Types inherited from edm::EDAnalyzer | |
typedef EDAnalyzer | ModuleType |
Protected Member Functions | |
void | analyze (const edm::Event &e, const edm::EventSetup &c) |
void | beginJob () |
void | beginLuminosityBlock (const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context) |
void | beginRun (const edm::Run &r, const edm::EventSetup &c) |
void | endJob () |
void | endLuminosityBlock (const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c) |
void | endRun (const edm::Run &r, const edm::EventSetup &c) |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
EDGetToken | consumes (const TypeToGet &id, 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 ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
Private Member Functions | |
void | calcIgProfDump (Folder &) |
int | calcstats (int) |
void | dumpMemoryProfile (void) |
void | print () |
std::pair< unsigned int, unsigned int > | readMemoryEntry (void) 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 &) |
Enumerator | |
---|---|
considerAllME | |
considerOnlyLumiProductME |
Definition at line 297 of file DQMStoreStats.h.
DQMStoreStats::DQMStoreStats | ( | const edm::ParameterSet & | ps | ) |
Definition at line 49 of file DQMStoreStats.cc.
References dumpMemHistory_, dumpToFWJR_, edm::false, edm::ParameterSet::getUntrackedParameter(), parameters_, pathnamematch_, runineventloop_, runonendjob_, runonendlumi_, runonendrun_, startingTime_, statsdepth_, AlCaHLTBitMon_QueryRunRegistry::string, cond::rpcobgas::time, funct::true, and verbose_.
DQMStoreStats::~DQMStoreStats | ( | ) |
Definition at line 78 of file DQMStoreStats.cc.
|
protectedvirtual |
Implements edm::EDAnalyzer.
Definition at line 669 of file DQMStoreStats.cc.
References calcstats(), considerAllME, considerOnlyLumiProductME, dumpMemoryProfile(), memoryHistoryVector_, readMemoryEntry(), and runineventloop_.
|
protectedvirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 627 of file DQMStoreStats.cc.
References dtNoiseDBValidation_cfg::cerr, dbe_, recoMuon::in, isOpenProcFileSuccessful_, cppFunctionSkipper::operator, and procFileName_.
|
protectedvirtual |
|
protectedvirtual |
|
private |
Definition at line 81 of file DQMStoreStats.cc.
References Folder::children(), Folder::CreateIterator(), VIterator< Item >::CurrentItem(), Folder::files(), VIterator< Item >::First(), cuy::ii, VIterator< Item >::IsDone(), Folder::mainrows(), Folder::mainrows_cumulative(), VIterator< Item >::Next(), Folder::parents(), edmStreamStallGrapher::stream, AlCaHLTBitMon_QueryRunRegistry::string, Folder::summary(), and Folder::symbols().
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 164 of file DQMStoreStats.cc.
References DQMStoreStatsSubfolder::AddBinsD(), DQMStoreStatsSubfolder::AddBinsF(), DQMStoreStatsSubfolder::AddBinsS(), calcIgProfDump(), Folder::cd(), considerAllME, considerOnlyLumiProductME, gather_cfg::cout, dbe_, MonitorElement::DQM_KIND_TH1D, MonitorElement::DQM_KIND_TH1F, MonitorElement::DQM_KIND_TH1S, MonitorElement::DQM_KIND_TH2D, MonitorElement::DQM_KIND_TH2F, MonitorElement::DQM_KIND_TH2S, MonitorElement::DQM_KIND_TH3F, MonitorElement::DQM_KIND_TPROFILE, MonitorElement::DQM_KIND_TPROFILE2D, dumpToFWJR_, getEmptyMetric(), DQMStore::getMatchingContents(), edm::Service< T >::isAvailable(), maxbinsglobal_, maxbinssubsys_, alignBH_cfg::mode, nbinsglobal_, nbinssubsys_, cmsHarvester::path, pathnamematch_, edm::JobReport::reportAnalysisFile(), runineventloop_, runonendjob_, runonendlumi_, runonendrun_, AlCaHLTBitMon_QueryRunRegistry::string, DQMStoreStatsSubfolder::subfolderName_, DQMStoreStatsSubsystem::subsystemName_, and Folder::update().
Referenced by analyze(), endJob(), endLuminosityBlock(), and endRun().
|
private |
Definition at line 517 of file DQMStoreStats.cc.
References gather_cfg::cout, dumpMemHistory_, isOpenProcFileSuccessful_, memoryHistoryVector_, download_sqlite_cfg::outputFile, and startingTime_.
Referenced by analyze(), endJob(), endLuminosityBlock(), and endRun().
|
protectedvirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 712 of file DQMStoreStats.cc.
References calcstats(), considerAllME, considerOnlyLumiProductME, dumpMemoryProfile(), and runonendjob_.
|
protectedvirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 686 of file DQMStoreStats.cc.
References calcstats(), considerAllME, considerOnlyLumiProductME, dumpMemoryProfile(), and runonendlumi_.
|
protectedvirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 699 of file DQMStoreStats.cc.
References calcstats(), considerAllME, considerOnlyLumiProductME, dumpMemoryProfile(), and runonendrun_.
|
private |
Definition at line 577 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 595 of file DQMStoreStats.cc.
References recoMuon::in, isOpenProcFileSuccessful_, procFileName_, AlCaHLTBitMon_QueryRunRegistry::string, and cond::rpcobgas::time.
Referenced by analyze().
|
private |
Definition at line 331 of file DQMStoreStats.h.
Referenced by beginJob(), and calcstats().
|
private |
Definition at line 358 of file DQMStoreStats.h.
Referenced by DQMStoreStats(), and dumpMemoryProfile().
|
private |
Definition at line 359 of file DQMStoreStats.h.
Referenced by calcstats(), and DQMStoreStats().
|
private |
Definition at line 351 of file DQMStoreStats.h.
Referenced by beginJob(), dumpMemoryProfile(), and readMemoryEntry().
|
private |
Definition at line 340 of file DQMStoreStats.h.
Referenced by calcstats().
|
private |
Definition at line 342 of file DQMStoreStats.h.
|
private |
Definition at line 343 of file DQMStoreStats.h.
Referenced by print().
|
private |
Definition at line 341 of file DQMStoreStats.h.
Referenced by calcstats(), and print().
|
private |
Definition at line 349 of file DQMStoreStats.h.
Referenced by analyze(), and dumpMemoryProfile().
|
private |
Definition at line 336 of file DQMStoreStats.h.
Referenced by calcstats().
|
private |
Definition at line 337 of file DQMStoreStats.h.
Referenced by calcstats(), and print().
|
private |
Definition at line 338 of file DQMStoreStats.h.
|
private |
Definition at line 339 of file DQMStoreStats.h.
Referenced by print().
|
private |
Definition at line 332 of file DQMStoreStats.h.
Referenced by Mixins._TypedParameterizable::clone(), Types.PSet::clone(), Mixins._TypedParameterizable::copy(), and DQMStoreStats().
|
private |
Definition at line 346 of file DQMStoreStats.h.
Referenced by calcstats(), and DQMStoreStats().
|
private |
Definition at line 352 of file DQMStoreStats.h.
Referenced by beginJob(), and readMemoryEntry().
|
private |
Definition at line 357 of file DQMStoreStats.h.
Referenced by analyze(), calcstats(), and DQMStoreStats().
|
private |
Definition at line 355 of file DQMStoreStats.h.
Referenced by calcstats(), DQMStoreStats(), and endJob().
|
private |
Definition at line 356 of file DQMStoreStats.h.
Referenced by calcstats(), DQMStoreStats(), and endLuminosityBlock().
|
private |
Definition at line 354 of file DQMStoreStats.h.
Referenced by calcstats(), DQMStoreStats(), and endRun().
|
private |
Definition at line 350 of file DQMStoreStats.h.
Referenced by DQMStoreStats(), and dumpMemoryProfile().
|
private |
Definition at line 345 of file DQMStoreStats.h.
Referenced by DQMStoreStats().
|
private |
Definition at line 335 of file DQMStoreStats.h.
Referenced by print().
|
private |
Definition at line 334 of file DQMStoreStats.h.
Referenced by print().
|
private |
Definition at line 347 of file DQMStoreStats.h.
Referenced by DQMStoreStats().