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

Constructor & Destructor Documentation

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

Definition at line 161 of file FastTimerService.cc.

161  :
162  total(),
163  paths(process.paths_.size()),
164  endpaths(process.endPaths_.size())
165 {
166 }
std::vector< ResourcesPerPath > endpaths
std::vector< ResourcesPerPath > paths

Member Function Documentation

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

Definition at line 190 of file FastTimerService.cc.

References trackingPlots::other, FastTimerService::ResourcesPerJob::ResourcesPerJob(), and mps_fire::result.

190  {
192  result += other;
193  return result;
194 }
ResourcesPerProcess(ProcessCallGraph::ProcessType const &process)
FastTimerService::ResourcesPerProcess & FastTimerService::ResourcesPerProcess::operator+= ( ResourcesPerProcess const &  other)

Definition at line 178 of file FastTimerService.cc.

References endpaths, mps_fire::i, paths, and total.

178  {
179  total += other.total;
180  assert(paths.size() == other.paths.size());
181  for (unsigned int i: boost::irange(0ul, paths.size()))
182  paths[i] += other.paths[i];
183  assert(endpaths.size() == other.endpaths.size());
184  for (unsigned int i: boost::irange(0ul, endpaths.size()))
185  endpaths[i] += other.endpaths[i];
186  return *this;
187 }
std::vector< ResourcesPerPath > endpaths
std::vector< ResourcesPerPath > paths
void FastTimerService::ResourcesPerProcess::reset ( void  )

Definition at line 169 of file FastTimerService.cc.

References endpaths, callgraph::path, paths, FastTimerService::Resources::reset(), and total.

169  {
170  total.reset();
171  for (auto & path: paths)
172  path.reset();
173  for (auto & path: endpaths)
174  path.reset();
175 }
std::vector< ResourcesPerPath > endpaths
std::vector< ResourcesPerPath > paths

Member Data Documentation

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

Definition at line 279 of file FastTimerService.h.

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

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

Definition at line 278 of file FastTimerService.h.

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

Resources FastTimerService::ResourcesPerProcess::total

Definition at line 277 of file FastTimerService.h.

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