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

Constructor & Destructor Documentation

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

Definition at line 206 of file FastTimerService.cc.

206  :
207  total(),
208  paths(process.paths_.size()),
209  endpaths(process.endPaths_.size())
210 {
211 }
std::vector< ResourcesPerPath > endpaths
std::vector< ResourcesPerPath > paths

Member Function Documentation

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

Definition at line 235 of file FastTimerService.cc.

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

235  {
237  result += other;
238  return result;
239 }
ResourcesPerProcess(ProcessCallGraph::ProcessType const &process)
FastTimerService::ResourcesPerProcess & FastTimerService::ResourcesPerProcess::operator+= ( ResourcesPerProcess const &  other)

Definition at line 223 of file FastTimerService.cc.

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

223  {
224  total += other.total;
225  assert(paths.size() == other.paths.size());
226  for (unsigned int i: boost::irange(0ul, paths.size()))
227  paths[i] += other.paths[i];
228  assert(endpaths.size() == other.endpaths.size());
229  for (unsigned int i: boost::irange(0ul, endpaths.size()))
230  endpaths[i] += other.endpaths[i];
231  return *this;
232 }
std::vector< ResourcesPerPath > endpaths
std::vector< ResourcesPerPath > paths
void FastTimerService::ResourcesPerProcess::reset ( void  )

Definition at line 214 of file FastTimerService.cc.

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

214  {
215  total.reset();
216  for (auto & path: paths)
217  path.reset();
218  for (auto & path: endpaths)
219  path.reset();
220 }
std::vector< ResourcesPerPath > endpaths
std::vector< ResourcesPerPath > paths

Member Data Documentation

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

Definition at line 291 of file FastTimerService.h.

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

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

Definition at line 290 of file FastTimerService.h.

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

Resources FastTimerService::ResourcesPerProcess::total

Definition at line 289 of file FastTimerService.h.

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