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(third-party-summary): correct blocking time calculation #16117

Merged
merged 9 commits into from
Aug 6, 2024

Conversation

adamraine
Copy link
Member

@adamraine adamraine commented Jul 16, 2024

Closes #15184

The problem with the old method was we were doing a - 50ms operation on tasks that were not top level. These tasks do contribute to blocking time if their root task is longer than 50ms, even if they aren't larger than 50ms themselves.

The TBT impact numbers account for this by interpolating the impact of child tasks on the blocking time of the root task. This PR reuses this interpolation logic (in calculateTbtImpactForEvent) except it ignores the TBT bounds by using Infinity values.

@adamraine adamraine requested a review from a team as a code owner July 16, 2024 22:51
@adamraine adamraine requested review from connorjclark and removed request for a team July 16, 2024 22:51
@adamraine adamraine merged commit dc88928 into main Aug 6, 2024
27 checks passed
@adamraine adamraine deleted the self-blocking-time branch August 6, 2024 20:13
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.

3rd party script's Main Thread Blocking Time does not match Long Task
3 participants