Go to the source code of this file.
|
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) |
|
◆ 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 209 of file SystemTimeKeeper.cc.
215 iSummary.resize(iEndIndex - iStartIndex);
217 for (
auto const&
stream : iPathTimings) {
218 auto it = iSummary.begin();
219 for (
unsigned int index = iStartIndex;
index < iEndIndex; ++
index, ++it) {
221 it->name = iPathNames[
index];
222 it->bitPosition =
index - iStartIndex;
223 if (not pathTiming.m_moduleTiming.empty()) {
224 it->timesRun += pathTiming.m_moduleTiming[0].m_timesVisited;
226 it->realTime += pathTiming.m_timer.realTime();
227 if (it->moduleInPathSummaries.empty()) {
228 it->moduleInPathSummaries.resize(pathTiming.m_moduleTiming.size());
230 for (
unsigned int modIndex = 0; modIndex < pathTiming.m_moduleTiming.size(); ++modIndex) {
231 auto const& modTiming = pathTiming.m_moduleTiming[modIndex];
232 auto& modSummary = it->moduleInPathSummaries[modIndex];
233 if (modSummary.moduleLabel.empty()) {
234 modSummary.moduleLabel = iModulesOnPaths[
index][modIndex];
236 modSummary.timesVisited += modTiming.m_timesVisited;
237 modSummary.realTime += modTiming.m_realTime;
References cms::cuda::stream.