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

Constructor & Destructor Documentation

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

Definition at line 186 of file FastTimerService.cc.

187  : total(), paths(process.paths_.size()), endpaths(process.endPaths_.size()) {}
std::vector< ResourcesPerPath > endpaths
std::vector< ResourcesPerPath > paths

Member Function Documentation

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

Definition at line 209 of file FastTimerService.cc.

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

210  {
212  result += other;
213  return result;
214 }
ResourcesPerProcess(ProcessCallGraph::ProcessType const &process)
FastTimerService::ResourcesPerProcess & FastTimerService::ResourcesPerProcess::operator+= ( ResourcesPerProcess const &  other)

Definition at line 197 of file FastTimerService.cc.

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

198  {
199  total += other.total;
200  assert(paths.size() == other.paths.size());
201  for (unsigned int i : boost::irange(0ul, paths.size()))
202  paths[i] += other.paths[i];
203  assert(endpaths.size() == other.endpaths.size());
204  for (unsigned int i : boost::irange(0ul, endpaths.size()))
205  endpaths[i] += other.endpaths[i];
206  return *this;
207 }
std::vector< ResourcesPerPath > endpaths
std::vector< ResourcesPerPath > paths
void FastTimerService::ResourcesPerProcess::reset ( void  )

Definition at line 189 of file FastTimerService.cc.

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

189  {
190  total.reset();
191  for (auto& path : paths)
192  path.reset();
193  for (auto& path : endpaths)
194  path.reset();
195 }
std::vector< ResourcesPerPath > endpaths
std::vector< ResourcesPerPath > paths

Member Data Documentation

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

Definition at line 281 of file FastTimerService.h.

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

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

Definition at line 280 of file FastTimerService.h.

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

Resources FastTimerService::ResourcesPerProcess::total

Definition at line 279 of file FastTimerService.h.

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