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

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

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

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

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:428
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:374
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
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:459
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