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

Revert "[Scheduler] Profiling features" #16392

Merged
merged 1 commit into from
Aug 14, 2019

Conversation

gaearon
Copy link
Collaborator

@gaearon gaearon commented Aug 14, 2019

Reverts #16145

There are a few bugs we need to solve first.

@sizebot
Copy link

sizebot commented Aug 14, 2019

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

Details of bundled changes.

Comparing: b1a03df...1c8d1f2

react

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react.development.js -5.9% -4.2% 119.74 KB 112.65 KB 30.1 KB 28.84 KB UMD_DEV
react.production.min.js -2.6% -2.4% 12.98 KB 12.64 KB 5.14 KB 5.02 KB UMD_PROD
react.profiling.min.js -9.1% -8.9% 16.29 KB 14.82 KB 6.1 KB 5.56 KB UMD_PROFILING
react.development.js 0.0% 0.0% 72 KB 72 KB 18.93 KB 18.93 KB NODE_DEV
react.production.min.js 0.0% 0.0% 6.66 KB 6.66 KB 2.77 KB 2.77 KB NODE_PROD
React-dev.js 0.0% 0.0% 69.97 KB 69.97 KB 18.01 KB 18.01 KB FB_WWW_DEV
React-prod.js 0.0% 0.0% 17.32 KB 17.32 KB 4.53 KB 4.53 KB FB_WWW_PROD
React-profiling.js 0.0% 0.0% 17.32 KB 17.32 KB 4.53 KB 4.53 KB FB_WWW_PROFILING

scheduler

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
scheduler-unstable_mock.development.js -29.1% -22.8% 23.57 KB 16.71 KB 5.31 KB 4.1 KB UMD_DEV
scheduler-tracing.profiling.min.js 0.0% +0.2% 3.25 KB 3.25 KB 989 B 991 B NODE_PROFILING
scheduler-unstable_mock.production.min.js -5.9% -4.6% 5.03 KB 4.73 KB 2.08 KB 1.98 KB UMD_PROD
Scheduler-dev.js -21.4% -15.2% 33.38 KB 26.23 KB 8.19 KB 6.95 KB FB_WWW_DEV
Scheduler-prod.js -3.2% -3.5% 16.45 KB 15.92 KB 3.72 KB 3.59 KB FB_WWW_PROD
scheduler-tracing.development.js 0.0% +0.1% 11.59 KB 11.59 KB 2.98 KB 2.98 KB NODE_DEV
scheduler-tracing.production.min.js 0.0% 🔺+0.5% 728 B 728 B 380 B 382 B NODE_PROD
scheduler-unstable_mock.development.js -29.3% -23.0% 23.38 KB 16.52 KB 5.25 KB 4.04 KB NODE_DEV
scheduler-unstable_mock.production.min.js -6.1% -4.5% 5.03 KB 4.72 KB 2.02 KB 1.92 KB NODE_PROD
SchedulerMock-dev.js -28.8% -22.9% 23.94 KB 17.05 KB 5.4 KB 4.16 KB FB_WWW_DEV
SchedulerMock-prod.js -2.4% -3.6% 12.44 KB 12.14 KB 2.95 KB 2.84 KB FB_WWW_PROD
scheduler.development.js -21.8% -15.2% 32.78 KB 25.63 KB 8.07 KB 6.84 KB NODE_DEV
scheduler.production.min.js -6.8% -5.1% 5.61 KB 5.23 KB 2.26 KB 2.14 KB NODE_PROD

Generated by 🚫 dangerJS

@sebmarkbage
Copy link
Collaborator

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 master Aug 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants