Skip to content
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

[PLAT-7756] Omit unused binary_images in KSCrashReports #1273

Merged
merged 1 commit into from
Jan 7, 2022

Conversation

nickdowell
Copy link
Contributor

@nickdowell nickdowell commented Jan 7, 2022

Goal

Improve performance and storage requirements of writing a crash report.

Changeset

  • Adds a boolean flag to struct bsg_mach_image which is used to track which images are referenced by the crash's stack traces.
  • Only includes referenced image in binary_images.

Testing

Shows a ~30% speedup in testWriteStandardReportPerformance.

Added a unit test case to verify that only the expected binary images are included.

Existing E2E tests ensure that required image info is included - missing images would result in no machoFile etc. in the Bugsnag payload, which is checked for in our tests.

@nickdowell nickdowell changed the title Omit unreferenced binary_images [PLAT-7756] Omit unused binary_images in KSCrashReports Jan 7, 2022
@github-actions
Copy link

github-actions bot commented Jan 7, 2022

Infer: No issues found 🎉

OCLint: No issues found 🎉

Bugsnag.framework binary size did not change - 1,255,896 bytes

Generated by 🚫 Danger

@nickdowell nickdowell force-pushed the nickdowell/omit-binary-images branch from 5b22190 to bf3d451 Compare January 7, 2022 13:50
@nickdowell nickdowell merged commit 7df7b30 into next Jan 7, 2022
@nickdowell nickdowell deleted the nickdowell/omit-binary-images branch January 7, 2022 14:12
@nickdowell nickdowell mentioned this pull request Jan 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants