react/scripts/flow
Sebastian Markbåge cd4e4d7599
Use console.timeStamp instead of performance.measure in Component Performance Track (#32736)
This is a new extension that Chrome added to the existing
`console.timeStamp` similar to the extensions added to
`performance.measure`. This one should be significantly faster because
it doesn't have the extra object indirection, it doesn't return a
`PerformanceMeasure` entry and doesn't register itself with the global
system of entries.

I also use `performance.measure` in DEV for errors since we can attach
the error to the `properties` extension which doesn't exist for
`console.timeStamp`.

A downside of using this API is that there's no programmatic API for the
site itself to collect its own logs from React. Which the previous
allowed us to use the standard `performance.getEntries()` for. The
recommendation instead will be for the site to patch `console.timeStamp`
if it wants to collect measurements from React just like you're
recommended to patch `console.error` or `fetch` or whatever to collect
other instrumentation metrics.

This extension works in Chrome canary but it doesn't yet work fully in
Chrome stable. We might want to wait until it has propagated to Chrome
to stable. It should be in Chrome 136.
2025-04-29 21:40:10 -04:00
..
config [flow] Upgrade Flow to 0.245.2 (#30919) 2024-09-09 08:41:44 -07:00
createFlowConfigs.js [flow] Remove CI_MAX_WORKERS option 2024-08-20 12:38:27 -04:00
environment.js Use console.timeStamp instead of performance.measure in Component Performance Track (#32736) 2025-04-29 21:40:10 -04:00
react-devtools.js chore[DevTools]: make clipboardWrite optional for chromium (#32262) 2025-01-30 20:08:17 +00:00
react-native-host-hooks.js [RN] Map Fabric priorities to reconciler priorities correctly (#32847) 2025-04-10 17:35:15 +01:00
runFlow.js Upgrade prettier (#26081) 2023-01-31 08:25:05 -05:00
xplat.js Update RN dynamic flag types (#28427) 2024-03-22 12:23:38 -04:00