react/scripts/jest
Brian Vaughn 51947a14bb
Refactored how React/DevTools log Timeline performance data (#23102)
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.
2022-01-13 14:55:54 -05:00
..
matchers Refactored how React/DevTools log Timeline performance data (#23102) 2022-01-13 14:55:54 -05:00
spec-equivalence-reporter Update test and stack frame code to support newer V8 stack formats (#22477) 2021-10-11 18:40:42 -04:00
typescript Remove internal act builds from public modules (#21721) 2021-06-22 14:29:35 -07:00
config.base.js Update jest to v26 (#21574) 2021-05-27 16:33:57 +01:00
config.build-devtools.js [build2 -> build] Local scripts 2021-09-21 15:14:09 -04:00
config.build.js Upgrade useSyncExternalStore to alpha channel (#22662) 2021-10-31 15:38:03 -07:00
config.source-persistent.js DevTools: Show hook names based on variable usage (#21641) 2021-07-01 14:39:18 -04:00
config.source-www.js DevTools: Show hook names based on variable usage (#21641) 2021-07-01 14:39:18 -04:00
config.source.js DevTools: Show hook names based on variable usage (#21641) 2021-07-01 14:39:18 -04:00
dont-run-jest-directly.js Add error when running jest directly (#12726) 2018-05-01 12:46:17 -07:00
jest-cli.js Console message fixed for devtools (#23067) 2022-01-05 11:45:45 -05:00
jest.js Add new test cli (#19184) 2020-06-25 20:39:50 -04:00
jestSequencer.js Parallelize Jest in CI (#19552) 2020-08-07 16:32:59 -04:00
noHaste.js Forbid Haste in Jest (#11647) 2017-11-23 18:02:47 +00:00
preprocessor.js Follow-up improvements to error code extraction infra (#22516) 2021-10-31 15:37:32 -07:00
setupEnvironment.js Initial implementation of cache cleanup (#22510) 2021-10-21 14:11:42 -07:00
setupGlobal.js Use toMatchInlineSnapshot for dehydrated values (#20618) 2021-04-26 12:30:34 -04:00
setupHostConfigs.js Resolve the true entry point during tests (#21505) 2021-06-02 18:03:29 -07:00
setupTests.build.js Update jest to v26 (#21574) 2021-05-27 16:33:57 +01:00
setupTests.js Update test and stack frame code to support newer V8 stack formats (#22477) 2021-10-11 18:40:42 -04:00
setupTests.persistent.js Update jest to v26 (#21574) 2021-05-27 16:33:57 +01:00
setupTests.www.js Set up test infra for dynamic Scheduler flags (#22139) 2021-08-20 06:56:20 -07:00
shouldIgnoreConsoleError.js Throw when act is used in production (#21686) 2021-06-16 16:29:51 -04:00
TestFlags.js Move SuspenseList to experimental channel (#22765) 2021-11-15 10:12:56 -08:00