-
-
Notifications
You must be signed in to change notification settings - Fork 363
impr(profiling): always remove launch profile config after starting #5318
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
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5318 +/- ##
=============================================
+ Coverage 86.199% 86.274% +0.074%
=============================================
Files 407 407
Lines 35072 35096 +24
Branches 15228 15238 +10
=============================================
+ Hits 30232 30279 +47
+ Misses 4793 4769 -24
- Partials 47 48 +1
... and 10 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
Performance metrics 🚀
|
Revision | Plain | With Sentry | Diff |
---|---|---|---|
9389467 | 1218.62 ms | 1244.86 ms | 26.24 ms |
f92cfa9 | 1228.45 ms | 1251.33 ms | 22.88 ms |
079bcc8 | 1217.88 ms | 1234.88 ms | 17.00 ms |
701b301 | 1226.10 ms | 1245.57 ms | 19.47 ms |
65f8d2e | 1221.15 ms | 1243.96 ms | 22.81 ms |
c63e0fe | 1230.58 ms | 1253.94 ms | 23.35 ms |
db9572a | 1223.13 ms | 1241.60 ms | 18.47 ms |
8fd192f | 1202.10 ms | 1220.19 ms | 18.09 ms |
2481950 | 1221.04 ms | 1248.98 ms | 27.94 ms |
51f74d7 | 1236.31 ms | 1247.43 ms | 11.12 ms |
App size
Revision | Plain | With Sentry | Diff |
---|---|---|---|
9389467 | 23.75 KiB | 866.51 KiB | 842.76 KiB |
f92cfa9 | 23.75 KiB | 855.38 KiB | 831.62 KiB |
079bcc8 | 23.74 KiB | 874.07 KiB | 850.33 KiB |
701b301 | 23.75 KiB | 867.16 KiB | 843.41 KiB |
65f8d2e | 23.74 KiB | 872.67 KiB | 848.93 KiB |
c63e0fe | 23.74 KiB | 874.08 KiB | 850.33 KiB |
db9572a | 23.75 KiB | 858.64 KiB | 834.89 KiB |
8fd192f | 23.74 KiB | 872.75 KiB | 849.01 KiB |
2481950 | 23.74 KiB | 872.74 KiB | 849.00 KiB |
51f74d7 | 23.74 KiB | 874.08 KiB | 850.34 KiB |
Previous results on branch: armcknight/fix/launch-profile-rerun
Startup times
Revision | Plain | With Sentry | Diff |
---|---|---|---|
2a48940 | 1224.67 ms | 1246.10 ms | 21.43 ms |
d20940c | 1210.45 ms | 1242.30 ms | 31.85 ms |
990929b | 1225.96 ms | 1246.51 ms | 20.55 ms |
6be3673 | 1215.00 ms | 1236.02 ms | 21.02 ms |
2ba623f | 1219.96 ms | 1225.08 ms | 5.12 ms |
App size
Revision | Plain | With Sentry | Diff |
---|---|---|---|
2a48940 | 23.75 KiB | 874.45 KiB | 850.71 KiB |
d20940c | 23.75 KiB | 874.46 KiB | 850.71 KiB |
990929b | 23.75 KiB | 872.95 KiB | 849.21 KiB |
6be3673 | 23.75 KiB | 850.99 KiB | 827.24 KiB |
2ba623f | 23.75 KiB | 872.95 KiB | 849.21 KiB |
8f837d5
to
c13917b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't this deserve a changelog entry? Some comments, but nothing blocking. LGTM
…5436) * test: always wipe all data on disk before starting a new UI test * do it in BaseUITest.setUp so it only happens once per test case, on the first launch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Again, LGTM.
Tests/SentryProfilerTests/SentryApplaunchProfilingMalformedConfigFileTests.swift
Show resolved
Hide resolved
Tests/SentryProfilerTests/SentryApplaunchProfilingMalformedConfigFileTests.swift
Outdated
Show resolved
Hide resolved
Tests/SentryProfilerTests/SentryApplaunchProfilingMalformedConfigFileTests.swift
Show resolved
Hide resolved
Tests/SentryProfilerTests/SentryApplaunchProfilingMalformedConfigFileTests.swift
Show resolved
Hide resolved
For some reason tests are failing In CI but not locally, i'm debugging. |
🚨 Detected changes in high risk code 🚨High-risk code can easily blow up and is hard to test. We had severe bugs in the past. Be extra careful when changing these files, and have an extra careful look at these:
|
I realized after rereading #3637 (comment) that even if we consider a launch profile unable to be stopped as a misconfiguration we can't currently avoid at runtime, this leads to every launch afterwards also starting the launch profiling. We should instead consider not starting the SDK as disabling launch profiling, the same as if the SDK had never been started in an app.
It also increases safety such that if the app crashes between the time a launch profile starts (especially if it's a crash due to the profiler), and a call to SentrySDK.startWithOptions would've disabled launch profiling, launch profiling won't keep starting again on every subsequent launch.
To achieve this we should always remove the config file once we're done with it for that launch. Configuring to disable launch profiling already removed any file present; now, starting the launch profiler also removes it.
This also helps with issues like #5366
#skip-changelog