Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unstable scheduler/tracing API #20037

Merged
merged 2 commits into from
Apr 26, 2021

Conversation

bvaughn
Copy link
Contributor

@bvaughn bvaughn commented Oct 15, 2020

Resolves #21285

Going to be easier to review this one with whitespace hidden: https://github.com/facebook/react/pull/20037/files?w=1

Mostly just a bunch of deletions. Code to look at a little more closely:

  • packages/react-reconciler/src/ReactFiberWorkLoop.new.js

Testing this change internally via D28001916. Note that to sync to www after this change, we'll need to delete:

  • html/shared/node_modules/scheduler/tracing.js
  • html/shared/react-fb/SchedulerTracing.js

We'll want to update our JS1 sync script to remove the following files:

  • 'SchedulerTracing-dev.modern.js'
  • 'SchedulerTracing-prod.modern.js'
  • 'SchedulerTracing-profiling.modern.js'

We'll also want to update the following file to remove references to Profiler interactions and add a DEV console warning if the onlyLogInteractions option is provided:

  • html/intern/js/coreviz/react_profiler/createCoreVizOnRenderCallback.js

@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Oct 15, 2020
@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 9bd8867:

Sandbox Source
React Configuration

@sizebot
Copy link

sizebot commented Oct 15, 2020

Comparing: 84b9162...104fdc5

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.min.js = 122.76 kB 122.76 kB = 39.42 kB 39.42 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 129.34 kB 129.34 kB = 41.51 kB 41.51 kB
facebook-www/ReactDOM-prod.classic.js = 412.52 kB 406.92 kB = 76.35 kB 75.31 kB
facebook-www/ReactDOM-prod.modern.js = 400.55 kB 394.95 kB = 74.45 kB 73.41 kB
facebook-www/ReactDOMForked-prod.classic.js = 412.52 kB 406.92 kB = 76.35 kB 75.32 kB
facebook-www/ReactART-prod.classic.js = 268.36 kB 262.77 kB = 47.62 kB 46.61 kB
react-native/implementations/ReactNativeRenderer-profiling.js = 291.03 kB 284.90 kB = 52.40 kB 51.17 kB
react-native/implementations/ReactNativeRenderer-profiling.fb.js = 290.85 kB 284.72 kB = 52.34 kB 51.10 kB
oss-experimental/react-reconciler/cjs/react-reconciler.profiling.min.js = 99.30 kB 97.20 kB = 30.82 kB 30.09 kB
facebook-www/ReactART-prod.modern.js = 260.81 kB 255.22 kB = 46.36 kB 45.35 kB
react-native/implementations/ReactFabric-profiling.js = 283.82 kB 277.66 kB = 50.92 kB 49.69 kB
react-native/implementations/ReactFabric-profiling.fb.js = 283.65 kB 277.49 kB = 50.86 kB 49.62 kB
oss-stable/react-reconciler/cjs/react-reconciler.profiling.min.js = 91.87 kB 89.81 kB = 28.48 kB 27.78 kB
facebook-react-native/react-test-renderer/cjs/ReactTestRenderer-profiling.js = 250.97 kB 244.84 kB = 46.24 kB 45.02 kB
oss-experimental/react/umd/react.production.min.js = 12.03 kB 11.67 kB = 4.72 kB 4.64 kB
oss-stable/react/umd/react.production.min.js = 10.98 kB 10.62 kB = 4.44 kB 4.34 kB
oss-experimental/react/umd/react.development.js = 106.21 kB 97.01 kB = 26.32 kB 24.86 kB
oss-stable/react/umd/react.development.js = 103.95 kB 94.75 kB = 25.94 kB 24.49 kB
oss-experimental/react/umd/react.profiling.min.js = 14.25 kB 11.67 kB = 5.28 kB 4.64 kB
oss-stable/react/umd/react.profiling.min.js = 13.20 kB 10.62 kB = 4.98 kB 4.34 kB
oss-experimental/react-reconciler/cjs/react-reconciler-constants.development.js = 1.70 kB 1.06 kB = 0.74 kB 0.45 kB
oss-stable/react-reconciler/cjs/react-reconciler-constants.development.js = 1.70 kB 1.06 kB = 0.74 kB 0.45 kB
facebook-react-native/scheduler/cjs/SchedulerTracing-dev.js Deleted 8.99 kB 0.00 kB Deleted 1.79 kB 0.00 kB
facebook-react-native/scheduler/cjs/SchedulerTracing-prod.js Deleted 0.80 kB 0.00 kB Deleted 0.35 kB 0.00 kB
facebook-react-native/scheduler/cjs/SchedulerTracing-profiling.js Deleted 6.83 kB 0.00 kB Deleted 1.18 kB 0.00 kB
facebook-www/SchedulerTracing-dev.classic.js Deleted 11.36 kB 0.00 kB Deleted 2.50 kB 0.00 kB
facebook-www/SchedulerTracing-dev.modern.js Deleted 11.36 kB 0.00 kB Deleted 2.50 kB 0.00 kB
facebook-www/SchedulerTracing-prod.classic.js Deleted 6.88 kB 0.00 kB Deleted 1.21 kB 0.00 kB
facebook-www/SchedulerTracing-prod.modern.js Deleted 6.88 kB 0.00 kB Deleted 1.21 kB 0.00 kB
facebook-www/SchedulerTracing-profiling.classic.js Deleted 6.88 kB 0.00 kB Deleted 1.21 kB 0.00 kB
facebook-www/SchedulerTracing-profiling.modern.js Deleted 6.88 kB 0.00 kB Deleted 1.21 kB 0.00 kB
oss-experimental/scheduler/cjs/scheduler-tracing.development.js Deleted 9.00 kB 0.00 kB Deleted 1.81 kB 0.00 kB
oss-experimental/scheduler/cjs/scheduler-tracing.production.min.js Deleted 0.67 kB 0.00 kB Deleted 0.33 kB 0.00 kB
oss-experimental/scheduler/cjs/scheduler-tracing.profiling.min.js Deleted 3.27 kB 0.00 kB Deleted 0.94 kB 0.00 kB
oss-experimental/scheduler/tracing-profiling.js Deleted 0.21 kB 0.00 kB Deleted 0.16 kB 0.00 kB
oss-experimental/scheduler/tracing.js Deleted 0.21 kB 0.00 kB Deleted 0.15 kB 0.00 kB
oss-experimental/scheduler/umd/scheduler-tracing.development.js Deleted 2.38 kB 0.00 kB Deleted 0.63 kB 0.00 kB
oss-experimental/scheduler/umd/scheduler-tracing.production.min.js Deleted 2.38 kB 0.00 kB Deleted 0.63 kB 0.00 kB
oss-experimental/scheduler/umd/scheduler-tracing.profiling.min.js Deleted 2.38 kB 0.00 kB Deleted 0.63 kB 0.00 kB
oss-stable/scheduler/cjs/scheduler-tracing.development.js Deleted 9.00 kB 0.00 kB Deleted 1.81 kB 0.00 kB
oss-stable/scheduler/cjs/scheduler-tracing.production.min.js Deleted 0.67 kB 0.00 kB Deleted 0.33 kB 0.00 kB
oss-stable/scheduler/cjs/scheduler-tracing.profiling.min.js Deleted 3.27 kB 0.00 kB Deleted 0.94 kB 0.00 kB
oss-stable/scheduler/tracing-profiling.js Deleted 0.21 kB 0.00 kB Deleted 0.16 kB 0.00 kB
oss-stable/scheduler/tracing.js Deleted 0.21 kB 0.00 kB Deleted 0.15 kB 0.00 kB
oss-stable/scheduler/umd/scheduler-tracing.development.js Deleted 2.38 kB 0.00 kB Deleted 0.63 kB 0.00 kB
oss-stable/scheduler/umd/scheduler-tracing.production.min.js Deleted 2.38 kB 0.00 kB Deleted 0.63 kB 0.00 kB
oss-stable/scheduler/umd/scheduler-tracing.profiling.min.js Deleted 2.38 kB 0.00 kB Deleted 0.63 kB 0.00 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
facebook-www/ReactDOM-dev.classic.js = 1,073.56 kB 1,064.36 kB = 238.23 kB 236.11 kB
facebook-www/ReactDOMForked-dev.classic.js = 1,073.56 kB 1,064.36 kB = 238.22 kB 236.11 kB
facebook-www/ReactDOM-dev.modern.js = 1,047.14 kB 1,037.94 kB = 232.78 kB 230.67 kB
facebook-www/ReactDOMForked-dev.modern.js = 1,047.14 kB 1,037.93 kB = 232.78 kB 230.66 kB
oss-experimental/react-dom/cjs/react-dom.development.js = 964.73 kB 955.88 kB = 218.49 kB 216.47 kB
oss-stable/react-dom/cjs/react-dom.development.js = 913.07 kB 904.42 kB = 208.29 kB 206.32 kB
oss-experimental/react-dom/umd/react-dom.development.js = 1,014.05 kB 1,004.12 kB = 221.22 kB 219.07 kB
oss-stable/react-dom/umd/react-dom.development.js = 959.76 kB 950.05 kB = 210.93 kB 208.82 kB
react-native/implementations/ReactNativeRenderer-dev.fb.js = 715.83 kB 707.03 kB = 155.31 kB 153.27 kB
react-native/implementations/ReactNativeRenderer-dev.js = 711.00 kB 702.20 kB = 154.62 kB 152.52 kB
facebook-www/ReactDOM-profiling.classic.js = 437.89 kB 432.40 kB = 80.73 kB 79.62 kB
facebook-www/ReactDOMForked-profiling.classic.js = 437.89 kB 432.40 kB = 80.73 kB 79.63 kB
oss-experimental/react-reconciler/cjs/react-reconciler.development.js = 701.10 kB 692.25 kB = 150.15 kB 148.13 kB
react-native/implementations/ReactFabric-dev.fb.js = 696.92 kB 688.11 kB = 150.64 kB 148.57 kB
react-native/implementations/ReactFabric-dev.js = 692.07 kB 683.27 kB = 149.92 kB 147.85 kB
facebook-www/ReactART-dev.classic.js = 719.53 kB 710.32 kB = 153.41 kB 151.35 kB
facebook-www/ReactDOM-profiling.modern.js = 425.88 kB 420.39 kB = 78.87 kB 77.80 kB
facebook-www/ReactDOMForked-profiling.modern.js = 425.88 kB 420.39 kB = 78.87 kB 77.81 kB
facebook-www/ReactART-dev.modern.js = 709.23 kB 700.03 kB = 151.35 kB 149.28 kB
oss-stable/react-reconciler/cjs/react-reconciler.development.js = 656.68 kB 648.03 kB = 141.15 kB 139.15 kB
oss-experimental/react-art/umd/react-art.development.js = 745.26 kB 735.32 kB = 158.64 kB 156.47 kB
facebook-www/ReactDOM-prod.classic.js = 412.52 kB 406.92 kB = 76.35 kB 75.31 kB
facebook-www/ReactDOMForked-prod.classic.js = 412.52 kB 406.92 kB = 76.35 kB 75.32 kB
oss-experimental/react-art/cjs/react-art.development.js = 642.05 kB 633.20 kB = 140.24 kB 138.23 kB
facebook-www/ReactTestRenderer-dev.modern.js = 628.73 kB 620.05 kB = 135.53 kB 133.55 kB
facebook-www/ReactTestRenderer-dev.classic.js = 628.72 kB 620.04 kB = 135.51 kB 133.53 kB
oss-stable/react-art/umd/react-art.development.js = 701.32 kB 691.60 kB = 149.93 kB 147.81 kB
oss-experimental/react-test-renderer/cjs/react-test-renderer.development.js = 621.75 kB 613.10 kB = 136.58 kB 134.62 kB
facebook-www/ReactDOM-prod.modern.js = 400.55 kB 394.95 kB = 74.45 kB 73.41 kB
facebook-www/ReactDOMForked-prod.modern.js = 400.55 kB 394.95 kB = 74.45 kB 73.41 kB
oss-stable/react-test-renderer/cjs/react-test-renderer.development.js = 605.82 kB 597.17 kB = 133.26 kB 131.29 kB
facebook-react-native/react-test-renderer/cjs/ReactTestRenderer-dev.js = 615.97 kB 607.17 kB = 134.00 kB 131.94 kB
oss-stable/react-art/cjs/react-art.development.js = 600.25 kB 591.61 kB = 131.78 kB 129.80 kB
oss-experimental/react-dom/umd/react-dom.profiling.min.js = 136.31 kB 134.34 kB = 44.37 kB 43.73 kB
oss-experimental/react-test-renderer/umd/react-test-renderer.development.js = 652.83 kB 643.14 kB = 138.21 kB 136.10 kB
oss-stable/react-dom/umd/react-dom.profiling.min.js = 127.75 kB 125.83 kB = 41.64 kB 40.99 kB
oss-stable/react-test-renderer/umd/react-test-renderer.development.js = 636.06 kB 626.36 kB = 134.81 kB 132.71 kB
oss-experimental/react-dom/cjs/react-dom.profiling.min.js = 136.51 kB 134.41 kB = 43.76 kB 43.09 kB
oss-stable/react-dom/cjs/react-dom.profiling.min.js = 127.89 kB 125.84 kB = 41.04 kB 40.40 kB
facebook-www/ReactART-prod.classic.js = 268.36 kB 262.77 kB = 47.62 kB 46.61 kB
react-native/implementations/ReactNativeRenderer-profiling.js = 291.03 kB 284.90 kB = 52.40 kB 51.17 kB
react-native/implementations/ReactNativeRenderer-profiling.fb.js = 290.85 kB 284.72 kB = 52.34 kB 51.10 kB
oss-experimental/react-reconciler/cjs/react-reconciler.profiling.min.js = 99.30 kB 97.20 kB = 30.82 kB 30.09 kB
facebook-www/ReactART-prod.modern.js = 260.81 kB 255.22 kB = 46.36 kB 45.35 kB
react-native/implementations/ReactFabric-profiling.js = 283.82 kB 277.66 kB = 50.92 kB 49.69 kB
react-native/implementations/ReactFabric-profiling.fb.js = 283.65 kB 277.49 kB = 50.86 kB 49.62 kB
oss-stable/react-reconciler/cjs/react-reconciler.profiling.min.js = 91.87 kB 89.81 kB = 28.48 kB 27.78 kB
facebook-react-native/react-test-renderer/cjs/ReactTestRenderer-profiling.js = 250.97 kB 244.84 kB = 46.24 kB 45.02 kB
oss-experimental/react/umd/react.production.min.js = 12.03 kB 11.67 kB = 4.72 kB 4.64 kB
oss-stable/react/umd/react.production.min.js = 10.98 kB 10.62 kB = 4.44 kB 4.34 kB
oss-experimental/react/umd/react.development.js = 106.21 kB 97.01 kB = 26.32 kB 24.86 kB
oss-stable/react/umd/react.development.js = 103.95 kB 94.75 kB = 25.94 kB 24.49 kB
oss-experimental/react/umd/react.profiling.min.js = 14.25 kB 11.67 kB = 5.28 kB 4.64 kB
oss-stable/react/umd/react.profiling.min.js = 13.20 kB 10.62 kB = 4.98 kB 4.34 kB
oss-experimental/react-reconciler/cjs/react-reconciler-constants.development.js = 1.70 kB 1.06 kB = 0.74 kB 0.45 kB
oss-stable/react-reconciler/cjs/react-reconciler-constants.development.js = 1.70 kB 1.06 kB = 0.74 kB 0.45 kB
facebook-react-native/scheduler/cjs/SchedulerTracing-dev.js Deleted 8.99 kB 0.00 kB Deleted 1.79 kB 0.00 kB
facebook-react-native/scheduler/cjs/SchedulerTracing-prod.js Deleted 0.80 kB 0.00 kB Deleted 0.35 kB 0.00 kB
facebook-react-native/scheduler/cjs/SchedulerTracing-profiling.js Deleted 6.83 kB 0.00 kB Deleted 1.18 kB 0.00 kB
facebook-www/SchedulerTracing-dev.classic.js Deleted 11.36 kB 0.00 kB Deleted 2.50 kB 0.00 kB
facebook-www/SchedulerTracing-dev.modern.js Deleted 11.36 kB 0.00 kB Deleted 2.50 kB 0.00 kB
facebook-www/SchedulerTracing-prod.classic.js Deleted 6.88 kB 0.00 kB Deleted 1.21 kB 0.00 kB
facebook-www/SchedulerTracing-prod.modern.js Deleted 6.88 kB 0.00 kB Deleted 1.21 kB 0.00 kB
facebook-www/SchedulerTracing-profiling.classic.js Deleted 6.88 kB 0.00 kB Deleted 1.21 kB 0.00 kB
facebook-www/SchedulerTracing-profiling.modern.js Deleted 6.88 kB 0.00 kB Deleted 1.21 kB 0.00 kB
oss-experimental/scheduler/cjs/scheduler-tracing.development.js Deleted 9.00 kB 0.00 kB Deleted 1.81 kB 0.00 kB
oss-experimental/scheduler/cjs/scheduler-tracing.production.min.js Deleted 0.67 kB 0.00 kB Deleted 0.33 kB 0.00 kB
oss-experimental/scheduler/cjs/scheduler-tracing.profiling.min.js Deleted 3.27 kB 0.00 kB Deleted 0.94 kB 0.00 kB
oss-experimental/scheduler/tracing-profiling.js Deleted 0.21 kB 0.00 kB Deleted 0.16 kB 0.00 kB
oss-experimental/scheduler/tracing.js Deleted 0.21 kB 0.00 kB Deleted 0.15 kB 0.00 kB
oss-experimental/scheduler/umd/scheduler-tracing.development.js Deleted 2.38 kB 0.00 kB Deleted 0.63 kB 0.00 kB
oss-experimental/scheduler/umd/scheduler-tracing.production.min.js Deleted 2.38 kB 0.00 kB Deleted 0.63 kB 0.00 kB
oss-experimental/scheduler/umd/scheduler-tracing.profiling.min.js Deleted 2.38 kB 0.00 kB Deleted 0.63 kB 0.00 kB
oss-stable/scheduler/cjs/scheduler-tracing.development.js Deleted 9.00 kB 0.00 kB Deleted 1.81 kB 0.00 kB
oss-stable/scheduler/cjs/scheduler-tracing.production.min.js Deleted 0.67 kB 0.00 kB Deleted 0.33 kB 0.00 kB
oss-stable/scheduler/cjs/scheduler-tracing.profiling.min.js Deleted 3.27 kB 0.00 kB Deleted 0.94 kB 0.00 kB
oss-stable/scheduler/tracing-profiling.js Deleted 0.21 kB 0.00 kB Deleted 0.16 kB 0.00 kB
oss-stable/scheduler/tracing.js Deleted 0.21 kB 0.00 kB Deleted 0.15 kB 0.00 kB
oss-stable/scheduler/umd/scheduler-tracing.development.js Deleted 2.38 kB 0.00 kB Deleted 0.63 kB 0.00 kB
oss-stable/scheduler/umd/scheduler-tracing.production.min.js Deleted 2.38 kB 0.00 kB Deleted 0.63 kB 0.00 kB
oss-stable/scheduler/umd/scheduler-tracing.profiling.min.js Deleted 2.38 kB 0.00 kB Deleted 0.63 kB 0.00 kB

