[go: up one dir, main page]

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(render-blocking): use trace engine as the source of truth #15839

Merged
merged 15 commits into from
Apr 11, 2024

Conversation

adamraine
Copy link
Member
@adamraine adamraine commented Feb 28, 2024

#2065

https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5250877

Uses the new RenderBlocking insight in the trace engine to find render blocking requests. Also eliminates the need for the TagsBlockingFirstPaint artifact.

@connorjclark
Copy link
Collaborator

Did you assess the differences between our logic in TabsBlockingFirstPaint and using the blink signal? ref #2065 (comment)

@adamraine
Copy link
Member Author

I verified that our expectations in dbw smoke test are the same but did not inspect the raw data.

@adamraine
Copy link
Member Author

Looks like this is working, but we will need to wait for M123 to be stable before we think about shipping this

@@ -829,6 +829,9 @@ class TraceProcessor {
/** @param {number=} ts */
const maybeGetTiming = (ts) => ts === undefined ? undefined : getTiming(ts);

const navigationId = timeOriginEvt.args.data?.navigationId;
if (!navigationId) throw new Error('No navigation ID');
Copy link
Member Author

Choose a reason for hiding this comment

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

Several old traces don't have this event...so may need to update them or do a workaround

@adamraine adamraine changed the title WIP: use trace engine as the source of truth for render blocking core(render-blocking-resources): use trace engine as the source of truth Apr 11, 2024
@adamraine adamraine marked this pull request as ready for review April 11, 2024 17:31
@adamraine adamraine requested a review from a team as a code owner April 11, 2024 17:31
@adamraine adamraine requested review from connorjclark and removed request for a team April 11, 2024 17:31
@adamraine adamraine changed the title core(render-blocking-resources): use trace engine as the source of truth core(render-blocking): use trace engine as the source of truth Apr 11, 2024
@adamraine adamraine merged commit 591988e into main Apr 11, 2024
27 checks passed
@adamraine adamraine deleted the render-blocking-rpp-trace-engine branch April 11, 2024 18:01
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