-
-
Notifications
You must be signed in to change notification settings - Fork 239
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
Add debounce to ScreenshotWidget
#2368
base: main
Are you sure you want to change the base?
Conversation
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2368 +/- ##
==========================================
+ Coverage 85.06% 86.02% +0.96%
==========================================
Files 257 82 -175
Lines 9191 2883 -6308
==========================================
- Hits 7818 2480 -5338
+ Misses 1373 403 -970 ☔ View full report in Codecov by Sentry. |
iOS Performance metrics 🚀
|
Revision | Plain | With Sentry | Diff |
---|---|---|---|
3a43905 | 1254.31 ms | 1266.35 ms | 12.04 ms |
895becc | 1288.00 ms | 1308.63 ms | 20.63 ms |
ed2ae08 | 1222.10 ms | 1226.57 ms | 4.47 ms |
3a16179 | 1238.18 ms | 1255.62 ms | 17.44 ms |
6572f8d | 1242.16 ms | 1246.63 ms | 4.47 ms |
62dde43 | 1258.43 ms | 1276.81 ms | 18.38 ms |
5112c69 | 1272.76 ms | 1293.37 ms | 20.61 ms |
b44db8f | 1255.29 ms | 1258.90 ms | 3.61 ms |
8cb6557 | 1265.14 ms | 1266.08 ms | 0.94 ms |
136c365 | 1248.12 ms | 1277.33 ms | 29.20 ms |
App size
Revision | Plain | With Sentry | Diff |
---|---|---|---|
3a43905 | 8.10 MiB | 9.18 MiB | 1.08 MiB |
895becc | 8.10 MiB | 9.18 MiB | 1.08 MiB |
ed2ae08 | 8.28 MiB | 9.34 MiB | 1.06 MiB |
3a16179 | 8.38 MiB | 9.73 MiB | 1.35 MiB |
6572f8d | 8.29 MiB | 9.36 MiB | 1.07 MiB |
62dde43 | 8.16 MiB | 9.17 MiB | 1.01 MiB |
5112c69 | 8.16 MiB | 9.17 MiB | 1.01 MiB |
b44db8f | 8.29 MiB | 9.37 MiB | 1.08 MiB |
8cb6557 | 8.10 MiB | 9.18 MiB | 1.08 MiB |
136c365 | 8.38 MiB | 9.75 MiB | 1.37 MiB |
Android Performance metrics 🚀
|
Revision | Plain | With Sentry | Diff |
---|---|---|---|
e5b744f | 302.70 ms | 342.17 ms | 39.47 ms |
0ac1eed | 370.60 ms | 441.54 ms | 70.94 ms |
90a08ea | 477.25 ms | 534.10 ms | 56.85 ms |
0db91cc | 327.85 ms | 387.31 ms | 59.46 ms |
061fed2 | 434.11 ms | 506.49 ms | 72.38 ms |
4829ad3 | 381.55 ms | 455.45 ms | 73.90 ms |
519423f | 357.00 ms | 415.77 ms | 58.77 ms |
ddc97ad | 331.45 ms | 384.06 ms | 52.61 ms |
e3ef570 | 389.71 ms | 459.16 ms | 69.45 ms |
2d3b03d | 309.53 ms | 353.40 ms | 43.87 ms |
App size
Revision | Plain | With Sentry | Diff |
---|---|---|---|
e5b744f | 6.06 MiB | 7.09 MiB | 1.03 MiB |
0ac1eed | 6.06 MiB | 7.03 MiB | 990.44 KiB |
90a08ea | 6.49 MiB | 7.55 MiB | 1.06 MiB |
0db91cc | 5.94 MiB | 6.95 MiB | 1.01 MiB |
061fed2 | 6.52 MiB | 7.59 MiB | 1.06 MiB |
4829ad3 | 6.33 MiB | 7.26 MiB | 943.11 KiB |
519423f | 6.06 MiB | 7.03 MiB | 989.24 KiB |
ddc97ad | 6.16 MiB | 7.14 MiB | 1003.75 KiB |
e3ef570 | 6.33 MiB | 7.26 MiB | 950.38 KiB |
2d3b03d | 6.06 MiB | 7.09 MiB | 1.03 MiB |
Closing due to discussion here: #2371 (comment) |
# Conflicts: # flutter/lib/src/event_processor/screenshot_event_processor.dart
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 👍
I'll approve once the tests etc are green
flutter/lib/src/event_processor/screenshot_event_processor.dart
Outdated
Show resolved
Hide resolved
as mentioned, let's deprecate |
@buenaflor Looks like we have some provisioning profile issue. |
@denrase on it |
/// Sets a callback which is executed before capturing screenshots. Only | ||
/// relevant if `attachScreenshot` is set to true. When false is returned | ||
/// from the function, no screenshot will be attached. | ||
BeforeScreenshotCallback? beforeScreenshot; | ||
BeforeCaptureCallback? beforeCapture; |
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.
📜 Description
Debounce screenshots made by sentry to avoid being removed by iOS watchdog.
💡 Motivation and Context
Relates to #2360
Relates to #2368
💚 How did you test it?
Unit tests.
📝 Checklist
sendDefaultPii
is enabled