Generated by 🚫 dangerJS against 104fdc5

@sizebot
Copy link

sizebot commented Oct 15, 2020

Details of bundled changes.

Comparing: c57fe4a...9bd8867

react-dom

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-dom.development.js -1.0% -1.1% 908.85 KB 899.55 KB 206.59 KB 204.28 KB NODE_DEV
ReactDOMForked-prod.js -1.4% -1.5% 372.09 KB 366.71 KB 68.89 KB 67.89 KB FB_WWW_PROD
react-dom-server.node.development.js 0.0% 0.0% 138.57 KB 138.57 KB 36.58 KB 36.59 KB NODE_DEV
react-dom.production.min.js 0.0% 0.0% 122.42 KB 122.42 KB 39.35 KB 39.35 KB NODE_PROD
ReactDOMForked-profiling.js -1.4% -1.5% 386.58 KB 381.08 KB 71.46 KB 70.41 KB FB_WWW_PROFILING
react-dom-server.browser.development.js 0.0% 0.0% 144.73 KB 144.73 KB 36.77 KB 36.77 KB UMD_DEV
react-dom-server.node.production.min.js 0.0% 0.0% 20.66 KB 20.66 KB 7.65 KB 7.66 KB NODE_PROD
react-dom-test-utils.production.min.js 0.0% 0.0% 13.71 KB 13.71 KB 5.32 KB 5.32 KB UMD_PROD
ReactDOMTesting-dev.js +0.1% +0.2% 912.39 KB 913.44 KB 205.46 KB 205.82 KB FB_WWW_DEV
react-dom-test-utils.development.js 0.0% 0.0% 66.28 KB 66.28 KB 18.84 KB 18.84 KB NODE_DEV
ReactDOMTesting-prod.js 0.0% -0.0% 371.33 KB 371.33 KB 70.11 KB 70.11 KB FB_WWW_PROD
react-dom-unstable-fizz.node.development.js 0.0% +0.1% 5.52 KB 5.52 KB 1.84 KB 1.84 KB NODE_DEV
react-dom-test-utils.production.min.js 0.0% 0.0% 13.7 KB 13.7 KB 5.26 KB 5.27 KB NODE_PROD
react-dom-unstable-fizz.browser.development.js 0.0% +0.1% 5.25 KB 5.25 KB 1.78 KB 1.78 KB UMD_DEV
react-dom-unstable-fizz.browser.production.min.js 0.0% 🔺+0.1% 1.22 KB 1.22 KB 711 B 712 B UMD_PROD
react-dom-unstable-fizz.browser.development.js 0.0% +0.1% 4.78 KB 4.78 KB 1.68 KB 1.68 KB NODE_DEV
react-dom.development.js -1.1% -1.2% 955.04 KB 944.67 KB 209.14 KB 206.7 KB UMD_DEV
react-dom-unstable-fizz.browser.production.min.js 0.0% 🔺+0.3% 1.01 KB 1.01 KB 615 B 617 B NODE_PROD
react-dom.production.min.js 0.0% 0.0% 122.25 KB 122.25 KB 40.09 KB 40.09 KB UMD_PROD
react-dom.profiling.min.js -1.6% -1.4% 127.52 KB 125.54 KB 41.75 KB 41.18 KB UMD_PROFILING
ReactDOMForked-dev.js -0.9% -1.0% 964.1 KB 955.3 KB 214.34 KB 212.22 KB FB_WWW_DEV
react-dom.profiling.min.js -1.7% -1.6% 127.88 KB 125.74 KB 41.04 KB 40.37 KB NODE_PROFILING
react-dom-server.browser.production.min.js 0.0% 0.0% 20.34 KB 20.34 KB 7.55 KB 7.55 KB UMD_PROD
ReactDOM-dev.js -1.0% -1.1% 951.94 KB 942.33 KB 212.84 KB 210.48 KB FB_WWW_DEV
ReactDOM-prod.js -1.6% -1.6% 369.63 KB 363.73 KB 68.42 KB 67.35 KB FB_WWW_PROD
react-dom-server.browser.development.js 0.0% 0.0% 137.3 KB 137.3 KB 36.33 KB 36.33 KB NODE_DEV
ReactDOM-profiling.js -1.6% -1.5% 382.59 KB 376.46 KB 70.82 KB 69.75 KB FB_WWW_PROFILING
react-dom-server.browser.production.min.js 0.0% 0.0% 20.24 KB 20.24 KB 7.5 KB 7.5 KB NODE_PROD
ReactDOMServer-dev.js 0.0% 0.0% 141.41 KB 141.41 KB 36.26 KB 36.27 KB FB_WWW_DEV
ReactDOMServer-prod.js 0.0% 0.0% 46.44 KB 46.44 KB 10.83 KB 10.83 KB FB_WWW_PROD
react-dom-test-utils.development.js 0.0% 0.0% 71.47 KB 71.47 KB 19.35 KB 19.35 KB UMD_DEV

