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;
5353static std::string &libSupportInfoOutputFilename ();
5454static bool trackSpace ();
5555static bool sortTimers ();
56+ [[maybe_unused]]
5657static SignpostEmitter &signposts ();
5758static sys::SmartMutex<true > &timerLock ();
5859static TimerGroup &defaultTimerGroup ();
@@ -149,7 +150,9 @@ TimeRecord TimeRecord::getCurrentTime(bool Start) {
149150void Timer::startTimer () {
150151 assert (!Running && " Cannot start a running timer" );
151152 Running = Triggered = true ;
153+ #if LLVM_SUPPORT_XCODE_SIGNPOSTS
152154 signposts ().startInterval (this , getName ());
155+ #endif
153156 StartTime = TimeRecord::getCurrentTime (true );
154157}
155158
@@ -158,7 +161,9 @@ void Timer::stopTimer() {
158161 Running = false ;
159162 Time += TimeRecord::getCurrentTime (false );
160163 Time -= StartTime;
164+ #if LLVM_SUPPORT_XCODE_SIGNPOSTS
161165 signposts ().endInterval (this , getName ());
166+ #endif
162167}
163168
164169void Timer::clear () {
You can’t perform that action at this time.
0 commit comments