Skip to content

Revert "[Scheduler] Profiling features" - #16392

Merged
gaearon merged 1 commit into
masterfrom
revert-16145-scheduler-user-timing-events
Aug 14, 2019
Merged

Revert "[Scheduler] Profiling features"#16392
gaearon merged 1 commit into
masterfrom
revert-16145-scheduler-user-timing-events

Conversation

@gaearon

Copy link
Copy Markdown
Collaborator

Reverts #16145

There are a few bugs we need to solve first.

@sizebot

Copy link
Copy Markdown

React: size: -2.6%, gzip: -2.4%

Details of bundled changes.

Comparing: b1a03df...1c8d1f2

react

FileFilesize DiffGzip DiffPrev SizeCurrent SizePrev GzipCurrent GzipENV
react.development.js-5.9%-4.2%119.74 KB112.65 KB30.1 KB28.84 KBUMD_DEV
react.production.min.js-2.6%-2.4%12.98 KB12.64 KB5.14 KB5.02 KBUMD_PROD
react.profiling.min.js-9.1%-8.9%16.29 KB14.82 KB6.1 KB5.56 KBUMD_PROFILING
react.development.js0.0%0.0%72 KB72 KB18.93 KB18.93 KBNODE_DEV
react.production.min.js0.0%0.0%6.66 KB6.66 KB2.77 KB2.77 KBNODE_PROD
React-dev.js0.0%0.0%69.97 KB69.97 KB18.01 KB18.01 KBFB_WWW_DEV
React-prod.js0.0%0.0%17.32 KB17.32 KB4.53 KB4.53 KBFB_WWW_PROD
React-profiling.js0.0%0.0%17.32 KB17.32 KB4.53 KB4.53 KBFB_WWW_PROFILING

scheduler

FileFilesize DiffGzip DiffPrev SizeCurrent SizePrev GzipCurrent GzipENV
scheduler-unstable_mock.development.js-29.1%-22.8%23.57 KB16.71 KB5.31 KB4.1 KBUMD_DEV
scheduler-tracing.profiling.min.js0.0%+0.2%3.25 KB3.25 KB989 B991 BNODE_PROFILING
scheduler-unstable_mock.production.min.js-5.9%-4.6%5.03 KB4.73 KB2.08 KB1.98 KBUMD_PROD
Scheduler-dev.js-21.4%-15.2%33.38 KB26.23 KB8.19 KB6.95 KBFB_WWW_DEV
Scheduler-prod.js-3.2%-3.5%16.45 KB15.92 KB3.72 KB3.59 KBFB_WWW_PROD
scheduler-tracing.development.js0.0%+0.1%11.59 KB11.59 KB2.98 KB2.98 KBNODE_DEV
scheduler-tracing.production.min.js0.0%🔺+0.5%728 B728 B380 B382 BNODE_PROD
scheduler-unstable_mock.development.js-29.3%-23.0%23.38 KB16.52 KB5.25 KB4.04 KBNODE_DEV
scheduler-unstable_mock.production.min.js-6.1%-4.5%5.03 KB4.72 KB2.02 KB1.92 KBNODE_PROD
SchedulerMock-dev.js-28.8%-22.9%23.94 KB17.05 KB5.4 KB4.16 KBFB_WWW_DEV
SchedulerMock-prod.js-2.4%-3.6%12.44 KB12.14 KB2.95 KB2.84 KBFB_WWW_PROD
scheduler.development.js-21.8%-15.2%32.78 KB25.63 KB8.07 KB6.84 KBNODE_DEV
scheduler.production.min.js-6.8%-5.1%5.61 KB5.23 KB2.26 KB2.14 KBNODE_PROD

Generated by 🚫 dangerJS

@sebmarkbage

Copy link
Copy Markdown
Contributor

whoa. I didn't see that this affected react.production.min.js so much. That seems like another bug.

@gaearon
gaearon merged commit 4ba1412 into masterAug 14, 2019
@gaearon
gaearon deleted the revert-16145-scheduler-user-timing-events branch August 14, 2019 19:02
gaearon added a commit to gaearon/react that referenced this pull request Aug 15, 2019
gaearon added a commit to gaearon/react that referenced this pull request Aug 22, 2019
sebmarkbage pushed a commit that referenced this pull request Aug 22, 2019
* Revert "Revert "[Scheduler] Profiling features (#16145)" (#16392)"
This reverts commit 4ba1412.
* Fix copy paste mistake
* Remove init path dependency on ArrayBuffer
* Add a regression test for cancelling multiple tasks
* Prevent deopt from adding isQueued later
* Remove pop() calls that were added for profiling
* Verify that Suspend/Unsuspend events match up in tests
This currently breaks tests.
* Treat Suspend and Resume as exiting and entering work loop
Their definitions used to be more fuzzy. For example, Suspend didn't always fire on exit, and sometimes fired when we did _not_ exit (such as at task enqueue).
I chatted to Boone, and he's saying treating Suspend and Resume as strictly exiting and entering the loop is fine for their use case.
* Revert "Prevent deopt from adding isQueued later"
This reverts commit 9c30b0b.
Unnecessary because GCC
* Start counter with 1
* Group exports into unstable_Profiling namespace
* No catch in PROD codepath
* No label TODO
* No null checks
mrizwanashiq pushed a commit to mrizwanashiq/react that referenced this pull request Jun 25, 2026
mrizwanashiq pushed a commit to mrizwanashiq/react that referenced this pull request Jun 25, 2026
* Revert "Revert "[Scheduler] Profiling features (react#16145)" (react#16392)"
This reverts commit 864ed7e.
* Fix copy paste mistake
* Remove init path dependency on ArrayBuffer
* Add a regression test for cancelling multiple tasks
* Prevent deopt from adding isQueued later
* Remove pop() calls that were added for profiling
* Verify that Suspend/Unsuspend events match up in tests
This currently breaks tests.
* Treat Suspend and Resume as exiting and entering work loop
Their definitions used to be more fuzzy. For example, Suspend didn't always fire on exit, and sometimes fired when we did _not_ exit (such as at task enqueue).
I chatted to Boone, and he's saying treating Suspend and Resume as strictly exiting and entering the loop is fine for their use case.
* Revert "Prevent deopt from adding isQueued later"
This reverts commit 9c30b0b.
Unnecessary because GCC
* Start counter with 1
* Group exports into unstable_Profiling namespace
* No catch in PROD codepath
* No label TODO
* No null checks
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@gaearon@sizebot@sebmarkbage@facebook-github-bot