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

core(network-requests): include starting timestamp as debug data #14253

Merged
merged 2 commits into from
Aug 2, 2022

Conversation

brendankenny
Copy link
Member

Like #14252, this allows comparing two hidden debug audits with slightly different time origins.

The network-requests hidden audit uses the first network request start time as time zero, and emits all network timestamps relative to that point in the LHR.

This is fine for most purposes, unless you want to compare network request times to metric timestamps, which use navStart as a time origin. navStart and the first networkRequest are usually very close (a few milliseconds...trace events are navigationStart and the following ResourceWillSendRequest with the same requestId as the navStart's navigationId), but not simultaneous.

Rather than add the trace as a required artifact to the network-requests audit (complicating it and increasing the chances the audit will error or not be able to run), this PR just adds the raw request timestamp to the debugData since this is primarily for debugging. When comparing to e.g. observedLargestContentfulPaintAllFramesTs over in metrics, this base timestamp can be added to the network requests startTimes and the numbers can be compared directly.

@brendankenny brendankenny requested a review from a team as a code owner August 1, 2022 22:35
@brendankenny brendankenny requested review from connorjclark, alexnj and a team and removed request for a team August 1, 2022 22:35
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.

None yet

2 participants