CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
FastTimerService::PlotsPerPath Class Reference

Public Member Functions

void book (dqm::reco::DQMStore::IBooker &, std::string const &, ProcessCallGraph const &, ProcessCallGraph::PathType const &, PlotRanges const &ranges, unsigned int lumisections, bool byls)
 
void fill (ProcessCallGraph::PathType const &, ResourcesPerJob const &, ResourcesPerPath const &, unsigned int lumisection)
 
 PlotsPerPath ()=default
 

Private Attributes

dqm::reco::MonitorElementmodule_allocated_total_
 
dqm::reco::MonitorElementmodule_counter_
 
dqm::reco::MonitorElementmodule_deallocated_total_
 
dqm::reco::MonitorElementmodule_time_real_total_
 
dqm::reco::MonitorElementmodule_time_thread_total_
 
PlotsPerElement total_
 

Detailed Description

Definition at line 338 of file FastTimerService.h.

Constructor & Destructor Documentation

FastTimerService::PlotsPerPath::PlotsPerPath ( )
default

Member Function Documentation

void FastTimerService::PlotsPerPath::book ( dqm::reco::DQMStore::IBooker booker,
std::string const &  prefixDir,
ProcessCallGraph const &  job,
ProcessCallGraph::PathType const &  path,
PlotRanges const &  ranges,
unsigned int  lumisections,
bool  byls 
)

Definition at line 519 of file FastTimerService.cc.

References makeHippyCampaign::basedir, newFWLiteAna::bin, trigObjTnPSource_cfi::bins, dqm::dqmstoreimpl::DQMStore::IBooker::book1DD(), memory_usage::is_available(), label, ProcessCallGraph::PathType::modules_and_dependencies_, ProcessCallGraph::PathType::name_, dqm::dqmstoreimpl::DQMStore::IBooker::pwd(), dqm::dqmstoreimpl::DQMStore::IBooker::setCurrentFolder(), dqm::impl::MonitorElement::setYTitle(), and AlCaHLTBitMon_QueryRunRegistry::string.

525  {
526  const std::string basedir = booker.pwd();
527  // booker.setCurrentFolder(basedir + "/path " + path.name_);
528  booker.setCurrentFolder(basedir + "/" + prefixDir + path.name_);
529 
530  total_.book(booker, "path", path.name_, ranges, lumisections, byls);
531 
532  unsigned int bins = path.modules_and_dependencies_.size();
533  module_counter_ = booker.book1DD("module_counter", "module counter", bins + 1, -0.5, bins + 0.5);
534  module_counter_->setYTitle("events");
536  booker.book1DD("module_time_thread_total", "total module time (cpu)", bins, -0.5, bins - 0.5);
537  module_time_thread_total_->setYTitle("processing time [ms]");
539  booker.book1DD("module_time_real_total", "total module time (real)", bins, -0.5, bins - 0.5);
540  module_time_real_total_->setYTitle("processing time [ms]");
543  booker.book1DD("module_allocated_total", "total allocated memory", bins, -0.5, bins - 0.5);
544  module_allocated_total_->setYTitle("memory [kB]");
546  booker.book1DD("module_deallocated_total", "total deallocated memory", bins, -0.5, bins - 0.5);
547  module_deallocated_total_->setYTitle("memory [kB]");
548  }
549  for (unsigned int bin : boost::irange(0u, bins)) {
550  auto const& module = job[path.modules_and_dependencies_[bin]];
551  std::string const& label =
552  module.scheduled_ ? module.module_.moduleLabel() : module.module_.moduleLabel() + " (unscheduled)";
553  module_counter_->setBinLabel(bin + 1, label);
559  }
560  }
561  module_counter_->setBinLabel(bins + 1, "");
562 
563  booker.setCurrentFolder(basedir);
564 }
dqm::reco::MonitorElement * module_deallocated_total_
void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:418
MonitorElement * book1DD(TString const &name, TString const &title, int nchX, double lowX, double highX)
Definition: DQMStore.cc:257
char const * label
dqm::reco::MonitorElement * module_time_thread_total_
dqm::reco::MonitorElement * module_time_real_total_
virtual void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
string ranges
Definition: diffTwoXMLs.py:79
void book(dqm::reco::DQMStore::IBooker &, std::string const &name, std::string const &title, PlotRanges const &ranges, unsigned int lumisections, bool byls)
static bool is_available()
Definition: memory_usage.cc:60
virtual void setYTitle(std::string const &title)
dqm::reco::MonitorElement * module_allocated_total_
dqm::reco::MonitorElement * module_counter_
Definition: vlib.h:198
void FastTimerService::PlotsPerPath::fill ( ProcessCallGraph::PathType const &  description,
ResourcesPerJob const &  data,
ResourcesPerPath const &  path,
unsigned int  lumisection 
)

Definition at line 566 of file FastTimerService.cc.

References mps_fire::i, FastTimerService::ResourcesPerPath::last, FastTimerService::ResourcesPerJob::modules, ProcessCallGraph::PathType::modules_and_dependencies_, AnalysisDataFormats_SUSYBSMObjects::ms, FastTimerService::ResourcesPerPath::status, and FastTimerService::ResourcesPerPath::total.

569  {
570  // fill the total path time
571  total_.fill(path.total, ls);
572 
573  // fill the modules that actually ran and the total time spent in each od them
574  for (unsigned int i = 0; i < path.last; ++i) {
575  auto const& module = data.modules[description.modules_and_dependencies_[i]];
576  if (module_counter_)
578 
580  module_time_thread_total_->Fill(i, ms(module.total.time_thread));
581 
583  module_time_real_total_->Fill(i, ms(module.total.time_real));
584 
586  module_allocated_total_->Fill(i, kB(module.total.allocated));
587 
589  module_deallocated_total_->Fill(i, kB(module.total.deallocated));
590  }
591  if (module_counter_ and path.status)
592  module_counter_->Fill(path.last);
593 }
void fill(Resources const &, unsigned int lumisection)
dqm::reco::MonitorElement * module_deallocated_total_
void Fill(long long x)
dqm::reco::MonitorElement * module_time_thread_total_
dqm::reco::MonitorElement * module_time_real_total_
def ls(path, rec=False)
Definition: eostools.py:349
susybsm::MuonSegment ms
Definition: classes.h:31
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
dqm::reco::MonitorElement * module_allocated_total_
dqm::reco::MonitorElement * module_counter_
Definition: vlib.h:198

Member Data Documentation

dqm::reco::MonitorElement* FastTimerService::PlotsPerPath::module_allocated_total_
private

Definition at line 367 of file FastTimerService.h.

dqm::reco::MonitorElement* FastTimerService::PlotsPerPath::module_counter_
private

Definition at line 363 of file FastTimerService.h.

dqm::reco::MonitorElement* FastTimerService::PlotsPerPath::module_deallocated_total_
private

Definition at line 368 of file FastTimerService.h.

dqm::reco::MonitorElement* FastTimerService::PlotsPerPath::module_time_real_total_
private

Definition at line 366 of file FastTimerService.h.

dqm::reco::MonitorElement* FastTimerService::PlotsPerPath::module_time_thread_total_
private

Definition at line 365 of file FastTimerService.h.

PlotsPerElement FastTimerService::PlotsPerPath::total_
private

Definition at line 355 of file FastTimerService.h.