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

Constructor & Destructor Documentation

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

Definition at line 213 of file FastTimerService.cc.

213  :
214  total(),
215  paths(process.paths_.size()),
216  endpaths(process.endPaths_.size())
217 {
218 }
std::vector< ResourcesPerPath > endpaths
std::vector< ResourcesPerPath > paths

Member Function Documentation

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

Definition at line 242 of file FastTimerService.cc.

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

242  {
244  result += other;
245  return result;
246 }
ResourcesPerProcess(ProcessCallGraph::ProcessType const &process)
FastTimerService::ResourcesPerProcess & FastTimerService::ResourcesPerProcess::operator+= ( ResourcesPerProcess const &  other)

Definition at line 230 of file FastTimerService.cc.

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

230  {
231  total += other.total;
232  assert(paths.size() == other.paths.size());
233  for (unsigned int i: boost::irange(0ul, paths.size()))
234  paths[i] += other.paths[i];
235  assert(endpaths.size() == other.endpaths.size());
236  for (unsigned int i: boost::irange(0ul, endpaths.size()))
237  endpaths[i] += other.endpaths[i];
238  return *this;
239 }
std::vector< ResourcesPerPath > endpaths
std::vector< ResourcesPerPath > paths
void FastTimerService::ResourcesPerProcess::reset ( void  )

Definition at line 221 of file FastTimerService.cc.

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

221  {
222  total.reset();
223  for (auto & path: paths)
224  path.reset();
225  for (auto & path: endpaths)
226  path.reset();
227 }
std::vector< ResourcesPerPath > endpaths
std::vector< ResourcesPerPath > paths

Member Data Documentation

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

Definition at line 321 of file FastTimerService.h.

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

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

Definition at line 320 of file FastTimerService.h.

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

Resources FastTimerService::ResourcesPerProcess::total

Definition at line 319 of file FastTimerService.h.

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