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

Constructor & Destructor Documentation

◆ ResourcesPerProcess()

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

Definition at line 228 of file FastTimerService.cc.

229  : total(), paths(process.paths_.size()), endpaths(process.endPaths_.size()) {}
std::vector< ResourcesPerPath > endpaths
std::vector< ResourcesPerPath > paths

Member Function Documentation

◆ operator+()

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

Definition at line 251 of file FastTimerService.cc.

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

252  {
254  result += other;
255  return result;
256 }
ResourcesPerProcess(ProcessCallGraph::ProcessType const &process)

◆ operator+=()

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

Definition at line 239 of file FastTimerService.cc.

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

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

◆ reset()

void FastTimerService::ResourcesPerProcess::reset ( void  )

Definition at line 231 of file FastTimerService.cc.

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

231  {
232  total.reset();
233  for (auto& path : paths)
234  path.reset();
235  for (auto& path : endpaths)
236  path.reset();
237 }
std::vector< ResourcesPerPath > endpaths
std::vector< ResourcesPerPath > paths

Member Data Documentation

◆ endpaths

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

Definition at line 299 of file FastTimerService.h.

Referenced by TestProcess.TestProcess::fillProcessDesc().

◆ paths

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

Definition at line 298 of file FastTimerService.h.

Referenced by TestProcess.TestProcess::fillProcessDesc().

◆ total

Resources FastTimerService::ResourcesPerProcess::total

Definition at line 297 of file FastTimerService.h.