react-art

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
ReactART-prod.js -2.4% -2.4% 232.96 KB 227.39 KB 41.18 KB 40.19 KB FB_WWW_PROD
react-art.development.js -1.5% -1.5% 691.28 KB 680.91 KB 146.59 KB 144.47 KB UMD_DEV
react-art.production.min.js 0.0% 0.0% 111.38 KB 111.38 KB 34.58 KB 34.59 KB UMD_PROD
react-art.development.js -1.6% -1.6% 592.43 KB 583.12 KB 128.71 KB 126.64 KB NODE_DEV
react-art.production.min.js 0.0% 0.0% 76.26 KB 76.26 KB 23.67 KB 23.67 KB NODE_PROD
ReactART-dev.js -1.6% -1.6% 618.74 KB 609.12 KB 131.5 KB 129.45 KB FB_WWW_DEV

react

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-jsx-runtime.development.js 0.0% 0.0% 37.47 KB 37.47 KB 10.77 KB 10.77 KB NODE_DEV
react.development.js -8.0% -5.2% 112.43 KB 103.45 KB 27.23 KB 25.82 KB UMD_DEV
react-jsx-runtime.production.min.js 0.0% 🔺+0.3% 984 B 984 B 613 B 615 B NODE_PROD
react-unstable-cache.development.js 0.0% +0.2% 1.05 KB 1.05 KB 587 B 588 B NODE_DEV
React-dev.js 0.0% 0.0% 89 KB 89 KB 21.17 KB 21.17 KB RN_FB_DEV
react-unstable-cache.production.min.js 0.0% 🔺+0.2% 867 B 867 B 562 B 563 B NODE_PROD
React-prod.js 0.0% 0.0% 17.14 KB 17.14 KB 4.54 KB 4.54 KB RN_FB_PROD
React-profiling.js 0.0% 0.0% 17.14 KB 17.14 KB 4.54 KB 4.54 KB RN_FB_PROFILING
react-jsx-dev-runtime.development.js 0.0% 0.0% 36.89 KB 36.89 KB 10.6 KB 10.6 KB NODE_DEV
react-jsx-dev-runtime.production.min.js 0.0% 🔺+0.3% 478 B 478 B 330 B 331 B NODE_PROD
react-jsx-dev-runtime.profiling.min.js 0.0% +0.3% 477 B 477 B 329 B 330 B NODE_PROFILING
react.production.min.js -2.8% -1.9% 12.3 KB 11.95 KB 4.79 KB 4.7 KB UMD_PROD
react-jsx-runtime.profiling.min.js 0.0% +0.3% 983 B 983 B 613 B 615 B NODE_PROFILING
react.profiling.min.js -16.0% -10.6% 15.82 KB 13.29 KB 5.88 KB 5.25 KB UMD_PROFILING
react.development.js 0.0% 0.0% 74.26 KB 74.26 KB 19.67 KB 19.67 KB NODE_DEV
react.production.min.js 0.0% 0.0% 7.5 KB 7.5 KB 2.95 KB 2.95 KB NODE_PROD
React-dev.js 0.0% 0.0% 96.77 KB 96.77 KB 23.4 KB 23.4 KB FB_WWW_DEV
React-prod.js 0.0% 0.0% 16.88 KB 16.88 KB 4.37 KB 4.37 KB FB_WWW_PROD
React-profiling.js 0.0% 0.0% 16.88 KB 16.88 KB 4.37 KB 4.37 KB FB_WWW_PROFILING

