CMS 3D CMS Logo

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

Public Member Functions

ResourcesPerProcess operator+ (ResourcesPerProcess const &other) const
 
ResourcesPerProcessoperator+= (ResourcesPerProcess const &other)
 
void reset ()
 
 ResourcesPerProcess (ProcessCallGraph::ProcessType const &process)
 

Public Attributes

std::vector< ResourcesPerPathendpaths
 
std::vector< ResourcesPerPathpaths
 
Resources total
 

Detailed Description

Definition at line 284 of file FastTimerService.h.

Constructor & Destructor Documentation

◆ ResourcesPerProcess()

FastTimerService::ResourcesPerProcess::ResourcesPerProcess ( ProcessCallGraph::ProcessType const &  process)

Definition at line 226 of file FastTimerService.cc.

227  : total(), paths(process.paths_.size()), endpaths(process.endPaths_.size()) {}

Member Function Documentation

◆ operator+()

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

Definition at line 249 of file FastTimerService.cc.

250  {
252  result += other;
253  return result;
254 }

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

◆ operator+=()

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

Definition at line 237 of file FastTimerService.cc.

238  {
239  total += other.total;
240  assert(paths.size() == other.paths.size());
241  for (unsigned int i : boost::irange(0ul, paths.size()))
242  paths[i] += other.paths[i];
243  assert(endpaths.size() == other.endpaths.size());
244  for (unsigned int i : boost::irange(0ul, endpaths.size()))
245  endpaths[i] += other.endpaths[i];
246  return *this;
247 }

References cms::cuda::assert(), mps_fire::i, trackingPlots::other, Skims_PA_cff::paths, and dqmMemoryStats::total.

◆ reset()

void FastTimerService::ResourcesPerProcess::reset ( void  )

Definition at line 229 of file FastTimerService.cc.

229  {
230  total.reset();
231  for (auto& path : paths)
232  path.reset();
233  for (auto& path : endpaths)
234  path.reset();
235 }

References castor_dqm_sourceclient_file_cfg::path, Skims_PA_cff::paths, and dqmMemoryStats::total.

Member Data Documentation

◆ endpaths

std::vector<ResourcesPerPath> FastTimerService::ResourcesPerProcess::endpaths

Definition at line 294 of file FastTimerService.h.

Referenced by TestProcess.TestProcess::fillProcessDesc().

◆ paths

std::vector<ResourcesPerPath> FastTimerService::ResourcesPerProcess::paths

Definition at line 293 of file FastTimerService.h.

Referenced by TestProcess.TestProcess::fillProcessDesc().

◆ total

Resources FastTimerService::ResourcesPerProcess::total

Definition at line 292 of file FastTimerService.h.

mps_fire.i
i
Definition: mps_fire.py:428
FastTimerService::ResourcesPerProcess::endpaths
std::vector< ResourcesPerPath > endpaths
Definition: FastTimerService.h:294
FastTimerService::ResourcesPerProcess::paths
std::vector< ResourcesPerPath > paths
Definition: FastTimerService.h:293
cms::cuda::assert
assert(be >=bs)
FastTimerService::ResourcesPerProcess::total
Resources total
Definition: FastTimerService.h:292
trackingPlots.other
other
Definition: trackingPlots.py:1467
LaserDQM_cfg.process
process
Definition: LaserDQM_cfg.py:3
FastTimerService::ResourcesPerProcess::ResourcesPerProcess
ResourcesPerProcess(ProcessCallGraph::ProcessType const &process)
Definition: FastTimerService.cc:226
FastTimerService::Resources::reset
void reset()
Definition: FastTimerService.cc:87
mps_fire.result
result
Definition: mps_fire.py:311
castor_dqm_sourceclient_file_cfg.path
path
Definition: castor_dqm_sourceclient_file_cfg.py:37