CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 285 of file FastTimerService.h.

Constructor & Destructor Documentation

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

Definition at line 227 of file FastTimerService.cc.

228  : total(), paths(process.paths_.size()), endpaths(process.endPaths_.size()) {}
std::vector< ResourcesPerPath > endpaths
tuple process
Definition: LaserDQM_cfg.py:3
std::vector< ResourcesPerPath > paths

Member Function Documentation

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

Definition at line 250 of file FastTimerService.cc.

References mps_fire::result.

251  {
253  result += other;
254  return result;
255 }
tuple result
Definition: mps_fire.py:311
ResourcesPerProcess(ProcessCallGraph::ProcessType const &process)
FastTimerService::ResourcesPerProcess & FastTimerService::ResourcesPerProcess::operator+= ( ResourcesPerProcess const &  other)

Definition at line 238 of file FastTimerService.cc.

References cms::cuda::assert(), endpaths, mps_fire::i, mergeAndRegister::paths, paths, dqmMemoryStats::total, and total.

239  {
240  total += other.total;
241  assert(paths.size() == other.paths.size());
242  for (unsigned int i : boost::irange(0ul, paths.size()))
243  paths[i] += other.paths[i];
244  assert(endpaths.size() == other.endpaths.size());
245  for (unsigned int i : boost::irange(0ul, endpaths.size()))
246  endpaths[i] += other.endpaths[i];
247  return *this;
248 }
std::vector< ResourcesPerPath > endpaths
assert(be >=bs)
std::vector< ResourcesPerPath > paths
void FastTimerService::ResourcesPerProcess::reset ( void  )

Definition at line 230 of file FastTimerService.cc.

References fed_dqm_sourceclient-live_cfg::path, mergeAndRegister::paths, and dqmMemoryStats::total.

230  {
231  total.reset();
232  for (auto& path : paths)
233  path.reset();
234  for (auto& path : endpaths)
235  path.reset();
236 }
std::vector< ResourcesPerPath > endpaths
std::vector< ResourcesPerPath > paths

Member Data Documentation

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

Definition at line 295 of file FastTimerService.h.

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

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

Definition at line 294 of file FastTimerService.h.

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

Resources FastTimerService::ResourcesPerProcess::total

Definition at line 293 of file FastTimerService.h.

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