#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 | |
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 | 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 () |
Enumerator | |
---|---|
considerAllME | |
considerOnlyLumiProductME |
Definition at line 299 of file DQMStoreStats.h.
DQMStoreStats::DQMStoreStats | ( | const edm::ParameterSet & | ps | ) |
Definition at line 49 of file DQMStoreStats.cc.
References dumpMemHistory_, dumpToFWJR_, funct::false, edm::ParameterSet::getUntrackedParameter(), parameters_, pathnamematch_, runineventloop_, runonendjob_, runonendlumi_, runonendrun_, startingTime_, statsdepth_, AlCaHLTBitMon_QueryRunRegistry::string, ntuplemaker::time, funct::true, verbose_, and ~DQMStoreStats().
|
overridedefault |
Referenced by DQMStoreStats().
|
overrideprotected |
Definition at line 658 of file DQMStoreStats.cc.
References calcstats(), considerAllME, considerOnlyLumiProductME, dumpMemoryProfile(), memoryHistoryVector_, readMemoryEntry(), and runineventloop_.
|
overrideprotectedvirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 625 of file DQMStoreStats.cc.
References MessageLogger_cfi::cerr, dbe_, recoMuon::in, isOpenProcFileSuccessful_, Utilities::operator, and procFileName_.
|
overrideprotected |
Definition at line 652 of file DQMStoreStats.cc.
|
private |
Definition at line 80 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(), 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 163 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_, objects.autophobj::float, getEmptyMetric(), edm::Service< T >::isAvailable(), maxbinsglobal_, maxbinssubsys_, ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, nbinsglobal_, nbinssubsys_, callgraph::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 515 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 701 of file DQMStoreStats.cc.
References calcstats(), considerAllME, considerOnlyLumiProductME, dumpMemoryProfile(), and runonendjob_.
|
overrideprotected |
Definition at line 675 of file DQMStoreStats.cc.
References calcstats(), considerAllME, considerOnlyLumiProductME, dumpMemoryProfile(), and runonendlumi_.
|
overrideprotected |
Definition at line 688 of file DQMStoreStats.cc.
References calcstats(), considerAllME, considerOnlyLumiProductME, dumpMemoryProfile(), and runonendrun_.
|
private |
Definition at line 575 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 593 of file DQMStoreStats.cc.
References recoMuon::in, isOpenProcFileSuccessful_, procFileName_, AlCaHLTBitMon_QueryRunRegistry::string, and ntuplemaker::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().