CMS 3D CMS Logo

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

Public Member Functions

void book (DQMStore::ConcurrentBooker &, ProcessCallGraph const &, std::vector< GroupOfModules > const &, PlotRanges const &event_ranges, PlotRanges const &path_ranges, PlotRanges const &module_ranges, unsigned int lumisections, bool bymodule, bool bypath, bool byls, bool transitions)
 
void fill (ProcessCallGraph const &, ResourcesPerJob const &, unsigned int ls)
 
void fill_lumi (AtomicResources const &, unsigned int lumisection)
 
void fill_run (AtomicResources const &)
 
 PlotsPerJob (ProcessCallGraph const &job, std::vector< GroupOfModules > const &groups)
 

Private Attributes

PlotsPerElement event_
 
PlotsPerElement event_ex_
 
std::vector< PlotsPerElementhighlight_
 
PlotsPerElement lumi_
 
std::vector< PlotsPerElementmodules_
 
PlotsPerElement overhead_
 
std::vector< PlotsPerProcessprocesses_
 
PlotsPerElement run_
 

Detailed Description

Definition at line 383 of file FastTimerService.h.

Constructor & Destructor Documentation

FastTimerService::PlotsPerJob::PlotsPerJob ( ProcessCallGraph const &  job,
std::vector< GroupOfModules > const &  groups 
)

Definition at line 708 of file FastTimerService.cc.

References LaserDQM_cfg::process, ProcessCallGraph::processes(), and processes_.

708  :
709  event_(),
710  event_ex_(),
711  overhead_(),
712  highlight_(groups.size()),
713  modules_(job.size()),
714  processes_()
715 {
716  processes_.reserve(job.processes().size());
717  for (auto const& process: job.processes())
718  processes_.emplace_back(process);
719 }
std::vector< PlotsPerElement > highlight_
std::vector< PlotsPerElement > modules_
std::vector< PlotsPerProcess > processes_

Member Function Documentation

void FastTimerService::PlotsPerJob::book ( DQMStore::ConcurrentBooker booker,
ProcessCallGraph const &  job,
std::vector< GroupOfModules > const &  groups,
PlotRanges const &  event_ranges,
PlotRanges const &  path_ranges,
PlotRanges const &  module_ranges,
unsigned int  lumisections,
bool  bymodule,
bool  bypath,
bool  byls,
bool  transitions 
)

Definition at line 722 of file FastTimerService.cc.

References FastTimerService::PlotsPerElement::book(), event_, event_ex_, edmIntegrityCheck::group, highlight_, triggerObjects_cff::id, edm::ModuleDescription::id(), diffTwoXMLs::label, lumi_, ProcessCallGraph::module(), customisers::module_name, edm::ModuleDescription::moduleLabel(), modules_, overhead_, sysUtil::pid, LaserDQM_cfg::process, ProcessCallGraph::processDescription(), ProcessCallGraph::processes(), processes_, DQMStore::IBooker::pwd(), run_, DQMStore::IBooker::setCurrentFolder(), ProcessCallGraph::source(), and AlCaHLTBitMon_QueryRunRegistry::string.

734 {
735  const std::string basedir = booker.pwd();
736 
737  // event summary plots
738  event_.book(booker,
739  "event", "Event",
740  event_ranges,
741  lumisections,
742  byls);
743 
744  event_ex_.book(booker,
745  "explicit", "Event (explicit)",
746  event_ranges,
747  lumisections,
748  byls);
749 
750  overhead_.book(booker,
751  "overhead", "Overhead",
752  event_ranges,
753  lumisections,
754  byls);
755 
756  modules_[job.source().id()].book(booker,
757  "source", "Source",
758  module_ranges,
759  lumisections,
760  byls);
761 
762  if (transitions) {
763  lumi_.book(booker,
764  "lumi", "LumiSection transitions",
765  event_ranges,
766  lumisections,
767  byls);
768 
769  run_.book(booker,
770  "run", "Run transtions",
771  event_ranges,
772  lumisections,
773  false);
774  }
775 
776  // plot the time spent in few given groups of modules
777  for (unsigned int group: boost::irange(0ul, groups.size())) {
778  auto const & label = groups[group].label;
779  highlight_[group].book(booker,
780  "highlight " + label, "Highlight " + label,
781  event_ranges,
782  lumisections,
783  byls);
784  }
785 
786  // plots per subprocess (event, modules, paths and endpaths)
787  for (unsigned int pid: boost::irange(0ul, job.processes().size())) {
788  auto const& process = job.processDescription(pid);
789  processes_[pid].book(booker,
790  job, process,
791  event_ranges,
792  path_ranges,
793  lumisections,
794  bypath,
795  byls);
796 
797  if (bymodule) {
798  booker.setCurrentFolder(basedir + "/process " + process.name_ + " modules");
799  for (unsigned int id: process.modules_)
800  {
801  auto const& module_name = job.module(id).moduleLabel();
802  modules_[id].book(booker,
804  module_ranges,
805  lumisections,
806  byls);
807  }
808  booker.setCurrentFolder(basedir);
809  }
810  }
811 }
void book(DQMStore::ConcurrentBooker &, std::string const &name, std::string const &title, PlotRanges const &ranges, unsigned int lumisections, bool byls)
std::vector< PlotsPerElement > highlight_
std::vector< PlotsPerElement > modules_
std::vector< PlotsPerProcess > processes_
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:279
const std::string & pwd()
Definition: DQMStore.cc:287
void FastTimerService::PlotsPerJob::fill ( ProcessCallGraph const &  job,
ResourcesPerJob const &  data,
unsigned int  ls 
)

