File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ class Name2PairMap;
53
53
static std::string &libSupportInfoOutputFilename ();
54
54
static bool trackSpace ();
55
55
static bool sortTimers ();
56
+ [[maybe_unused]]
56
57
static SignpostEmitter &signposts ();
57
58
static sys::SmartMutex<true > &timerLock ();
58
59
static TimerGroup &defaultTimerGroup ();
@@ -149,7 +150,9 @@ TimeRecord TimeRecord::getCurrentTime(bool Start) {
149
150
void Timer::startTimer () {
150
151
assert (!Running && " Cannot start a running timer" );
151
152
Running = Triggered = true ;
153
+ #if LLVM_SUPPORT_XCODE_SIGNPOSTS
152
154
signposts ().startInterval (this , getName ());
155
+ #endif
153
156
StartTime = TimeRecord::getCurrentTime (true );
154
157
}
155
158
@@ -158,7 +161,9 @@ void Timer::stopTimer() {
158
161
Running = false ;
159
162
Time += TimeRecord::getCurrentTime (false );
160
163
Time -= StartTime;
164
+ #if LLVM_SUPPORT_XCODE_SIGNPOSTS
161
165
signposts ().endInterval (this , getName ());
166
+ #endif
162
167
}
163
168
164
169
void Timer::clear () {
You can’t perform that action at this time.
0 commit comments