mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
* Revert "Revert "[Scheduler] Profiling features (#16145)" (#16392)" This reverts commit4ba1412305. * 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 commit9c30b0b695. Unnecessary because GCC * Start counter with 1 * Group exports into unstable_Profiling namespace * No catch in PROD codepath * No label TODO * No null checks
15 lines
495 B
JavaScript
15 lines
495 B
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
*/
|
|
|
|
export const enableSchedulerDebugging = false;
|
|
export const enableIsInputPending = false;
|
|
export const requestIdleCallbackBeforeFirstFrame = false;
|
|
export const requestTimerEventBeforeFirstFrame = false;
|
|
export const enableMessageLoopImplementation = false;
|
|
export const enableProfiling = __PROFILE__;
|