Definition at line 814 of file FastTimerService.cc.

References data, FastTimerService::ResourcesPerJob::event, event_, event_ex_, FastTimerService::PlotsPerElement::fill(), edmIntegrityCheck::group, FastTimerService::ResourcesPerJob::highlight, highlight_, triggerObjects_cff::id, eostools::ls(), FastTimerService::ResourcesPerJob::modules, modules_, FastTimerService::ResourcesPerJob::overhead, overhead_, sysUtil::pid, ProcessCallGraph::processDescription(), FastTimerService::ResourcesPerJob::processes, processes_, and FastTimerService::ResourcesPerJob::total.

815 {
816  // fill total event plots
817  event_.fill(data.total, ls);
818  event_ex_.fill(data.event, ls);
819  overhead_.fill(data.overhead, ls);
820 
821  // fill highltight plots
822  for (unsigned int group: boost::irange(0ul, highlight_.size()))
823  highlight_[group].fill_fraction(data.total, data.highlight[group], ls);
824 
825  // fill modules plots
826  for (unsigned int id: boost::irange(0ul, modules_.size()))
827  modules_[id].fill(data.modules[id].total, ls);
828 
829  for (unsigned int pid: boost::irange(0ul, processes_.size()))
830  processes_[pid].fill(job.processDescription(pid), data, data.processes[pid], ls);
831 }
void fill(Resources const &, unsigned int lumisection)
std::vector< PlotsPerElement > highlight_
std::vector< PlotsPerElement > modules_
def ls(path, rec=False)
Definition: eostools.py:348
std::vector< PlotsPerProcess > processes_
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
void FastTimerService::PlotsPerJob::fill_lumi ( AtomicResources const &  data,
unsigned int  lumisection 
)

Definition at line 841 of file FastTimerService.cc.

References FastTimerService::PlotsPerElement::fill(), and lumi_.

842 {
843  // fill lumisection transition plots
844  lumi_.fill(data, ls);
845 }
void fill(Resources const &, unsigned int lumisection)
def ls(path, rec=False)
Definition: eostools.py:348
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
void FastTimerService::PlotsPerJob::fill_run ( AtomicResources const &  data)

Definition at line 834 of file FastTimerService.cc.

References FastTimerService::PlotsPerElement::fill(), and run_.

835 {
836  // fill run transition plots
837  run_.fill(data, 0);
838 }
void fill(Resources const &, unsigned int lumisection)
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82

Member Data Documentation

PlotsPerElement FastTimerService::PlotsPerJob::event_
private

Definition at line 396 of file FastTimerService.h.

Referenced by book(), and fill().

PlotsPerElement FastTimerService::PlotsPerJob::event_ex_
private

Definition at line 397 of file FastTimerService.h.

Referenced by book(), and fill().

std::vector<PlotsPerElement> FastTimerService::PlotsPerJob::highlight_
private

Definition at line 403 of file FastTimerService.h.

Referenced by book(), and fill().

PlotsPerElement FastTimerService::PlotsPerJob::lumi_
private

Definition at line 400 of file FastTimerService.h.

Referenced by book(), and fill_lumi().

std::vector<PlotsPerElement> FastTimerService::PlotsPerJob::modules_
private

Definition at line 405 of file FastTimerService.h.

Referenced by book(), and fill().

PlotsPerElement FastTimerService::PlotsPerJob::overhead_
private

Definition at line 398 of file FastTimerService.h.

Referenced by book(), and fill().

std::vector<PlotsPerProcess> FastTimerService::PlotsPerJob::processes_
private

Definition at line 407 of file FastTimerService.h.

Referenced by book(), fill(), and PlotsPerJob().

PlotsPerElement FastTimerService::PlotsPerJob::run_
private

Definition at line 401 of file FastTimerService.h.

Referenced by book(), and fill_run().