Skip to content

core(third-party-summary): correct blocking time calculation#16117

Merged
adamraine merged 9 commits intomainfrom
self-blocking-time
Aug 6, 2024
Merged

core(third-party-summary): correct blocking time calculation#16117
adamraine merged 9 commits intomainfrom
self-blocking-time

Conversation

@adamraine
Copy link
Copy Markdown
Contributor

@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
@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