sentry-cocoa icon indicating copy to clipboard operation
sentry-cocoa copied to clipboard

SentryFramesTracker Background CPU Usage

Open abbottkilroy opened this issue 1 year ago • 1 comments

Platform

iOS

Environment

Develop

Installed

Swift Package Manager

Version

8.20.0

Did it work on previous versions?

No response

Steps to Reproduce

Run app in background

Expected Result

Sentry seems to be taking a bunch of CPU time when our app is in the background. SentryFramesTracker seems to be the culprit. As our app is continuously running in the background this can be a significant issue.

Actual Result

image001

Are you willing to submit a PR?

No response

abbottkilroy avatar Mar 01 '24 18:03 abbottkilroy

We could stop the frames tracker when the app goes into the background, which we currently don't do. This should be an easy fix. Thanks for pointing that out, @abbottkilroy.

philipphofmann avatar Mar 04 '24 16:03 philipphofmann