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

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 }

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

Member Function Documentation

◆ operator+()

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

Definition at line 297 of file FastTimerService.cc.

297  {
298  ResourcesPerJob result(*this);
299  result += other;
300  return result;
301 }

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

◆ operator+=()

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

Definition at line 280 of file FastTimerService.cc.

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 }

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

◆ reset()

void FastTimerService::ResourcesPerJob::reset ( void  )

Definition at line 267 of file FastTimerService.cc.

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 }

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

Member Data Documentation

◆ event

Resources FastTimerService::ResourcesPerJob::event

◆ event_measurement

Measurement FastTimerService::ResourcesPerJob::event_measurement

Definition at line 310 of file FastTimerService.h.

◆ events

unsigned FastTimerService::ResourcesPerJob::events

◆ highlight

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

Definition at line 311 of file FastTimerService.h.

◆ modules

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

Definition at line 312 of file FastTimerService.h.

◆ overhead

AtomicResources FastTimerService::ResourcesPerJob::overhead

Definition at line 308 of file FastTimerService.h.

◆ processes

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

Definition at line 313 of file FastTimerService.h.

Referenced by ResourcesPerJob().

◆ total

Resources FastTimerService::ResourcesPerJob::total

Definition at line 307 of file FastTimerService.h.

FastTimerService::ResourcesPerJob::highlight
std::vector< Resources > highlight
Definition: FastTimerService.h:311
mps_fire.i
i
Definition: mps_fire.py:428
FastTimerService::ResourcesPerJob::ResourcesPerJob
ResourcesPerJob()=default
FastTimerService::ResourcesPerJob::modules
std::vector< ResourcesPerModule > modules
Definition: FastTimerService.h:312
modules
Definition: MuonCleanerBySegments.cc:35
cms::cuda::assert
assert(be >=bs)
FastTimerService::AtomicResources::reset
void reset()
Definition: FastTimerService.cc:137
FastTimerService::ResourcesPerJob::event
Resources event
Definition: FastTimerService.h:309
FastTimerService::ResourcesPerJob::overhead
AtomicResources overhead
Definition: FastTimerService.h:308
trackingPlots.other
other
Definition: trackingPlots.py:1464
FastTimerService::ResourcesPerJob::processes
std::vector< ResourcesPerProcess > processes
Definition: FastTimerService.h:313
LaserDQM_cfg.process
process
Definition: LaserDQM_cfg.py:3
FastTimerService::ResourcesPerJob::total
Resources total
Definition: FastTimerService.h:307
callgraph.module
module
Definition: callgraph.py:61
FastTimerService::Resources::reset
void reset()
Definition: FastTimerService.cc:88
mps_fire.result
result
Definition: mps_fire.py:311
FastTimerService::ResourcesPerJob::events
unsigned events
Definition: FastTimerService.h:314