GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Remove unused Scheduler sampling profiler by bvaughn · Pull Request #20833 · react/react

Conversation

@bvaughn

@bvaughn bvaughn commented Feb 17, 2021

Copy link
Copy Markdown
Contributor

Stacks on top of #20832

Removes Scheduler's integrated sampling profiler. I'm not aware of this being used within FB so we might as well kill it.

If I'm wrong and it's in use though, happy to just close this PR.

Alternative to #20831.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@bvaughn
bvaughn requested review from acdlite and gaearon February 17, 2021 15:42
@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Feb 17, 2021
bvaughn
bvaughn commented Feb 17, 2021
View reviewed changes
Comment thread packages/scheduler/src/forks/SchedulerDOM.js
currentTask.callback = null;
currentPriorityLevel = currentTask.priorityLevel;
const didUserCallbackTimeout = currentTask.expirationTime <= currentTime;
markTaskRun(currentTask, currentTime);

@bvaughn bvaughn Feb 17, 2021

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

We had some unwrapped profiling method calls. Wonder if that was costing us bytes?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread packages/scheduler/src/forks/SchedulerDOM.js
currentTime = getCurrentTime();
if (typeof continuationCallback === 'function') {
currentTask.callback = continuationCallback;
markTaskYield(currentTask, currentTime);

@bvaughn bvaughn Feb 17, 2021

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Ditto for calls to markTaskYield.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@bvaughn bvaughn changed the title Cleanup scheduler sampling profiler Remove scheduler sampling profiler Feb 17, 2021
@bvaughn bvaughn changed the title Remove scheduler sampling profiler Remove unused scheduler sampling profiler Feb 17, 2021
@bvaughn bvaughn changed the title Remove unused scheduler sampling profiler Remove unused Scheduler sampling profiler Feb 17, 2021
@sizebot

sizebot commented Feb 17, 2021 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Comparing: 8fa0ccc...8e50058

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.34 kB 122.34 kB = 39.40 kB 39.40 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 128.92 kB 128.92 kB = 41.46 kB 41.46 kB
facebook-www/ReactDOM-prod.classic.js = 404.81 kB 404.81 kB = 75.19 kB 75.19 kB
facebook-www/ReactDOM-prod.modern.js = 393.16 kB 393.16 kB = 73.28 kB 73.28 kB
facebook-www/ReactDOMForked-prod.classic.js = 404.82 kB 404.82 kB = 75.19 kB 75.19 kB
oss-experimental/scheduler/umd/scheduler.development.js = 4.90 kB 4.74 kB = 0.87 kB 0.86 kB
oss-stable/scheduler/umd/scheduler.development.js = 4.90 kB 4.74 kB = 0.87 kB 0.86 kB
oss-experimental/scheduler/umd/scheduler.production.min.js = 4.63 kB 4.48 kB = 0.87 kB 0.85 kB
oss-experimental/scheduler/umd/scheduler.profiling.min.js = 4.63 kB 4.48 kB = 0.87 kB 0.85 kB
oss-stable/scheduler/umd/scheduler.production.min.js = 4.63 kB 4.48 kB = 0.87 kB 0.85 kB
oss-stable/scheduler/umd/scheduler.profiling.min.js = 4.63 kB 4.48 kB = 0.87 kB 0.85 kB
oss-experimental/react/umd/react.development.js = 112.14 kB 105.66 kB = 27.45 kB 26.07 kB
oss-stable/react/umd/react.development.js = 109.88 kB 103.39 kB = 27.04 kB 25.65 kB
oss-experimental/react/umd/react.profiling.min.js = 15.70 kB 14.24 kB = 5.85 kB 5.27 kB
oss-stable/react/umd/react.profiling.min.js = 14.65 kB 13.19 kB = 5.56 kB 4.97 kB
facebook-www/Scheduler-dev.classic.js = 25.50 kB 18.88 kB = 6.79 kB 5.36 kB
facebook-www/Scheduler-dev.modern.js = 25.50 kB 18.88 kB = 6.79 kB 5.36 kB
oss-experimental/scheduler/umd/scheduler-unstable_mock.development.js = 24.72 kB 18.23 kB = 5.71 kB 4.22 kB
oss-stable/scheduler/umd/scheduler-unstable_mock.development.js = 24.72 kB 18.23 kB = 5.71 kB 4.22 kB
oss-experimental/scheduler/cjs/scheduler-unstable_mock.development.js = 23.06 kB 16.95 kB = 5.60 kB 4.12 kB
oss-stable/scheduler/cjs/scheduler-unstable_mock.development.js = 23.06 kB 16.95 kB = 5.60 kB 4.12 kB
facebook-react-native/scheduler/cjs/SchedulerMock-dev.js = 23.14 kB 16.99 kB = 5.61 kB 4.12 kB
facebook-www/SchedulerPostTaskOnly-dev.classic.js = 24.22 kB 17.62 kB = 6.41 kB 4.96 kB
facebook-www/SchedulerPostTaskOnly-dev.modern.js = 24.22 kB 17.62 kB = 6.41 kB 4.96 kB
facebook-www/SchedulerMock-dev.classic.js = 23.92 kB 17.32 kB = 5.69 kB 4.20 kB
facebook-www/SchedulerMock-dev.modern.js = 23.92 kB 17.32 kB = 5.69 kB 4.20 kB
oss-experimental/scheduler/cjs/scheduler.development.js = 22.20 kB 16.07 kB = 5.98 kB 4.55 kB
oss-stable/scheduler/cjs/scheduler.development.js = 22.20 kB 16.07 kB = 5.98 kB 4.55 kB
facebook-react-native/scheduler/cjs/Scheduler-dev.js = 22.29 kB 16.12 kB = 5.98 kB 4.55 kB
oss-experimental/scheduler/cjs/scheduler-unstable_post_task_only.development.js = 21.75 kB 15.64 kB = 5.91 kB 4.49 kB
oss-stable/scheduler/cjs/scheduler-unstable_post_task_only.development.js = 21.75 kB 15.64 kB = 5.91 kB 4.49 kB
facebook-react-native/scheduler/cjs/Scheduler-profiling.js = 14.12 kB 10.10 kB = 3.47 kB 2.60 kB
facebook-www/Scheduler-profiling.classic.js = 16.46 kB 11.37 kB = 3.85 kB 2.86 kB
facebook-www/Scheduler-profiling.modern.js = 16.46 kB 11.37 kB = 3.85 kB 2.86 kB
facebook-react-native/scheduler/cjs/SchedulerNoDOM-profiling.js = 12.57 kB 8.55 kB = 3.04 kB 2.15 kB
facebook-www/SchedulerPostTaskOnly-profiling.classic.js = 15.70 kB 10.63 kB = 3.71 kB 2.72 kB
facebook-www/SchedulerPostTaskOnly-profiling.modern.js = 15.70 kB 10.63 kB = 3.71 kB 2.72 kB
oss-experimental/scheduler/cjs/scheduler-unstable_no_dom.development.js = 18.89 kB 12.76 kB = 4.91 kB 3.44 kB
oss-stable/scheduler/cjs/scheduler-unstable_no_dom.development.js = 18.89 kB 12.76 kB = 4.91 kB 3.44 kB
facebook-react-native/scheduler/cjs/SchedulerNoDOM-dev.js = 18.90 kB 12.73 kB = 4.91 kB 3.42 kB
facebook-www/SchedulerNoDOM-dev.classic.js = 19.68 kB 13.05 kB = 5.00 kB 3.51 kB
facebook-www/SchedulerNoDOM-dev.modern.js = 19.68 kB 13.05 kB = 5.00 kB 3.51 kB
facebook-www/SchedulerNoDOM-profiling.classic.js = 13.90 kB 8.80 kB = 3.24 kB 2.23 kB
facebook-www/SchedulerNoDOM-profiling.modern.js = 13.90 kB 8.80 kB = 3.24 kB 2.23 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react/umd/react.production.min.js = 10.99 kB 10.97 kB = 4.42 kB 4.42 kB
facebook-www/SchedulerMock-prod.classic.js = 11.96 kB 11.93 kB = 2.84 kB 2.83 kB
facebook-www/SchedulerMock-prod.modern.js = 11.96 kB 11.93 kB = 2.84 kB 2.83 kB
facebook-react-native/scheduler/cjs/SchedulerMock-prod.js = 11.69 kB 11.66 kB = 2.76 kB 2.75 kB
facebook-www/Scheduler-prod.classic.js = 11.41 kB 11.37 kB = 2.87 kB 2.86 kB
facebook-www/Scheduler-prod.modern.js = 11.41 kB 11.37 kB = 2.87 kB 2.86 kB
facebook-www/SchedulerPostTaskOnly-prod.classic.js = 10.66 kB 10.63 kB = 2.73 kB 2.72 kB
facebook-www/SchedulerPostTaskOnly-prod.modern.js = 10.66 kB 10.63 kB = 2.73 kB 2.72 kB
facebook-react-native/scheduler/cjs/Scheduler-prod.js = 10.14 kB 10.10 kB = 2.61 kB 2.60 kB
facebook-www/SchedulerNoDOM-prod.classic.js = 8.83 kB 8.80 kB = 2.24 kB 2.23 kB
facebook-www/SchedulerNoDOM-prod.modern.js = 8.83 kB 8.80 kB = 2.24 kB 2.23 kB
facebook-react-native/scheduler/cjs/SchedulerNoDOM-prod.js = 8.58 kB 8.55 kB = 2.16 kB 2.15 kB
oss-experimental/scheduler/umd/scheduler-unstable_mock.production.min.js = 4.79 kB 4.76 kB = 2.01 kB 2.00 kB
oss-stable/scheduler/umd/scheduler-unstable_mock.production.min.js = 4.79 kB 4.76 kB = 2.01 kB 2.00 kB
oss-experimental/scheduler/cjs/scheduler-unstable_mock.production.min.js = 4.74 kB 4.71 kB = 1.91 kB 1.90 kB
oss-stable/scheduler/cjs/scheduler-unstable_mock.production.min.js = 4.74 kB 4.71 kB = 1.91 kB 1.90 kB
oss-experimental/scheduler/cjs/scheduler.production.min.js = 4.33 kB 4.30 kB = 1.82 kB 1.80 kB
oss-stable/scheduler/cjs/scheduler.production.min.js = 4.33 kB 4.30 kB = 1.82 kB 1.80 kB
oss-experimental/scheduler/cjs/scheduler-unstable_post_task_only.production.min.js = 4.08 kB 4.05 kB = 1.77 kB 1.75 kB
oss-stable/scheduler/cjs/scheduler-unstable_post_task_only.production.min.js = 4.08 kB 4.05 kB = 1.77 kB 1.75 kB
facebook-www/SchedulerPostTask-prod.classic.js = 4.07 kB 4.04 kB = 1.12 kB 1.11 kB
facebook-www/SchedulerPostTask-prod.modern.js = 4.07 kB 4.04 kB = 1.12 kB 1.11 kB
facebook-www/SchedulerPostTask-profiling.classic.js = 4.07 kB 4.04 kB = 1.12 kB 1.11 kB
facebook-www/SchedulerPostTask-profiling.modern.js = 4.07 kB 4.04 kB = 1.12 kB 1.11 kB
oss-experimental/scheduler/cjs/scheduler-unstable_no_dom.production.min.js = 3.54 kB 3.51 kB = 1.48 kB 1.47 kB
oss-stable/scheduler/cjs/scheduler-unstable_no_dom.production.min.js = 3.54 kB 3.51 kB = 1.48 kB 1.47 kB
facebook-www/SchedulerPostTask-dev.classic.js = 7.01 kB 6.90 kB = 2.11 kB 2.07 kB
facebook-www/SchedulerPostTask-dev.modern.js = 7.01 kB 6.90 kB = 2.11 kB 2.07 kB
oss-experimental/scheduler/cjs/scheduler-unstable_post_task.production.min.js = 1.98 kB 1.95 kB = 0.85 kB 0.84 kB
oss-stable/scheduler/cjs/scheduler-unstable_post_task.production.min.js = 1.98 kB 1.95 kB = 0.85 kB 0.84 kB
oss-experimental/scheduler/cjs/scheduler-unstable_post_task.development.js = 6.89 kB 6.78 kB = 2.09 kB 2.06 kB
oss-stable/scheduler/cjs/scheduler-unstable_post_task.development.js = 6.89 kB 6.78 kB = 2.09 kB 2.06 kB
oss-experimental/scheduler/umd/scheduler.development.js = 4.90 kB 4.74 kB = 0.87 kB 0.86 kB
oss-stable/scheduler/umd/scheduler.development.js = 4.90 kB 4.74 kB = 0.87 kB 0.86 kB
oss-experimental/scheduler/umd/scheduler.production.min.js = 4.63 kB 4.48 kB = 0.87 kB 0.85 kB
oss-experimental/scheduler/umd/scheduler.profiling.min.js = 4.63 kB 4.48 kB = 0.87 kB 0.85 kB
oss-stable/scheduler/umd/scheduler.production.min.js = 4.63 kB 4.48 kB = 0.87 kB 0.85 kB
oss-stable/scheduler/umd/scheduler.profiling.min.js = 4.63 kB 4.48 kB = 0.87 kB 0.85 kB
oss-experimental/react/umd/react.development.js = 112.14 kB 105.66 kB = 27.45 kB 26.07 kB
oss-stable/react/umd/react.development.js = 109.88 kB 103.39 kB = 27.04 kB 25.65 kB
oss-experimental/react/umd/react.profiling.min.js = 15.70 kB 14.24 kB = 5.85 kB 5.27 kB
oss-stable/react/umd/react.profiling.min.js = 14.65 kB 13.19 kB = 5.56 kB 4.97 kB
facebook-www/Scheduler-dev.classic.js = 25.50 kB 18.88 kB = 6.79 kB 5.36 kB
facebook-www/Scheduler-dev.modern.js = 25.50 kB 18.88 kB = 6.79 kB 5.36 kB
oss-experimental/scheduler/umd/scheduler-unstable_mock.development.js = 24.72 kB 18.23 kB = 5.71 kB 4.22 kB
oss-stable/scheduler/umd/scheduler-unstable_mock.development.js = 24.72 kB 18.23 kB = 5.71 kB 4.22 kB
oss-experimental/scheduler/cjs/scheduler-unstable_mock.development.js = 23.06 kB 16.95 kB = 5.60 kB 4.12 kB
oss-stable/scheduler/cjs/scheduler-unstable_mock.development.js = 23.06 kB 16.95 kB = 5.60 kB 4.12 kB
facebook-react-native/scheduler/cjs/SchedulerMock-dev.js = 23.14 kB 16.99 kB = 5.61 kB 4.12 kB
facebook-www/SchedulerPostTaskOnly-dev.classic.js = 24.22 kB 17.62 kB = 6.41 kB 4.96 kB
facebook-www/SchedulerPostTaskOnly-dev.modern.js = 24.22 kB 17.62 kB = 6.41 kB 4.96 kB
facebook-www/SchedulerMock-dev.classic.js = 23.92 kB 17.32 kB = 5.69 kB 4.20 kB
facebook-www/SchedulerMock-dev.modern.js = 23.92 kB 17.32 kB = 5.69 kB 4.20 kB
oss-experimental/scheduler/cjs/scheduler.development.js = 22.20 kB 16.07 kB = 5.98 kB 4.55 kB
oss-stable/scheduler/cjs/scheduler.development.js = 22.20 kB 16.07 kB = 5.98 kB 4.55 kB
facebook-react-native/scheduler/cjs/Scheduler-dev.js = 22.29 kB 16.12 kB = 5.98 kB 4.55 kB
oss-experimental/scheduler/cjs/scheduler-unstable_post_task_only.development.js = 21.75 kB 15.64 kB = 5.91 kB 4.49 kB
oss-stable/scheduler/cjs/scheduler-unstable_post_task_only.development.js = 21.75 kB 15.64 kB = 5.91 kB 4.49 kB
facebook-react-native/scheduler/cjs/Scheduler-profiling.js = 14.12 kB 10.10 kB = 3.47 kB 2.60 kB
facebook-www/Scheduler-profiling.classic.js = 16.46 kB 11.37 kB = 3.85 kB 2.86 kB
facebook-www/Scheduler-profiling.modern.js = 16.46 kB 11.37 kB = 3.85 kB 2.86 kB
facebook-react-native/scheduler/cjs/SchedulerNoDOM-profiling.js = 12.57 kB 8.55 kB = 3.04 kB 2.15 kB
facebook-www/SchedulerPostTaskOnly-profiling.classic.js = 15.70 kB 10.63 kB = 3.71 kB 2.72 kB
facebook-www/SchedulerPostTaskOnly-profiling.modern.js = 15.70 kB 10.63 kB = 3.71 kB 2.72 kB
oss-experimental/scheduler/cjs/scheduler-unstable_no_dom.development.js = 18.89 kB 12.76 kB = 4.91 kB 3.44 kB
oss-stable/scheduler/cjs/scheduler-unstable_no_dom.development.js = 18.89 kB 12.76 kB = 4.91 kB 3.44 kB
facebook-react-native/scheduler/cjs/SchedulerNoDOM-dev.js = 18.90 kB 12.73 kB = 4.91 kB 3.42 kB
facebook-www/SchedulerNoDOM-dev.classic.js = 19.68 kB 13.05 kB = 5.00 kB 3.51 kB
facebook-www/SchedulerNoDOM-dev.modern.js = 19.68 kB 13.05 kB = 5.00 kB 3.51 kB
facebook-www/SchedulerNoDOM-profiling.classic.js = 13.90 kB 8.80 kB = 3.24 kB 2.23 kB
facebook-www/SchedulerNoDOM-profiling.modern.js = 13.90 kB 8.80 kB = 3.24 kB 2.23 kB

Generated by 🚫 dangerJS against 8e50058

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Feb 17, 2021
fix: use SharedArrayBuffer only when cross-origin isolation is enabled #20831
Merged
Disable (unstable) scheduler sampling profiler for OSS builds #20832
Merged
Brian Vaughn
Disabled Scheduler sampling profiler feature flag
384192b
@bvaughn
bvaughn force-pushed the cleanup-scheduler-sampling-profiler branch from 72f3857 to d01743c Compare February 18, 2021 15:04
Brian Vaughn
Removed Scheduler sampling profiler
8e50058
@bvaughn
bvaughn force-pushed the cleanup-scheduler-sampling-profiler branch from d01743c to 8e50058 Compare February 18, 2021 15:06
@bvaughn

bvaughn commented Feb 18, 2021

Copy link
Copy Markdown
Contributor Author

Turns out this is being used within FB so I'm going to close this PR.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bvaughn bvaughn closed this Feb 18, 2021
@bvaughn
bvaughn deleted the cleanup-scheduler-sampling-profiler branch February 18, 2021 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@gaearon gaearon Awaiting requested review from gaearon
@acdlite acdlite Awaiting requested review from acdlite

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

CLA Signed React Core Team Opened by a member of the React Core Team

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@bvaughn @sizebot @facebook-github-bot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.