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

Constructor & Destructor Documentation

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

Definition at line 148 of file FastTimerService.cc.

148  :
149  total(),
150  paths(process.paths_.size()),
151  endpaths(process.endPaths_.size())
152 {
153 }
std::vector< ResourcesPerPath > endpaths
std::vector< ResourcesPerPath > paths

Member Function Documentation

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

Definition at line 177 of file FastTimerService.cc.

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

177  {
179  result += other;
180  return result;
181 }
ResourcesPerProcess(ProcessCallGraph::ProcessType const &process)
FastTimerService::ResourcesPerProcess & FastTimerService::ResourcesPerProcess::operator+= ( ResourcesPerProcess const &  other)

Definition at line 165 of file FastTimerService.cc.

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

165  {
166  total += other.total;
167  assert(paths.size() == other.paths.size());
168  for (unsigned int i: boost::irange(0ul, paths.size()))
169  paths[i] += other.paths[i];
170  assert(endpaths.size() == other.endpaths.size());
171  for (unsigned int i: boost::irange(0ul, endpaths.size()))
172  endpaths[i] += other.endpaths[i];
173  return *this;
174 }
std::vector< ResourcesPerPath > endpaths
std::vector< ResourcesPerPath > paths
void FastTimerService::ResourcesPerProcess::reset ( void  )

Definition at line 156 of file FastTimerService.cc.

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

156  {
157  total.reset();
158  for (auto & path: paths)
159  path.reset();
160  for (auto & path: endpaths)
161  path.reset();
162 }
std::vector< ResourcesPerPath > endpaths
std::vector< ResourcesPerPath > paths

Member Data Documentation

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

Definition at line 277 of file FastTimerService.h.

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

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

Definition at line 276 of file FastTimerService.h.

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

Resources FastTimerService::ResourcesPerProcess::total

Definition at line 275 of file FastTimerService.h.

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