react-reconciler

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-reconciler.development.js -1.4% -1.5% 650.01 KB 640.71 KB 138.69 KB 136.61 KB NODE_DEV
react-reconciler-reflection.development.js 0.0% 0.0% 16.61 KB 16.61 KB 4.95 KB 4.96 KB NODE_DEV
react-reconciler.production.min.js 0.0% 0.0% 86.19 KB 86.19 KB 26.54 KB 26.54 KB NODE_PROD
react-reconciler.profiling.min.js -2.3% -2.2% 91.62 KB 89.5 KB 28.18 KB 27.56 KB NODE_PROFILING

react-test-renderer

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-test-renderer.development.js -1.7% -1.7% 605.57 KB 595.31 KB 127.63 KB 125.5 KB UMD_DEV
react-test-renderer.production.min.js 0.0% 0.0% 76.45 KB 76.45 KB 24 KB 24 KB UMD_PROD
react-test-renderer.development.js -1.6% -1.6% 576.85 KB 567.63 KB 126.14 KB 124.15 KB NODE_DEV
react-test-renderer.production.min.js 0.0% 0.0% 76.25 KB 76.25 KB 23.71 KB 23.71 KB NODE_PROD
ReactTestRenderer-dev.js -1.6% -1.6% 591.94 KB 582.58 KB 127.26 KB 125.24 KB FB_WWW_DEV
ReactTestRenderer-dev.js -1.6% -1.6% 586.62 KB 577.29 KB 127.03 KB 125 KB RN_FB_DEV
ReactTestRenderer-profiling.js -2.5% -2.5% 240.36 KB 234.43 KB 43.96 KB 42.87 KB RN_FB_PROFILING

