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(fr): enable traces artifact in timespan mode #12695

Merged
merged 5 commits into from
Jun 25, 2021

Conversation

patrickhulce
Copy link
Collaborator

Summary
Enables the traces artifact in timespan mode! 🎉

  • Enable the artifact itself.
  • Limits many audits to supportedMode: ['navigation'] if they don't immediately work in timespan mode (@adamraine to do a deeper pass on these for a breakup plan).
  • Mark TBT notApplicable when throttlingMethod is simulate.
  • Implement temporary alternate wastedMs computation method for opportunities to use until the rework.
  • Replaces a few usages of findMainDocument with a new findOptionalMainDocument version that returns undefined instead of throwing.

See https://melodic-class.glitch.me/cerealshack-timespan.html for what a timespan report looks like after this.

Related Issues/PRs
ref #11313
ref #12595

lighthouse-core/computed/metrics/timing-summary.js Outdated Show resolved Hide resolved
observedLargestContentfulPaint: processedNavigation && processedNavigation.timings.largestContentfulPaint, // eslint-disable-line max-len
observedLargestContentfulPaintTs: processedNavigation && processedNavigation.timestamps.largestContentfulPaint, // eslint-disable-line max-len
observedLargestContentfulPaintAllFrames: processedNavigation && processedNavigation.timings.largestContentfulPaintAllFrames, // eslint-disable-line max-len
observedLargestContentfulPaintAllFramesTs: processedNavigation && processedNavigation.timestamps.largestContentfulPaintAllFrames, // eslint-disable-line max-len
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when can we do a?.b

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not soon enough! haha

@patrickhulce patrickhulce merged commit a5be72c into master Jun 25, 2021
@patrickhulce patrickhulce deleted the fr_traces_in_timespan branch June 25, 2021 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants