-
-
Notifications
You must be signed in to change notification settings - Fork 358
Fix: Manually add Dyld image to images cache + locate addresses in dyld #5418
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 #5418 +/- ##
=============================================
+ Coverage 86.063% 86.105% +0.042%
=============================================
Files 399 400 +1
Lines 34621 34698 +77
Branches 14980 15019 +39
=============================================
+ Hits 29796 29877 +81
+ Misses 4780 4773 -7
- Partials 45 48 +3
... and 11 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 |
---|---|---|---|
3f6c30b | 1252.98 ms | 1266.22 ms | 13.24 ms |
087a3b3 | 1231.73 ms | 1251.13 ms | 19.39 ms |
f8833c4 | 1229.69 ms | 1236.45 ms | 6.76 ms |
6e342ac | 1202.98 ms | 1228.74 ms | 25.76 ms |
becc941 | 1221.90 ms | 1240.37 ms | 18.47 ms |
dc0db9e | 1246.06 ms | 1260.46 ms | 14.40 ms |
2f8b3a8 | 1233.76 ms | 1260.24 ms | 26.48 ms |
c7e720a | 1221.46 ms | 1247.84 ms | 26.38 ms |
b2f82fa | 1236.94 ms | 1262.86 ms | 25.92 ms |
4f31f66 | 1213.96 ms | 1236.76 ms | 22.80 ms |
App size
Revision | Plain | With Sentry | Diff |
---|---|---|---|
3f6c30b | 22.85 KiB | 408.88 KiB | 386.03 KiB |
087a3b3 | 21.58 KiB | 707.42 KiB | 685.84 KiB |
f8833c4 | 21.58 KiB | 422.66 KiB | 401.08 KiB |
6e342ac | 20.76 KiB | 436.66 KiB | 415.90 KiB |
becc941 | 21.58 KiB | 419.82 KiB | 398.24 KiB |
dc0db9e | 20.76 KiB | 419.62 KiB | 398.86 KiB |
2f8b3a8 | 20.76 KiB | 434.72 KiB | 413.96 KiB |
c7e720a | 22.30 KiB | 851.31 KiB | 829.00 KiB |
b2f82fa | 20.76 KiB | 419.62 KiB | 398.86 KiB |
4f31f66 | 21.58 KiB | 682.39 KiB | 660.81 KiB |
Previous results on branch: itaybre/dyld_image
Startup times
Revision | Plain | With Sentry | Diff |
---|---|---|---|
0fe31b7 | 1220.00 ms | 1243.10 ms | 23.10 ms |
04feed7 | 1221.96 ms | 1244.73 ms | 22.77 ms |
ae51a85 | 1213.08 ms | 1236.35 ms | 23.27 ms |
4d30b04 | 1226.94 ms | 1245.63 ms | 18.69 ms |
App size
Revision | Plain | With Sentry | Diff |
---|---|---|---|
0fe31b7 | 23.75 KiB | 847.50 KiB | 823.75 KiB |
04feed7 | 23.75 KiB | 847.97 KiB | 824.22 KiB |
ae51a85 | 23.75 KiB | 847.84 KiB | 824.09 KiB |
4d30b04 | 23.75 KiB | 848.00 KiB | 824.25 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.
Nice work. We should probably address the codecov annotations here if at all possible, to address some of the non-happy-path possibilities, to make sure things don't break down if we return a NULL or 0 somewhere that doesn't handle it correctly.
📜 Description
Manually add Dyld image to images cache + locate addresses in dyld
With these changes they now show up, instead of appearing as

unknown
Now:
Note: there is still an unkown address sometimes, which not even Apple's crash reports find:
Before:

💡 Motivation and Context
Since iOS 15 and macOS 12, there are prelinked libraries when running apps, which do not show up when calling
_dyld_image_count
, thus we do not show there in our reports.Fixes: #1620
💚 How did you test it?
Unit testing + Our test sample app
📝 Checklist
You have to check all boxes before merging:
sendDefaultPII
is enabled.