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) |
|
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 214 of file SystemTimeKeeper.cc.
References cmsHarvester::index.
220 iSummary.resize(iEndIndex-iStartIndex);
222 for(
auto const& stream: iPathTimings) {
223 auto it = iSummary.begin();
224 for(
unsigned int index = iStartIndex;
index < iEndIndex; ++
index, ++it) {
225 auto const& pathTiming = stream[
index];
226 it->name = iPathNames[
index];
227 it->bitPosition =
index-iStartIndex;
228 if(not pathTiming.m_moduleTiming.empty()) {
229 it->timesRun += pathTiming.m_moduleTiming[0].m_timesVisited;
231 it->realTime += pathTiming.m_timer.realTime();
232 if(it->moduleInPathSummaries.empty()) {
233 it->moduleInPathSummaries.resize(pathTiming.m_moduleTiming.size());
235 for(
unsigned int modIndex=0; modIndex < pathTiming.m_moduleTiming.size(); ++modIndex) {
236 auto const& modTiming =pathTiming.m_moduleTiming[modIndex];
237 auto& modSummary =it->moduleInPathSummaries[modIndex];
238 if(modSummary.moduleLabel.empty()) {
239 modSummary.moduleLabel = iModulesOnPaths[
index][modIndex];
241 modSummary.timesVisited += modTiming.m_timesVisited;
242 modSummary.realTime += modTiming.m_realTime;