[clang] [llvm] [NFC][clang] Add PrintOnExit parameter to a timer group (PR #164407)
Balazs Benics via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 21 06:25:26 PDT 2025
================
@@ -282,12 +283,12 @@ TimerGroup::TimerGroup(StringRef Name, StringRef Description,
TimerGroupList = this;
}
-TimerGroup::TimerGroup(StringRef Name, StringRef Description)
- : TimerGroup(Name, Description, timerLock()) {}
+TimerGroup::TimerGroup(StringRef Name, StringRef Description, bool PrintOnExit)
+ : TimerGroup(Name, Description, timerLock(), PrintOnExit) {}
TimerGroup::TimerGroup(StringRef Name, StringRef Description,
const StringMap<TimeRecord> &Records)
- : TimerGroup(Name, Description) {
+ : TimerGroup(Name, Description, /*PrintOnExit=*/false) {
----------------
steakhal wrote:
Should't this overload also forward the `PrintOnExit`?
https://github.com/llvm/llvm-project/pull/164407
More information about the cfe-commits
mailing list