|
|
Go to the documentation of this file. 1 #ifndef DQMStoreStats_H
2 #define DQMStoreStats_H
97 virtual void First() = 0;
98 virtual void Next() = 0;
99 virtual bool IsDone()
const = 0;
106 template <
class Item>
130 static unsigned int id = 10;
157 if (subfolder->name() ==
name)
179 result += subfolder->getHistos();
185 result += subfolder->getBins();
191 result += subfolder->getEmptyBins();
197 result += subfolder->getMemory();
210 <<
" Memory: " <<
getMemory() <<
" and my children are: " << std::endl;
217 std::stringstream
s(
"");
218 s <<
"INSERT INTO mainrows(id, symbol_id, self_count, cumulative_count, kids, self_calls, total_calls, self_paths, "
223 sql_statement.append(
s.str());
225 subfolder->mainrows(sql_statement);
230 std::stringstream
s(
"");
231 s <<
"INSERT INTO symbols(id, name, filename_id) VALUES (" <<
id_ <<
",\"" <<
folderName_ <<
"\", " << parentid
233 sql_statement.append(
s.str());
235 subfolder->symbols(sql_statement);
240 std::stringstream
s(
"");
241 s <<
"INSERT INTO parents(self_id, child_id, to_child_count, to_child_calls, to_child_paths, pct) VALUES("
244 sql_statement.append(
s.str());
246 subfolder->parents(sql_statement);
251 std::stringstream
s(
"");
252 s <<
"INSERT INTO children(self_id, parent_id, from_parent_count, from_parent_calls, from_parent_paths, pct) "
257 sql_statement.append(
s.str());
259 subfolder->children(sql_statement);
263 std::stringstream
s(
"");
264 s <<
"INSERT INTO mainrows(id, symbol_id, self_count, cumulative_count, kids, self_calls, total_calls, self_paths, "
268 sql_statement.append(
s.str());
272 std::stringstream
s(
"");
273 s <<
"INSERT INTO summary(counter, total_count, total_freq, tick_period) VALUES (\"BINS_LIVE\"," <<
getMemory()
274 <<
"," <<
getBins() <<
", 1);\n";
275 sql_statement.append(
s.str());
279 std::stringstream
s(
"");
280 s <<
"INSERT INTO files(id, name) VALUES(" <<
id_ <<
",\"" <<
folderName_ <<
"\");\n";
281 sql_statement.append(
s.str());
std::pair< unsigned int, unsigned int > readMemoryEntry() const
unsigned int totalEmptyBins_
void dump(std::string indent)
~DQMStoreStats() override
void setFather(Folder *e)
void summary(std::string &sql_statement)
Folder * cd(const std::string &name)
void endRun(const edm::Run &r, const edm::EventSetup &c) override
unsigned int totalHistos_
std::vector< std::pair< time_t, unsigned int > > memoryHistoryVector_
unsigned int totalMemory_
void AddBinsF(unsigned int nBins, unsigned int nEmptyBins)
const std::string & name()
bool IsDone() const override
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c) override
DQMStoreStats(const edm::ParameterSet &)
void files(std::string &sql_statement)
unsigned int totalHistos_
virtual ~Iterator()=default
bool isOpenProcFileSuccessful_
void analyze(const edm::Event &e, const edm::EventSetup &c) override
std::string subfolderName_
unsigned int getEmptyBins()
std::string pathnamematch_
std::string maxbinsmesubsys_
void parents(std::string &sql_statement)
const std::vector< Item > * vector_
void mainrows(std::string &sql_statement)
unsigned int totalMemory_
virtual bool IsDone() const =0
void setId(unsigned int id)
DQMStoreStatsSubsystem()=default
std::string maxbinsmeglobal_
void children(std::string &sql_statement)
void beginRun(const edm::Run &r, const edm::EventSetup &c) override
virtual Item CurrentItem() const =0
void AddBinsS(unsigned int nBins, unsigned int nEmptyBins)
std::stringstream procFileName_
DQMStoreStatsTopLevel()=default
void AddBinsD(unsigned int nBins, unsigned int nEmptyBins)
void symbols(std::string &sql_statement)
void calcIgProfDump(Folder &)
dqm::reco::DQMStore DQMStore
std::string subsystemName_
void mainrows_cumulative(std::string &sql_statement)
VIterator(const std::vector< Item > *aVector)
Item CurrentItem() const override
dqm::legacy::MonitorElement MonitorElement
VIterator< Folder * > CreateIterator()
std::vector< Folder * > subfolders_
~VIterator() override=default
static unsigned int getId()
unsigned int totalEmptyBins_
edm::ParameterSet parameters_
void setLevel(unsigned int value)
void update(unsigned int bins, unsigned int empty, unsigned int memory)