-
-
Notifications
You must be signed in to change notification settings - Fork 435
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
improve default debouncing mechanism #2945
Conversation
added execution counter to Debouncer
|
There is also another way: debounce randomly after the first event, with a hard limit of debouncing in a specific time frame. |
… into feat/improve-default-debouncing
Performance metrics 🚀
|
Revision | Plain | With Sentry | Diff |
---|---|---|---|
9e60fc1 | 283.04 ms | 324.09 ms | 41.04 ms |
496bdfd | 272.86 ms | 407.33 ms | 134.48 ms |
9e60fc1 | 310.37 ms | 359.48 ms | 49.11 ms |
496bdfd | 301.22 ms | 343.96 ms | 42.73 ms |
87b3774 | 310.48 ms | 362.04 ms | 51.56 ms |
9e60fc1 | 334.08 ms | 380.00 ms | 45.92 ms |
4bf202b | 331.20 ms | 345.24 ms | 14.04 ms |
9e60fc1 | 337.84 ms | 385.24 ms | 47.40 ms |
adf8fe3 | 300.49 ms | 357.36 ms | 56.87 ms |
9e60fc1 | 308.22 ms | 361.72 ms | 53.50 ms |
App size
Revision | Plain | With Sentry | Diff |
---|---|---|---|
9e60fc1 | 1.72 MiB | 2.29 MiB | 575.91 KiB |
496bdfd | 1.72 MiB | 2.28 MiB | 571.82 KiB |
9e60fc1 | 1.72 MiB | 2.29 MiB | 575.91 KiB |
496bdfd | 1.72 MiB | 2.28 MiB | 571.82 KiB |
87b3774 | 1.72 MiB | 2.29 MiB | 575.54 KiB |
9e60fc1 | 1.72 MiB | 2.29 MiB | 575.91 KiB |
4bf202b | 1.72 MiB | 2.29 MiB | 575.54 KiB |
9e60fc1 | 1.72 MiB | 2.29 MiB | 575.91 KiB |
adf8fe3 | 1.72 MiB | 2.29 MiB | 575.24 KiB |
9e60fc1 | 1.72 MiB | 2.29 MiB | 575.91 KiB |
Previous results on branch: feat/improve-default-debouncing
Startup times
Revision | Plain | With Sentry | Diff |
---|---|---|---|
a9bde15 | 370.10 ms | 441.64 ms | 71.54 ms |
06c1ec2 | 361.11 ms | 456.84 ms | 95.73 ms |
400216b | 382.32 ms | 446.04 ms | 63.72 ms |
83de545 | 318.80 ms | 370.10 ms | 51.30 ms |
6d1a864 | 362.58 ms | 439.10 ms | 76.52 ms |
App size
Revision | Plain | With Sentry | Diff |
---|---|---|---|
a9bde15 | 1.72 MiB | 2.29 MiB | 576.02 KiB |
06c1ec2 | 1.72 MiB | 2.29 MiB | 576.33 KiB |
400216b | 1.72 MiB | 2.29 MiB | 576.02 KiB |
83de545 | 1.72 MiB | 2.29 MiB | 576.02 KiB |
6d1a864 | 1.72 MiB | 2.29 MiB | 576.02 KiB |
Codecov ReportAttention:
... and 17 files with indirect coverage changes 📢 Thoughts on this report? Let us know!. |
Thinking more about it, having random number would make it possible to have events with View Hierarchy, but without Screeshot and viceversa. Probably good enough as is |
sentry-android-core/src/main/java/io/sentry/android/core/internal/util/Debouncer.java
Outdated
Show resolved
Hide resolved
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, besides one comment wrt concurrency
📜 Description
improve default SS/VH debouncing mechanism: after 3 times occurring in a time frame, the next occurrence is debounced
added execution counter to Debouncer
💡 Motivation and Context
Closes #2917
💚 How did you test it?
Unit test
📝 Checklist
sendDefaultPII
is enabled.🔮 Next steps