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(trace-processor): correct overlapping tasks #15921

Merged
merged 3 commits into from
Apr 4, 2024

Conversation

adamraine
Copy link
Member

Tasks can sometimes be overlapping as of M122: https://crbug.com/329678173

This probably needs a fix for the trace events themselves, but until then we can approximate the correct behavior by cutting of tasks that overlap with the next task.

Ref #15896

@adamraine adamraine requested a review from a team as a code owner April 4, 2024 21:44
@adamraine adamraine requested review from connorjclark and removed request for a team April 4, 2024 21:44
@@ -304,7 +304,7 @@ describe('Long tasks audit', () => {
}],
},
});
expect(result.metricSavings.TBT).toBeApproximately(353.53);
expect(result.metricSavings.TBT).toBeApproximately(171.95);
Copy link
Member Author

Choose a reason for hiding this comment

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

I checked, this trace does have overlapping events: https://trace.cafe/t/ETHMnpFcQx

Copy link
Member

@paulirish paulirish left a comment

Choose a reason for hiding this comment

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

love it. thank you

@adamraine adamraine merged commit 6334af9 into main Apr 4, 2024
29 checks passed
@adamraine adamraine deleted the correct-overlapping-tasks branch April 4, 2024 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
4 participants