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-6298] Improve accuracy of KSCrashReport timestamp #1062

Merged
merged 2 commits into from
Apr 8, 2021

Conversation

nickdowell
Copy link
Contributor

@nickdowell nickdowell commented Apr 6, 2021

Goal

KSCrashReport timestamps were accurate only to the nearest second.

This mean that some breadcrumbs could appear to occur after the error, e.g.

breadcrumbs

Changeset

Add a new BSG_KSCrashField_Timestamp_Millis field to KSCrashReports containing a millisecond-accurate timestamp.

Based on the gettimeofday() API which although not documented to be async-signal safe, is used by times() which is...

Testing

Was able to reliably detect the issue in E2E tests. Verified that they now pass.

@nickdowell nickdowell changed the title [PLAT-6298] Improve accuracy of KSCrashReport timestamps [PLAT-6298] Improve accuracy of KSCrashReport timestamp Apr 6, 2021
@github-actions
Copy link

github-actions bot commented Apr 6, 2021

Infer: No issues found 🎉

OCLint: No issues found 🎉

Bugsnag.framework binary size increased by 16,448 bytes from 1,102,960 to 1,119,408

Generated by 🚫 Danger

@nickdowell nickdowell force-pushed the nickdowell/crash-report-timestamp-accuracy branch from 73f2df4 to 8e165d3 Compare April 6, 2021 10:34
@nickdowell nickdowell marked this pull request as ready for review April 6, 2021 10:34
@nickdowell nickdowell requested review from kattrali and kstenerud April 6, 2021 10:34
@nickdowell nickdowell marked this pull request as draft April 6, 2021 10:53
@nickdowell

This comment has been minimized.

@nickdowell nickdowell force-pushed the nickdowell/crash-report-timestamp-accuracy branch from 8e165d3 to 04e0913 Compare April 8, 2021 08:44
@nickdowell nickdowell marked this pull request as ready for review April 8, 2021 09:07
@nickdowell nickdowell requested review from kattrali and kstenerud April 8, 2021 09:07
@nickdowell nickdowell merged commit 33db51d into next Apr 8, 2021
@nickdowell nickdowell deleted the nickdowell/crash-report-timestamp-accuracy branch April 8, 2021 10:48
@nickdowell nickdowell mentioned this pull request Apr 14, 2021
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