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 ()
 
 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 324 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 254 of file FastTimerService.cc.

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

254  :
255  total(),
256  overhead(),
257  event(),
258  highlight( groups.size() ),
259  modules( job.size() ),
260  processes(),
261  events(0)
262 {
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

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

Definition at line 301 of file FastTimerService.cc.

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

301  {
302  ResourcesPerJob result(*this);
303  result += other;
304  return result;
305 }
FastTimerService::ResourcesPerJob & FastTimerService::ResourcesPerJob::operator+= ( ResourcesPerJob const &  other)

Definition at line 283 of file FastTimerService.cc.

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

283  {
284  total += other.total;
285  overhead += other.overhead;
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 }
std::vector< Resources > highlight
std::vector< ResourcesPerProcess > processes
void FastTimerService::ResourcesPerJob::reset ( void  )

Definition at line 269 of file FastTimerService.cc.

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

269  {
270  total.reset();
271  overhead.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
Definition: vlib.h:208

Member Data Documentation

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

Definition at line 336 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 334 of file FastTimerService.h.

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

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