react-native-macos/Libraries/Core
Rubén Norte 789912441e Remove unnecessary checks for profiling in dev mode
Summary:
It doesn't make sense to have checks for whether we're profiling or not in `__DEV__` blocks, where we shouldn't be profiling in the first case.

We're going to remove the `global.__RCTProfileIsProfiling` flag in favor of a function that checks if we're profiling in real time (as opposed to checking if we're profiling only on startup, which is what that value does). This is just to make that migration easier without having to migrate callsites that are bad practices anyway.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D40095841

fbshipit-source-id: ba6cdf4bef8a4c169c50a974671c21144ccee92b
2022-10-05 15:17:53 -07:00
..
Devtools chore: add headers.Content-type to openFileInEditor call (#33517) 2022-10-03 10:32:29 -07:00
SegmentFetcher RN: Sort Imports via ESLint 2022-09-30 14:28:48 -07:00
Timers RN: Sort Imports via ESLint 2022-09-30 14:28:48 -07:00
__mocks__ Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
__tests__ RN: Sort Imports via ESLint 2022-09-30 14:28:48 -07:00
ExceptionsManager.js Add ability to add custom extraData to errors passed to ExceptionsManager 2022-08-15 11:05:58 -07:00
ExtendedError.js Add ability to add custom extraData to errors passed to ExceptionsManager 2022-08-15 11:05:58 -07:00
InitializeCore.js Remove (bad) implementation of the User Timing API from Systrace 2022-09-08 11:12:06 -07:00
NativeExceptionsManager.js RN: Sort Imports via ESLint 2022-09-30 14:28:48 -07:00
RawEventEmitter.js RN: Sort Imports via ESLint 2022-09-30 14:28:48 -07:00
ReactFiberErrorDialog.js RN: Sort Imports via ESLint 2022-09-30 14:28:48 -07:00
ReactNativeVersion.js chore: re-align version to be 1000.0.0 on main everywhere (#34817) 2022-10-04 08:36:21 -07:00
ReactNativeVersionCheck.js RN: Sort Imports via ESLint 2022-09-30 14:28:48 -07:00
checkNativeVersion.js Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
polyfillPromise.js Remove nonstandard Promise.prototype.done implementation 2022-05-05 03:55:10 -07:00
setUpAlert.js Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
setUpBatchedBridge.js Remove unnecessary checks for profiling in dev mode 2022-10-05 15:17:53 -07:00
setUpDeveloperTools.js Remove unnecessary checks for profiling in dev mode 2022-10-05 15:17:53 -07:00
setUpErrorHandling.js Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
setUpGlobals.js Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
setUpNavigator.js Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
setUpPerformance.js Codemod `{...null}` to `{}` in xplat/js 2022-07-14 17:00:28 -07:00
setUpReactDevTools.js Fix port as -1 if dev server without specifying port on Android (#34705) 2022-09-22 04:20:44 -07:00
setUpReactRefresh.js Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
setUpRegeneratorRuntime.js RN: Sort Imports via ESLint 2022-09-30 14:28:48 -07:00
setUpSegmentFetcher.js Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
setUpTimers.js RN: Sort Imports via ESLint 2022-09-30 14:28:48 -07:00
setUpXHR.js Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00