react-native-renderer

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
ReactNativeRenderer-dev.js -1.4% -1.4% 677.08 KB 667.76 KB 146.94 KB 144.86 KB RN_OSS_DEV
ReactNativeRenderer-profiling.js -2.1% -2.2% 279.14 KB 273.21 KB 49.98 KB 48.88 KB RN_OSS_PROFILING
ReactFabric-dev.js -1.4% -1.4% 657.83 KB 648.51 KB 142.3 KB 140.24 KB RN_OSS_DEV
ReactFabric-profiling.js -2.1% -2.3% 272.84 KB 267.05 KB 48.72 KB 47.6 KB RN_OSS_PROFILING

ReactDOM: size: 0.0%, gzip: 0.0%

React: size: -2.8%, gzip: -1.9%

Size changes (experimental)

Generated by 🚫 dangerJS against 9bd8867

@bvaughn
Copy link
Contributor Author

bvaughn commented Oct 15, 2020

Is it worth implementing a much scaled down version of tracing that is React-specific (doesn’t try to wrap non-React APIs) and never cascades (so the implementation complexity is low and interactions don’t leak into unrelated cascading commits)?

@sebmarkbage
Copy link
Collaborator

I appreciate this PR. I hear you loud and clear. Let's discuss what remaining features are useful and how else we can solve them.

