CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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
 
AtomicResources eventsetup
 
std::vector< Resourceshighlight
 
std::vector< ResourcesPerModulemodules
 
AtomicResources overhead
 
std::vector< ResourcesPerProcessprocesses
 
Resources total
 

Detailed Description

Definition at line 302 of file FastTimerService.h.

Constructor & Destructor Documentation

◆ ResourcesPerJob() [1/2]

FastTimerService::ResourcesPerJob::ResourcesPerJob ( )
default

◆ ResourcesPerJob() [2/2]

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

Definition at line 260 of file FastTimerService.cc.

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

262  : total(), overhead(), eventsetup(), event(), highlight(groups.size()), modules(job.size()), processes(), events(0) {
263  processes.reserve(job.processes().size());
264  for (auto const& process : job.processes())
265  processes.emplace_back(process);
266 }
std::vector< ResourcesPerModule > modules
std::vector< Resources > highlight
std::vector< ResourcesPerProcess > processes

Member Function Documentation

◆ operator+()

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

Definition at line 300 of file FastTimerService.cc.

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

300  {
301  ResourcesPerJob result(*this);
302  result += other;
303  return result;
304 }

◆ operator+=()

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

Definition at line 282 of file FastTimerService.cc.

References cms::cuda::assert(), events, mps_fire::i, trackingPlots::other, dqmiodatasetharvest::processes, and dqmMemoryStats::total.

282  {
283  total += other.total;
284  overhead += other.overhead;
285  eventsetup += other.eventsetup;
286  event += other.event;
287  assert(highlight.size() == other.highlight.size());
288  for (unsigned int i : boost::irange(0ul, highlight.size()))
289  highlight[i] += other.highlight[i];
290  assert(modules.size() == other.modules.size());
291  for (unsigned int i : boost::irange(0ul, modules.size()))
292  modules[i] += other.modules[i];
293  assert(processes.size() == other.processes.size());
294  for (unsigned int i : boost::irange(0ul, processes.size()))
295  processes[i] += other.processes[i];
296  events += other.events;
297  return *this;
298 }
assert(be >=bs)
std::vector< Resources > highlight
std::vector< ResourcesPerProcess > processes

◆ reset()

void FastTimerService::ResourcesPerJob::reset ( void  )

Definition at line 268 of file FastTimerService.cc.

References events, callgraph::module, LaserDQM_cfg::process, dqmiodatasetharvest::processes, and dqmMemoryStats::total.

268  {
269  total.reset();
270  overhead.reset();
271  eventsetup.reset();
272  event.reset();
273  for (auto& module : highlight)
274  module.reset();
275  for (auto& module : modules)
276  module.reset();
277  for (auto& process : processes)
278  process.reset();
279  events = 0;
280 }
std::vector< Resources > highlight
std::vector< ResourcesPerProcess > processes

Member Data Documentation

◆ event

Resources FastTimerService::ResourcesPerJob::event

◆ event_measurement

Measurement FastTimerService::ResourcesPerJob::event_measurement

Definition at line 315 of file FastTimerService.h.

◆ events

unsigned FastTimerService::ResourcesPerJob::events

◆ eventsetup

AtomicResources FastTimerService::ResourcesPerJob::eventsetup

Definition at line 313 of file FastTimerService.h.

◆ highlight

std::vector<Resources> FastTimerService::ResourcesPerJob::highlight

Definition at line 316 of file FastTimerService.h.

◆ modules

std::vector<ResourcesPerModule> FastTimerService::ResourcesPerJob::modules

Definition at line 317 of file FastTimerService.h.

◆ overhead

AtomicResources FastTimerService::ResourcesPerJob::overhead

Definition at line 312 of file FastTimerService.h.

◆ processes

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

Definition at line 318 of file FastTimerService.h.

Referenced by ResourcesPerJob().

◆ total

Resources FastTimerService::ResourcesPerJob::total

Definition at line 311 of file FastTimerService.h.