CMS 3D CMS Logo

Functions
SystemTimeKeeper.cc File Reference
#include <algorithm>
#include "FWCore/Utilities/interface/StreamID.h"
#include "FWCore/ServiceRegistry/interface/StreamContext.h"
#include "FWCore/ServiceRegistry/interface/PathContext.h"
#include "FWCore/ServiceRegistry/interface/PlaceInPathContext.h"
#include "FWCore/ServiceRegistry/interface/ModuleCallingContext.h"
#include "DataFormats/Provenance/interface/ModuleDescription.h"
#include "DataFormats/Common/interface/HLTPathStatus.h"
#include "FWCore/Framework/src/TriggerTimingReport.h"
#include "FWCore/Framework/interface/TriggerNamesService.h"
#include "FWCore/Utilities/interface/Algorithms.h"
#include "FWCore/Framework/interface/SystemTimeKeeper.h"

Go to the source code of this file.

Functions

static void fillPathSummary (unsigned int iStartIndex, unsigned int iEndIndex, std::vector< std::string > const &iPathNames, std::vector< std::vector< std::string >> const &iModulesOnPaths, std::vector< std::vector< SystemTimeKeeper::PathTiming >> const &iPathTimings, std::vector< PathTimingSummary > &iSummary)
 

Function Documentation

◆ fillPathSummary()

static void fillPathSummary ( unsigned int  iStartIndex,
unsigned int  iEndIndex,
std::vector< std::string > const &  iPathNames,
std::vector< std::vector< std::string >> const &  iModulesOnPaths,
std::vector< std::vector< SystemTimeKeeper::PathTiming >> const &  iPathTimings,
std::vector< PathTimingSummary > &  iSummary 
)
static

Definition at line 215 of file SystemTimeKeeper.cc.

References ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, and cms::cuda::stream.

220  {
221  iSummary.resize(iEndIndex - iStartIndex);
222 
223  for (auto const& stream : iPathTimings) {
224  auto it = iSummary.begin();
225  for (unsigned int index = iStartIndex; index < iEndIndex; ++index, ++it) {
226  auto const& pathTiming = stream[index];
227  it->name = iPathNames[index];
228  it->bitPosition = index - iStartIndex;
229  if (not pathTiming.m_moduleTiming.empty()) {
230  it->timesRun += pathTiming.m_moduleTiming[0].m_timesVisited;
231  }
232  it->realTime += pathTiming.m_timer.realTime();
233  if (it->moduleInPathSummaries.empty()) {
234  it->moduleInPathSummaries.resize(pathTiming.m_moduleTiming.size());
235  }
236  for (unsigned int modIndex = 0; modIndex < pathTiming.m_moduleTiming.size(); ++modIndex) {
237  auto const& modTiming = pathTiming.m_moduleTiming[modIndex];
238  auto& modSummary = it->moduleInPathSummaries[modIndex];
239  if (modSummary.moduleLabel.empty()) {
240  modSummary.moduleLabel = iModulesOnPaths[index][modIndex];
241  }
242  modSummary.timesVisited += modTiming.m_timesVisited;
243  modSummary.realTime += modTiming.m_realTime;
244  }
245  }
246  }
247 }
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t stream