feat: Hang tracker using runloop observer#7464
Conversation
Semver Impact of This PR🟡 Minor (new features) 📋 Changelog PreviewThis is how your changes will appear in the changelog. New Features ✨
Bug Fixes 🐛
Documentation 📚
Internal Changes 🔧
Other
🤖 This preview updates automatically when you update the PR. |
|
5d87757 to
504fe19
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7464 +/- ##
=============================================
+ Coverage 85.272% 85.923% +0.650%
=============================================
Files 479 480 +1
Lines 28620 28742 +122
Branches 12444 12504 +60
=============================================
+ Hits 24405 24696 +291
+ Misses 4168 3998 -170
- Partials 47 48 +1
... and 13 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
4c15468 to
9804e83
Compare
Performance metrics 🚀
|
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| f38f4e9 | 1221.50 ms | 1242.64 ms | 21.14 ms |
| d69379c | 1211.30 ms | 1234.77 ms | 23.47 ms |
| 2d59844 | 1208.98 ms | 1245.25 ms | 36.27 ms |
| 1357911 | 1222.84 ms | 1258.38 ms | 35.54 ms |
| b984142 | 1222.18 ms | 1257.77 ms | 35.59 ms |
| aa58669 | 1218.51 ms | 1258.55 ms | 40.04 ms |
| 5ca545a | 1219.06 ms | 1244.59 ms | 25.53 ms |
| 3bf0d3f | 1202.12 ms | 1237.23 ms | 35.11 ms |
| 93ef486 | 1220.22 ms | 1244.96 ms | 24.74 ms |
| fee8669 | 1220.50 ms | 1231.84 ms | 11.34 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| f38f4e9 | 24.14 KiB | 1.10 MiB | 1.07 MiB |
| d69379c | 24.14 KiB | 1.11 MiB | 1.09 MiB |
| 2d59844 | 24.14 KiB | 1.09 MiB | 1.06 MiB |
| 1357911 | 24.14 KiB | 1.07 MiB | 1.04 MiB |
| b984142 | 24.14 KiB | 1.11 MiB | 1.09 MiB |
| aa58669 | 24.14 KiB | 1.10 MiB | 1.07 MiB |
| 5ca545a | 24.14 KiB | 1.06 MiB | 1.04 MiB |
| 3bf0d3f | 24.14 KiB | 1.04 MiB | 1.02 MiB |
| 93ef486 | 24.14 KiB | 1.06 MiB | 1.04 MiB |
| fee8669 | 24.14 KiB | 1.10 MiB | 1.08 MiB |
Previous results on branch: hangTrackerAbstraction2
Startup times
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 80dcd49 | 1215.90 ms | 1248.20 ms | 32.30 ms |
| 9381615 | 1199.08 ms | 1229.09 ms | 30.01 ms |
| 29c1d77 | 1224.26 ms | 1260.20 ms | 35.94 ms |
| c7d530c | 1221.96 ms | 1259.06 ms | 37.11 ms |
| 3488362 | 1205.75 ms | 1244.83 ms | 39.08 ms |
| 052a331 | 1226.04 ms | 1263.20 ms | 37.16 ms |
| 1ea2069 | 1224.09 ms | 1255.49 ms | 31.40 ms |
| 555ec8a | 1227.52 ms | 1260.31 ms | 32.78 ms |
| a286479 | 1227.00 ms | 1259.46 ms | 32.46 ms |
| c961e27 | 1212.32 ms | 1252.95 ms | 40.64 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 80dcd49 | 24.14 KiB | 1.12 MiB | 1.10 MiB |
| 9381615 | 24.14 KiB | 1.12 MiB | 1.09 MiB |
| 29c1d77 | 24.14 KiB | 1.12 MiB | 1.09 MiB |
| c7d530c | 24.14 KiB | 1.12 MiB | 1.10 MiB |
| 3488362 | 24.14 KiB | 1.12 MiB | 1.09 MiB |
| 052a331 | 24.14 KiB | 1.12 MiB | 1.09 MiB |
| 1ea2069 | 24.14 KiB | 1.12 MiB | 1.09 MiB |
| 555ec8a | 24.14 KiB | 1.12 MiB | 1.09 MiB |
| a286479 | 24.14 KiB | 1.12 MiB | 1.10 MiB |
| c961e27 | 24.14 KiB | 1.12 MiB | 1.10 MiB |
9804e83 to
59b2337
Compare
d96e106 to
7bc3d16
Compare
|
@noahsmartin, as the PR description states WIP, I converted this to a draft PR so it clearly signals it's not ready for review. Feel free to make it ready for review once it's ready 😃 |
|
@cursoragent review |
|
@claude review |
This comment was marked as outdated.
This comment was marked as outdated.
32d11ec to
873f1aa
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
66a955f to
27df776
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated 7 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
5530258 to
a324e68
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated 5 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
a324e68 to
1c6a7f6
Compare
philprime
left a comment
There was a problem hiding this comment.
@noahsmartin please review and resolve all open comments so we can merge it. I am uncertain which ones you already addressed
Converts the watchdog tracker to use a runloop observer. This avoids a CADisplayLink constantly spinning the main runloop. The hang tracker class is generic enough to be used for other use cases that are currently using display links.
Closes #7470