CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
FastTimerService::ResourcesPerJob Struct Reference

Public Member Functions

ResourcesPerJob operator+ (ResourcesPerJob const &other) const
 
ResourcesPerJoboperator+= (ResourcesPerJob const &other)
 
void reset ()
 
 ResourcesPerJob ()=default
 
 ResourcesPerJob (ProcessCallGraph const &job, std::vector< GroupOfModules > const &groups)
 

Public Attributes

Resources event
 
Measurement event_measurement
 
unsigned events
 
std::vector< Resourceshighlight
 
std::vector< ResourcesPerModulemodules
 
AtomicResources overhead
 
std::vector< ResourcesPerProcessprocesses
 
Resources total
 

Detailed Description

Definition at line 284 of file FastTimerService.h.

Constructor & Destructor Documentation

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

Definition at line 218 of file FastTimerService.cc.

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

220  : total(), overhead(), event(), highlight(groups.size()), modules(job.size()), processes(), events(0) {
221  processes.reserve(job.processes().size());
222  for (auto const& process : job.processes())
223  processes.emplace_back(process);
224 }
std::vector< ResourcesPerModule > modules
std::vector< Resources > highlight
std::vector< ResourcesPerProcess > processes

Member Function Documentation

FastTimerService::ResourcesPerJob FastTimerService::ResourcesPerJob::operator+ ( ResourcesPerJob const &  other) const

Definition at line 256 of file FastTimerService.cc.

References trackingPlots::other, and mps_fire::result.

256  {
257  ResourcesPerJob result(*this);
258  result += other;
259  return result;
260 }
FastTimerService::ResourcesPerJob & FastTimerService::ResourcesPerJob::operator+= ( ResourcesPerJob const &  other)

Definition at line 239 of file FastTimerService.cc.

References event, events, highlight, mps_fire::i, modules, overhead, processes, and total.

239  {
240  total += other.total;
241  overhead += other.overhead;
242  event += other.event;
243  assert(highlight.size() == other.highlight.size());
244  for (unsigned int i : boost::irange(0ul, highlight.size()))
245  highlight[i] += other.highlight[i];
246  assert(modules.size() == other.modules.size());
247  for (unsigned int i : boost::irange(0ul, modules.size()))
248  modules[i] += other.modules[i];
249  assert(processes.size() == other.processes.size());
250  for (unsigned int i : boost::irange(0ul, processes.size()))
251  processes[i] += other.processes[i];
252  events += other.events;
253  return *this;
254 }
std::vector< Resources > highlight
std::vector< ResourcesPerProcess > processes
void FastTimerService::ResourcesPerJob::reset ( void  )

Definition at line 226 of file FastTimerService.cc.

References events, highlight, overhead, LaserDQM_cfg::process, processes, FastTimerService::Resources::reset(), FastTimerService::AtomicResources::reset(), and total.

226  {
227  total.reset();
228  overhead.reset();
229  event.reset();
230  for (auto& module : highlight)
231  module.reset();
232  for (auto& module : modules)
233  module.reset();
234  for (auto& process : processes)
235  process.reset();
236  events = 0;
237 }
std::vector< Resources > highlight
std::vector< ResourcesPerProcess > processes
Definition: vlib.h:198

Member Data Documentation

Resources FastTimerService::ResourcesPerJob::event
Measurement FastTimerService::ResourcesPerJob::event_measurement

Definition at line 296 of file FastTimerService.h.

unsigned FastTimerService::ResourcesPerJob::events
std::vector<Resources> FastTimerService::ResourcesPerJob::highlight
std::vector<ResourcesPerModule> FastTimerService::ResourcesPerJob::modules
AtomicResources FastTimerService::ResourcesPerJob::overhead

Definition at line 294 of file FastTimerService.h.

Referenced by FastTimerService::PlotsPerJob::fill(), operator+=(), and reset().

std::vector<ResourcesPerProcess> FastTimerService::ResourcesPerJob::processes
Resources FastTimerService::ResourcesPerJob::total