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 351 of file FastTimerService.h.

Constructor & Destructor Documentation

◆ PlotsPerPath()

FastTimerService::PlotsPerPath::PlotsPerPath ( )
default

Member Function Documentation

◆ book()

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 557 of file FastTimerService.cc.

563  {
564  const std::string basedir = booker.pwd();
565  // booker.setCurrentFolder(basedir + "/path " + path.name_);
566  booker.setCurrentFolder(basedir + "/" + prefixDir + path.name_);
567 
568  total_.book(booker, "path", path.name_, ranges, lumisections, byls);
569 
570  unsigned int bins = path.modules_and_dependencies_.size();
571  module_counter_ = booker.book1DD("module_counter", "module counter", bins + 1, -0.5, bins + 0.5);
572  module_counter_->setYTitle("events");
574  booker.book1DD("module_time_thread_total", "total module time (cpu)", bins, -0.5, bins - 0.5);
575  module_time_thread_total_->setYTitle("processing time [ms]");
577  booker.book1DD("module_time_real_total", "total module time (real)", bins, -0.5, bins - 0.5);
578  module_time_real_total_->setYTitle("processing time [ms]");
581  booker.book1DD("module_allocated_total", "total allocated memory", bins, -0.5, bins - 0.5);
582  module_allocated_total_->setYTitle("memory [kB]");
584  booker.book1DD("module_deallocated_total", "total deallocated memory", bins, -0.5, bins - 0.5);
585  module_deallocated_total_->setYTitle("memory [kB]");
586  }
587  for (unsigned int bin : boost::irange(0u, bins)) {
588  auto const& module = job[path.modules_and_dependencies_[bin]];
589  std::string const& label =
590  module.scheduled_ ? module.module_.moduleLabel() : module.module_.moduleLabel() + " (unscheduled)";
597  }
598  }
599  module_counter_->setBinLabel(bins + 1, "");
600 
601  booker.setCurrentFolder(basedir);
602 }

References makeHippyCampaign::basedir, newFWLiteAna::bin, trigObjTnPSource_cfi::bins, dqm::implementation::IBooker::book1DD(), memory_usage::is_available(), label, castor_dqm_sourceclient_file_cfg::path, dqm::implementation::NavigatorBase::pwd(), diffTwoXMLs::ranges, dqm::implementation::NavigatorBase::setCurrentFolder(), dqm::impl::MonitorElement::setYTitle(), and AlCaHLTBitMon_QueryRunRegistry::string.

◆ fill()

void FastTimerService::PlotsPerPath::fill ( ProcessCallGraph::PathType const &  description,
ResourcesPerJob const &  data,
ResourcesPerPath const &  path,
unsigned int  lumisection 
)

Definition at line 604 of file FastTimerService.cc.

607  {
608  // fill the total path time
609  total_.fill(path.total, ls);
610 
611  // fill the modules that actually ran and the total time spent in each od them
612  for (unsigned int i = 0; i < path.last; ++i) {
613  auto const& module = data.modules[description.modules_and_dependencies_[i]];
614  if (module_counter_)
616 
618  module_time_thread_total_->Fill(i, ms(module.total.time_thread));
619 
621  module_time_real_total_->Fill(i, ms(module.total.time_real));
622 
624  module_allocated_total_->Fill(i, kB(module.total.allocated));
625 
627  module_deallocated_total_->Fill(i, kB(module.total.deallocated));
628  }
629  if (module_counter_ and path.status)
630  module_counter_->Fill(path.last);
631 }

References data, edmLumisInFiles::description, mps_fire::i, eostools::ls(), and castor_dqm_sourceclient_file_cfg::path.

Member Data Documentation

◆ module_allocated_total_

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

Definition at line 380 of file FastTimerService.h.

◆ module_counter_

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

Definition at line 376 of file FastTimerService.h.

◆ module_deallocated_total_

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

Definition at line 381 of file FastTimerService.h.

◆ module_time_real_total_

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

Definition at line 379 of file FastTimerService.h.

◆ module_time_thread_total_

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

Definition at line 378 of file FastTimerService.h.

◆ total_

PlotsPerElement FastTimerService::PlotsPerPath::total_
private

Definition at line 368 of file FastTimerService.h.

eostools.ls
def ls(path, rec=False)
Definition: eostools.py:349
diffTwoXMLs.ranges
string ranges
Definition: diffTwoXMLs.py:79
mps_fire.i
i
Definition: mps_fire.py:355
edmLumisInFiles.description
description
Definition: edmLumisInFiles.py:11
dqm::implementation::NavigatorBase::setCurrentFolder
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:32
dqm::impl::MonitorElement::Fill
void Fill(long long x)
Definition: MonitorElement.h:290
makeHippyCampaign.basedir
basedir
Definition: makeHippyCampaign.py:14
dqm::implementation::NavigatorBase::pwd
virtual std::string pwd()
Definition: DQMStore.cc:16
FastTimerService::PlotsPerPath::module_deallocated_total_
dqm::reco::MonitorElement * module_deallocated_total_
Definition: FastTimerService.h:381
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
FastTimerService::PlotsPerPath::module_allocated_total_
dqm::reco::MonitorElement * module_allocated_total_
Definition: FastTimerService.h:380
dqm::implementation::IBooker::book1DD
MonitorElement * book1DD(TString const &name, TString const &title, int nchX, double lowX, double highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:155
FastTimerService::PlotsPerElement::book
void book(dqm::reco::DQMStore::IBooker &, std::string const &name, std::string const &title, PlotRanges const &ranges, unsigned int lumisections, bool byls)
Definition: FastTimerService.cc:372
dqm::impl::MonitorElement::setYTitle
virtual void setYTitle(std::string const &title)
Definition: MonitorElement.cc:866
dqm::impl::MonitorElement::setBinLabel
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)
Definition: MonitorElement.cc:771
module
Definition: vlib.h:198
FastTimerService::PlotsPerPath::total_
PlotsPerElement total_
Definition: FastTimerService.h:368
newFWLiteAna.bin
bin
Definition: newFWLiteAna.py:161
FastTimerService::PlotsPerPath::module_time_real_total_
dqm::reco::MonitorElement * module_time_real_total_
Definition: FastTimerService.h:379
FastTimerService::PlotsPerPath::module_time_thread_total_
dqm::reco::MonitorElement * module_time_thread_total_
Definition: FastTimerService.h:378
FastTimerService::PlotsPerPath::module_counter_
dqm::reco::MonitorElement * module_counter_
Definition: FastTimerService.h:376
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
FastTimerService::PlotsPerElement::fill
void fill(Resources const &, unsigned int lumisection)
Definition: FastTimerService.cc:457
memory_usage::is_available
static bool is_available()
Definition: memory_usage.cc:84
castor_dqm_sourceclient_file_cfg.path
path
Definition: castor_dqm_sourceclient_file_cfg.py:37
trigObjTnPSource_cfi.bins
bins
Definition: trigObjTnPSource_cfi.py:20
label
const char * label
Definition: PFTauDecayModeTools.cc:11