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

225  : 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 247 of file FastTimerService.cc.

248  {
250  result += other;
251  return result;
252 }

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

◆ operator+=()

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

Definition at line 235 of file FastTimerService.cc.

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

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

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

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:355
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:1465
LaserDQM_cfg.process
process
Definition: LaserDQM_cfg.py:3
FastTimerService::ResourcesPerProcess::ResourcesPerProcess
ResourcesPerProcess(ProcessCallGraph::ProcessType const &process)
Definition: FastTimerService.cc:224
FastTimerService::Resources::reset
void reset()
Definition: FastTimerService.cc:85
mps_fire.result
result
Definition: mps_fire.py:303
castor_dqm_sourceclient_file_cfg.path
path
Definition: castor_dqm_sourceclient_file_cfg.py:37