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 285 of file FastTimerService.h.

Constructor & Destructor Documentation

◆ ResourcesPerProcess()

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

Definition at line 227 of file FastTimerService.cc.

228  : 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 250 of file FastTimerService.cc.

251  {
253  result += other;
254  return result;
255 }

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

◆ operator+=()

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

Definition at line 238 of file FastTimerService.cc.

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

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

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

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 295 of file FastTimerService.h.

Referenced by TestProcess.TestProcess::fillProcessDesc().

◆ paths

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

Definition at line 294 of file FastTimerService.h.

Referenced by TestProcess.TestProcess::fillProcessDesc().

◆ total

Resources FastTimerService::ResourcesPerProcess::total

Definition at line 293 of file FastTimerService.h.

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