@bvaughn
Copy link
Contributor Author

bvaughn commented Oct 15, 2020

Sure. Had this as a topic for the sync today but forgot you wouldn't be at this one. Moved it to next week. Happy to chat out of band too if that' easier.

Maybe there's a trimmed down version that would be worth keeping.

@bvaughn bvaughn changed the title Remove unstable scheduler tracing API Remove unstable scheduler/tracing API Apr 19, 2021
@bvaughn
Copy link
Contributor Author

bvaughn commented Apr 19, 2021

Rebased this and it's ready to review.

@bvaughn
Copy link
Contributor Author

bvaughn commented Apr 19, 2021

I'm not sure how to mock the scheduler/tracing import for that Fast Refresh test. This should work:

jest.mock('scheduler', () => jest.requireActual('scheduler-0-13'));
jest.mock('scheduler/tracing', () => jest.requireActual('scheduler-0-13/tracing'));
jest.mock('react', () => jest.requireActual('react-16-8'));
jest.mock('react-dom', () => jest.requireActual('react-dom-16-8'));

But Jest throws because there isn't an actual "scheduler/tracing" module installed locally.

Edit The answer was to also add a dummy file in __mocks__.

Copy link
Collaborator

@acdlite acdlite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉

@bvaughn bvaughn merged commit fc33f12 into facebook:master Apr 26, 2021
@bvaughn bvaughn deleted the remove-scheduler-tracing branch April 26, 2021 23:16
@bvaughn
Copy link
Contributor Author

