mirror of
https://github.com/zebrajr/react.git
synced 2025-12-07 12:20:38 +01:00
Until now, DEV and PROFILING builds of React recorded Timeline profiling data using the User Timing API. This commit changes things so that React records this data by calling methods on the DevTools hook. (For now, DevTools still records that data using the User Timing API, to match previous behavior.) This commit is large but most of it is just moving things around: * New methods have been added to the DevTools hook (in "backend/profilingHooks") for recording the Timeline performance events. * Reconciler's "ReactFiberDevToolsHook" has been updated to call these new methods (when they're present). * User Timing method calls in "SchedulingProfiler" have been moved to DevTools "backend/profilingHooks" (to match previous behavior, for now). * The old reconciler tests, "SchedulingProfiler-test" and "SchedulingProfilerLabels-test", have been moved into DevTools "TimelineProfiler-test" to ensure behavior didn't change unexpectedly. * Two new methods have been added to the injected renderer interface: injectProfilingHooks() and getLaneLabelMap(). Relates to #22529. |
||
|---|---|---|
| .. | ||
| matchers | ||
| spec-equivalence-reporter | ||
| typescript | ||
| config.base.js | ||
| config.build-devtools.js | ||
| config.build.js | ||
| config.source-persistent.js | ||
| config.source-www.js | ||
| config.source.js | ||
| dont-run-jest-directly.js | ||
| jest-cli.js | ||
| jest.js | ||
| jestSequencer.js | ||
| noHaste.js | ||
| preprocessor.js | ||
| setupEnvironment.js | ||
| setupGlobal.js | ||
| setupHostConfigs.js | ||
| setupTests.build.js | ||
| setupTests.js | ||
| setupTests.persistent.js | ||
| setupTests.www.js | ||
| shouldIgnoreConsoleError.js | ||
| TestFlags.js | ||