-
-
Notifications
You must be signed in to change notification settings - Fork 318
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
feat(profiling): change how continuous profiling is enabled in options #4024
feat(profiling): change how continuous profiling is enabled in options #4024
Conversation
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4024 +/- ##
=============================================
+ Coverage 91.076% 91.139% +0.062%
=============================================
Files 606 607 +1
Lines 47515 47716 +201
Branches 17023 17150 +127
=============================================
+ Hits 43275 43488 +213
+ Misses 4146 4135 -11
+ Partials 94 93 -1
... and 20 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
Performance metrics 🚀
|
Revision | Plain | With Sentry | Diff |
---|---|---|---|
6943de0 | 1215.83 ms | 1253.22 ms | 37.39 ms |
9cc7e7c | 1228.90 ms | 1237.96 ms | 9.06 ms |
0559a8f | 1239.78 ms | 1252.60 ms | 12.83 ms |
ef284b2 | 1211.76 ms | 1229.69 ms | 17.93 ms |
b9a9ffd | 1201.61 ms | 1215.06 ms | 13.45 ms |
add9550 | 1228.15 ms | 1247.58 ms | 19.44 ms |
e84bc3f | 1196.62 ms | 1218.86 ms | 22.24 ms |
736495a | 1245.16 ms | 1254.42 ms | 9.26 ms |
32ac934 | 1224.46 ms | 1243.16 ms | 18.70 ms |
326b7eb | 1223.41 ms | 1235.66 ms | 12.25 ms |
App size
Revision | Plain | With Sentry | Diff |
---|---|---|---|
6943de0 | 20.76 KiB | 393.33 KiB | 372.57 KiB |
9cc7e7c | 22.84 KiB | 403.13 KiB | 380.29 KiB |
0559a8f | 21.58 KiB | 419.81 KiB | 398.23 KiB |
ef284b2 | 20.76 KiB | 401.36 KiB | 380.60 KiB |
b9a9ffd | 21.58 KiB | 418.43 KiB | 396.85 KiB |
add9550 | 21.58 KiB | 418.37 KiB | 396.79 KiB |
e84bc3f | 20.76 KiB | 434.72 KiB | 413.96 KiB |
736495a | 20.76 KiB | 435.22 KiB | 414.46 KiB |
32ac934 | 21.58 KiB | 616.72 KiB | 595.14 KiB |
326b7eb | 20.76 KiB | 432.31 KiB | 411.55 KiB |
Previous results on branch: armcknight/feat/3555-continuous-profiling/5-implementation/12-rework-continuous-profiling-options
Startup times
Revision | Plain | With Sentry | Diff |
---|---|---|---|
3e1f4ee | 1234.98 ms | 1253.38 ms | 18.40 ms |
8364b13 | 1244.82 ms | 1262.10 ms | 17.29 ms |
73665c4 | 1217.96 ms | 1242.72 ms | 24.76 ms |
App size
Revision | Plain | With Sentry | Diff |
---|---|---|---|
3e1f4ee | 21.58 KiB | 656.80 KiB | 635.21 KiB |
8364b13 | 21.58 KiB | 643.31 KiB | 621.73 KiB |
73665c4 | 21.58 KiB | 655.80 KiB | 634.21 KiB |
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.
PR looks about right. I'm going to give this a full review once it's marked as ready for review.
…esSampleRate=nil to enable
…g tests; add new private SentryOptions.isContinuousProfiling method, and note to isProfilingEnabled prop
90d0fd0
to
fc7f58b
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.
LGTM
…spots that missed the changeover to isContinuousProfiling enabled
…x some spots that missed the changeover to isContinuousProfiling enabled
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.
Again, LGTM.
…continuous-profiling/5-implementation/12-rework-continuous-profiling-options
After some team discussion, we decided to change how continuous profiling is enabled. Remove SentryOptions.enableContinuousProfiling, and make setting SentryOptions.profilesSampleRate = nil the way to do it.
ETA (3 Jun 2024): a profilesSampleRate of 0 also enables continuous profiling. If a sampler function is defined, always disable continuous profiling.
Second edit: we decided to go back on the decision to overload the 0 value. Now, only setting it to nil is the way to enable continuous profiling again.
#skip-changelog; for #3555