CMS 3D CMS Logo

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

Public Member Functions

void book (DQMStore::ConcurrentBooker &, 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 ()
 

Private Attributes

ConcurrentMonitorElement module_allocated_total_
 
ConcurrentMonitorElement module_counter_
 
ConcurrentMonitorElement module_deallocated_total_
 
ConcurrentMonitorElement module_time_real_total_
 
ConcurrentMonitorElement module_time_thread_total_
 
PlotsPerElement total_
 

Detailed Description

Definition at line 343 of file FastTimerService.h.

Constructor & Destructor Documentation

FastTimerService::PlotsPerPath::PlotsPerPath ( )
default

Member Function Documentation

void FastTimerService::PlotsPerPath::book ( DQMStore::ConcurrentBooker 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.

References stringResolutionProvider_cfi::bin, create_public_pileup_plots::bins, DQMStore::ConcurrentBooker::book1DD(), memory_usage::is_available(), diffTwoXMLs::label, ProcessCallGraph::PathType::modules_and_dependencies_, ProcessCallGraph::PathType::name_, DQMStore::IBooker::pwd(), DQMStore::IBooker::setCurrentFolder(), ConcurrentMonitorElement::setYTitle(), and AlCaHLTBitMon_QueryRunRegistry::string.

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(
574  "module_counter",
575  "module counter",
576  bins + 1, -0.5, bins + 0.5);
577  module_counter_.setYTitle("events");
579  "module_time_thread_total",
580  "total module time (cpu)",
581  bins, -0.5, bins - 0.5);
582  module_time_thread_total_.setYTitle("processing time [ms]");
584  "module_time_real_total",
585  "total module time (real)",
586  bins, -0.5, bins - 0.5);
587  module_time_real_total_.setYTitle("processing time [ms]");
589  {
591  "module_allocated_total",
592  "total allocated memory",
593  bins, -0.5, bins - 0.5);
594  module_allocated_total_.setYTitle("memory [kB]");
596  "module_deallocated_total",
597  "total deallocated memory",
598  bins, -0.5, bins - 0.5);
599  module_deallocated_total_.setYTitle("memory [kB]");
600  }
601  for (unsigned int bin: boost::irange(0u, bins)) {
602  auto const& module = job[path.modules_and_dependencies_[bin]];
603  std::string const& label = module.scheduled_ ? module.module_.moduleLabel() : module.module_.moduleLabel() + " (unscheduled)";
604  module_counter_ .setBinLabel(bin + 1, label.c_str());
605  module_time_thread_total_.setBinLabel(bin + 1, label.c_str());
606  module_time_real_total_ .setBinLabel(bin + 1, label.c_str());
608  {
609  module_allocated_total_ .setBinLabel(bin + 1, label.c_str());
610  module_deallocated_total_.setBinLabel(bin + 1, label.c_str());
611  }
612  }
613  module_counter_.setBinLabel(bins + 1, "");
614 
615  booker.setCurrentFolder(basedir);
616 }
ConcurrentMonitorElement book1DD(Args &&...args)
Definition: DQMStore.h:237
void book(DQMStore::ConcurrentBooker &, std::string const &name, std::string const &title, PlotRanges const &ranges, unsigned int lumisections, bool byls)
void setYTitle(std::string const &title)
ConcurrentMonitorElement module_time_thread_total_
ConcurrentMonitorElement module_deallocated_total_
ConcurrentMonitorElement module_counter_
bin
set the eta bin as selection string.
string ranges
Definition: diffTwoXMLs.py:78
static bool is_available()
Definition: memory_usage.cc:65
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:279
ConcurrentMonitorElement module_allocated_total_
void setBinLabel(int bin, std::string const &label, int axis=1)
const std::string & pwd()
Definition: DQMStore.cc:287
ConcurrentMonitorElement module_time_real_total_
Definition: vlib.h:208
void FastTimerService::PlotsPerPath::fill ( ProcessCallGraph::PathType const &  description,
ResourcesPerJob const &  data,
ResourcesPerPath const &  path,
unsigned int  lumisection 
)

Definition at line 619 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.

620 {
621  // fill the total path time
622  total_.fill(path.total, ls);
623 
624  // fill the modules that actually ran and the total time spent in each od them
625  for (unsigned int i = 0; i < path.last; ++i) {
626  auto const& module = data.modules[description.modules_and_dependencies_[i]];
627  if (module_counter_)
629 
631  module_time_thread_total_.fill(i, ms(module.total.time_thread));
632 
634  module_time_real_total_.fill(i, ms(module.total.time_real));
635 
637  module_allocated_total_.fill(i, kB(module.total.allocated));
638 
640  module_deallocated_total_.fill(i, kB(module.total.deallocated));
641  }
642  if (module_counter_ and path.status)
643  module_counter_.fill(path.last);
644 }
void fill(Resources const &, unsigned int lumisection)
ConcurrentMonitorElement module_time_thread_total_
ConcurrentMonitorElement module_deallocated_total_
ConcurrentMonitorElement module_counter_
def ls(path, rec=False)
Definition: eostools.py:348
ConcurrentMonitorElement module_allocated_total_
susybsm::MuonSegment ms
Definition: classes.h:31
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
void fill(Args &&...args) const
ConcurrentMonitorElement module_time_real_total_
Definition: vlib.h:208

Member Data Documentation

ConcurrentMonitorElement FastTimerService::PlotsPerPath::module_allocated_total_
private

Definition at line 363 of file FastTimerService.h.

ConcurrentMonitorElement FastTimerService::PlotsPerPath::module_counter_
private

Definition at line 359 of file FastTimerService.h.

ConcurrentMonitorElement FastTimerService::PlotsPerPath::module_deallocated_total_
private

Definition at line 364 of file FastTimerService.h.

ConcurrentMonitorElement FastTimerService::PlotsPerPath::module_time_real_total_
private

Definition at line 362 of file FastTimerService.h.

ConcurrentMonitorElement FastTimerService::PlotsPerPath::module_time_thread_total_
private

Definition at line 361 of file FastTimerService.h.

PlotsPerElement FastTimerService::PlotsPerPath::total_
private

Definition at line 351 of file FastTimerService.h.