mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Stats] Clear all timers on print, since they stopped self-clearing recently.
This commit is contained in:
@@ -444,6 +444,7 @@ UnifiedStatsReporter::printAlwaysOnStatsAndTimers(raw_ostream &OS) {
|
||||
}
|
||||
// Print timers.
|
||||
TimerGroup::printAllJSONValues(OS, delim);
|
||||
TimerGroup::clearAll();
|
||||
OS << "\n}\n";
|
||||
OS.flush();
|
||||
}
|
||||
@@ -664,6 +665,7 @@ UnifiedStatsReporter::~UnifiedStatsReporter()
|
||||
#if !defined(NDEBUG) || defined(LLVM_ENABLE_STATS)
|
||||
publishAlwaysOnStatsToLLVM();
|
||||
PrintStatisticsJSON(ostream);
|
||||
TimerGroup::clearAll();
|
||||
#else
|
||||
printAlwaysOnStatsAndTimers(ostream);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user