Skip to content

Commit

Permalink
use api available to all platform versions
Browse files Browse the repository at this point in the history
  • Loading branch information
armcknight committed Sep 24, 2022
1 parent f8c962f commit 573b656
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions Sources/Sentry/SentryProfiler.mm
Original file line number Diff line number Diff line change
Expand Up @@ -190,14 +190,7 @@ + (void)startForSpanID:(SentrySpanId *)spanID
[SentryFramesTracker.sharedInstance resetProfilingTimestamps];
# endif // SENTRY_HAS_UIKIT
[_gCurrentProfiler start];
_gCurrentProfiler->_timeoutTimer =
[NSTimer scheduledTimerWithTimeInterval:timeoutInterval
repeats:NO
block:^(NSTimer *_Nonnull timer) {
SENTRY_LOG_DEBUG(
@"Profiler %@ timed out.", _gCurrentProfiler);
[[self class] timeoutAbort];
}];
_gCurrentProfiler->_timeoutTimer = [NSTimer scheduledTimerWithTimeInterval:timeoutInterval target:self selector:@selector(timeoutAbort) userInfo:nil repeats:NO];
_gCurrentProfiler->_hub = hub;
}

Expand Down

0 comments on commit 573b656

Please sign in to comment.