Skip to content

Commit

Permalink
Merge pull request #13225 from wmtan/SortModuleSummaryReports
Browse files Browse the repository at this point in the history
Sort module summary reports by module label
  • Loading branch information
cmsbuild committed Feb 11, 2016
2 parents 4b6956e + ccdf67f commit d0a1a70
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions FWCore/Framework/interface/TriggerReport.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ namespace edm {
std::string moduleLabel;
};

inline
bool operator<(WorkerSummary const& a, WorkerSummary const& b) {
return a.moduleLabel < b.moduleLabel;
}

struct TriggerReport
{
Expand Down
4 changes: 4 additions & 0 deletions FWCore/Framework/interface/TriggerTimingReport.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ namespace edm {
std::string moduleLabel;
};

inline
bool operator<(WorkerTimingSummary const& a, WorkerTimingSummary const& b) {
return a.moduleLabel < b.moduleLabel;
}

struct TriggerTimingReport
{
Expand Down
1 change: 1 addition & 0 deletions FWCore/Framework/src/StreamSchedule.cc
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,7 @@ namespace edm {
fill_summary(trig_paths_, rep.trigPathSummaries, &fillPathSummary);
fill_summary(end_paths_, rep.endPathSummaries, &fillPathSummary);
fill_summary(allWorkers(), rep.workerSummaries, &fillWorkerSummary);
sort_all(rep.workerSummaries);
}

void
Expand Down
2 changes: 2 additions & 0 deletions FWCore/Framework/src/SystemTimeKeeper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include "DataFormats/Common/interface/HLTPathStatus.h"
#include "FWCore/Framework/interface/TriggerTimingReport.h"
#include "FWCore/Framework/interface/TriggerNamesService.h"
#include "FWCore/Utilities/interface/Algorithms.h"
#include "SystemTimeKeeper.h"

using namespace edm;
Expand Down Expand Up @@ -294,6 +295,7 @@ SystemTimeKeeper::fillTriggerTimingReport(TriggerTimingReport& rep) const {
++modIndex;
}
}
sort_all(rep.workerSummaries);

//Per path summary
{
Expand Down

0 comments on commit d0a1a70

Please sign in to comment.