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

Constructor & Destructor Documentation

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

Definition at line 214 of file FastTimerService.cc.

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

Member Function Documentation

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

Definition at line 243 of file FastTimerService.cc.

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

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

Definition at line 231 of file FastTimerService.cc.

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

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

Definition at line 222 of file FastTimerService.cc.

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

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

Member Data Documentation

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

Definition at line 284 of file FastTimerService.h.

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

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

Definition at line 283 of file FastTimerService.h.

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

Resources FastTimerService::ResourcesPerProcess::total

Definition at line 282 of file FastTimerService.h.

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