dillon1000/react

Commit

[Scheduler Profiler] Use microsecond precision (#17010)

The `performance.now` returns a timestamp in milliseconds as a float.
The browser has the option to adjust the precision of the float, but
it's usually more precise than a millisecond. However, this precision
is lost when the timestamp is logged by the Scheduler profiler, because
we store the numbers in an Int32Array.

This change multiplies the millisecond float value by 1000, giving us
three more degrees of precision.
Browse files
Changed paths2 files
First-parent comparison
M packages/scheduler/src/SchedulerProfiling.js ModifiedM packages/scheduler/src/__tests__/SchedulerProfiling-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…