CMS 3D CMS Logo

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

Detailed Description

Definition at line 298 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 259 of file FastTimerService.cc.

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

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

Member Function Documentation

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

Definition at line 297 of file FastTimerService.cc.

References mps_fire::result.

297  {
298  ResourcesPerJob result(*this);
299  result += other;
300  return result;
301 }
tuple result
Definition: mps_fire.py:311
FastTimerService::ResourcesPerJob & FastTimerService::ResourcesPerJob::operator+= ( ResourcesPerJob const &  other)

Definition at line 280 of file FastTimerService.cc.

References cms::cuda::assert(), event, patZpeak::events, events, highlight, mps_fire::i, TrackingSourceConfig_Tier0_Cosmic_cff::modules, modules, overhead, parallelization::processes, processes, dqmMemoryStats::total, and total.

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

Definition at line 267 of file FastTimerService.cc.

References patZpeak::events, callgraph::module, TrackingSourceConfig_Tier0_Cosmic_cff::modules, LaserDQM_cfg::process, parallelization::processes, and dqmMemoryStats::total.

267  {
268  total.reset();
269  overhead.reset();
270  event.reset();
271  for (auto& module : highlight)
272  module.reset();
273  for (auto& module : modules)
274  module.reset();
275  for (auto& process : processes)
276  process.reset();
277  events = 0;
278 }
std::vector< ResourcesPerModule > modules
std::vector< Resources > highlight
std::vector< ResourcesPerProcess > processes
tuple process
Definition: LaserDQM_cfg.py:3
tuple module
Definition: callgraph.py:69

Member Data Documentation

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

Definition at line 310 of file FastTimerService.h.

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