-
-
Notifications
You must be signed in to change notification settings - Fork 467
Continuous Profiling - stop when app goes in background #4311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 8 commits
6a4b1ad
f21dc6c
a9d2ae4
94079a4
96c5720
2d1ee74
dacdab4
cfdfcba
68eb091
8283fc0
1f78424
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -122,6 +122,7 @@ public void run() { | |
| scopes.endSession(); | ||
| } | ||
| scopes.getOptions().getReplayController().stop(); | ||
| scopes.getOptions().getContinuousProfiler().stopAllProfiles(); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This means the profiler will continue to run for 30s in the background before stopping, is this what we want?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, and actually stops after 30s and the last chunk is finished
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Alright, to be honest I still wouldn't do this. Once the app is in background, any executed code can easily produce a background ANR.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. true, but if we don't, the profiler could continue to run indefinitely, right? |
||
| } | ||
| }; | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.