bvaughn commented Apr 26, 2021

D28001916 shows (what I believe to be) a successful merge of this change (with all e2e and unit tests passing) so... let's go!

facebook-github-bot pushed a commit to facebook/react-native that referenced this pull request Apr 28, 2021
Summary:
This sync includes the following changes:
- **[9a2591681](facebook/react@9a2591681 )**: Fix export //<Sebastian Markbage>//
- **[4a8deb083](facebook/react@4a8deb083 )**: Switch the isPrimaryRender flag based on the stream config ([#21357](facebook/react#21357)) //<Sebastian Markbåge>//
- **[bd4f056a3](facebook/react@bd4f056a3 )**: [Fizz] Implement lazy components and nodes ([#21355](facebook/react#21355)) //<Sebastian Markbåge>//
- **[fc33f12bd](facebook/react@fc33f12bd )**: Remove unstable scheduler/tracing API ([#20037](facebook/react#20037)) //<Brian Vaughn>//
- **[721238394](facebook/react@721238394 )**: Enable strict effects mode for React Native Facebook builds ([#21354](facebook/react#21354)) //<Brian Vaughn>//
- **[48740429b](facebook/react@48740429b )**: Expiration: Do nothing except disable time slicing ([#21345](facebook/react#21345)) //<Andrew Clark>//
- **[0f5ebf366](facebook/react@0f5ebf366 )**: Delete unreferenced type ([#21343](facebook/react#21343)) //<Andrew Clark>//
- **[9cd52b27f](facebook/react@9cd52b27f )**: Restore context after an error happens ([#21341](facebook/react#21341)) //<Sebastian Markbåge>//
- **[ad091759a](facebook/react@ad091759a )**: Revert "Emit reactroot attribute on the first element we discover ([#21154](facebook/react#21154))" ([#21340](facebook/react#21340)) //<Sebastian Markbåge>//
- **[709f94841](facebook/react@709f94841 )**: [Fizz] Add FB specific streaming API and build ([#21337](facebook/react#21337)) //<Sebastian Markbåge>//
- **[e8cdce40d](facebook/react@e8cdce40d )**: Don't flush sync at end of discreteUpdates ([#21327](facebook/react#21327)) //<Andrew Clark>//
- **[a15586001](facebook/react@a15586001 )**: Fix: Don't flush discrete at end of batchedUpdates ([#21229](facebook/react#21229)) //<Andrew Clark>//
- **[89847bf6e](facebook/react@89847bf6e )**: Continuous updates should interrupt transitions ([#21323](facebook/react#21323)) //<Andrew Clark>//
- **[ef37d55b6](facebook/react@ef37d55b6 )**: Use performConcurrentWorkOnRoot for "sync default" ([#21322](facebook/react#21322)) //<Andrew Clark>//

Changelog:
[General][Changed] - React Native sync for revisions a632f7d...2a7bb41

jest_e2e[run_all_tests]

Reviewed By: JoshuaGross

Differential Revision: D28063006

fbshipit-source-id: 7e3535f80961706863b6c2188ee44b5796b2f000
koto pushed a commit to koto/react that referenced this pull request Jun 15, 2021
jordanhennell added a commit to jordanhennell/event-reduce that referenced this pull request Jun 6, 2022
markerikson added a commit to replayio/react that referenced this pull request Mar 20, 2023
This was added as part of the "Interaction Tracking" work in facebook#13509
back in 2018. That feature was removed in facebook#20037 in 2020, and this
plugin appears to no longer have any effect on the build output.
markerikson added a commit to replayio/react that referenced this pull request Mar 20, 2023
This was added as part of the "Interaction Tracking" work in facebook#13509
back in 2018. That feature was removed in facebook#20037 in 2020, and this
plugin appears to no longer have any effect on the build output.
markerikson added a commit to replayio/react that referenced this pull request Mar 20, 2023
This was added as part of the "Interaction Tracking" work in facebook#13509
back in 2018. That feature was removed in facebook#20037 in 2020, and this
plugin appears to no longer have any effect on the build output.
markerikson added a commit to replayio/react that referenced this pull request Mar 20, 2023
This was added as part of the "Interaction Tracking" work in facebook#13509
back in 2018. That feature was removed in facebook#20037 in 2020, and this
plugin appears to no longer have any effect on the build output.
markerikson added a commit to replayio/react that referenced this pull request Mar 20, 2023
This was added as part of the "Interaction Tracking" work in facebook#13509
back in 2018. That feature was removed in facebook#20037 in 2020, and this
plugin appears to no longer have any effect on the build output.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed React Core Team Opened by a member of the React Core Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Delete unstable scheduler/tracing entry point
7 participants