SIGN IN SIGN UP
facebook / react UNCLAIMED

The library for web and native user interfaces.

0 0 0 JavaScript

Ensure Performance Track are Clamped and Don't overlap (#34509)

This simplifies the logic for clamping the start times of various
phases. Instead of checking in multiple places I ensure we compute a
value for each phase that is then clamped to the next phase so they
don't overlap. If they're zero they're not printed.

I also added a name for all the anonymous labels. Those are mainly
fillers for sync work that should be quick but it helps debugging if we
can name them.

Finally the real fix is to update the clamp time which previously could
lead to overlapping entries for consecutive updates when a previous
update never finalized before the next update.

DiffTrain build for [e3c9656d20618ed321aea85cb3d844cbd1dce078](https://github.com/facebook/react/commit/e3c9656d20618ed321aea85cb3d844cbd1dce078)
S
sebmarkbage committed
67d885809a1e1a99e7eae90c03ebff5819ee56c2
Parent: 82642d8