mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
Renamed packages/react-devtools-scheduling-profiler to packages/react-devtools-timeline (#22691)
This commit is contained in:
1 parent
51c558aeb6
commit
1bf6deb865
80 files changed
+17
-17
No files matched your search
+2
-2
@@ -22,5 +22,5 @@ packages/react-devtools-inline/dist
|
||||
packages/react-devtools-shared/src/hooks/__tests__/__source__/__compiled__/
|
||||
packages/react-devtools-shared/src/hooks/__tests__/__source__/__untransformed__/
|
||||
packages/react-devtools-shell/dist
|
||||
packages/react-devtools-scheduling-profiler/dist
|
||||
packages/react-devtools-scheduling-profiler/static
|
||||
packages/react-devtools-timeline/dist
|
||||
packages/react-devtools-timeline/static
|
||||
+1
-1
@@ -151,7 +151,7 @@ module.exports = {
|
||||
'packages/react-test-renderer/**/*.js',
|
||||
'packages/react-debug-tools/**/*.js',
|
||||
'packages/react-devtools-extensions/**/*.js',
|
||||
'packages/react-devtools-scheduling-profiler/**/*.js',
|
||||
'packages/react-devtools-timeline/**/*.js',
|
||||
'packages/react-native-renderer/**/*.js',
|
||||
'packages/eslint-plugin-react-hooks/**/*.js',
|
||||
'packages/jest-react/**/*.js',
|
||||
|
||||
+1
-1
@@ -35,4 +35,4 @@ packages/react-devtools-extensions/shared/build
|
||||
packages/react-devtools-extensions/.tempUserDataDir
|
||||
packages/react-devtools-inline/dist
|
||||
packages/react-devtools-shell/dist
|
||||
packages/react-devtools-scheduling-profiler/dist
|
||||
packages/react-devtools-timeline/dist
|
||||
+2
-2
@@ -7,5 +7,5 @@ packages/react-devtools-inline/dist
|
||||
packages/react-devtools-shared/src/hooks/__tests__/__source__/__compiled__/
|
||||
packages/react-devtools-shared/src/hooks/__tests__/__source__/__untransformed__/
|
||||
packages/react-devtools-shell/dist
|
||||
packages/react-devtools-scheduling-profiler/dist
|
||||
packages/react-devtools-scheduling-profiler/static
|
||||
packages/react-devtools-timeline/dist
|
||||
packages/react-devtools-timeline/static
|
||||
@@ -30,7 +30,7 @@ import ViewElementSourceContext from './Components/ViewElementSourceContext';
|
||||
import FetchFileWithCachingContext from './Components/FetchFileWithCachingContext';
|
||||
import HookNamesModuleLoaderContext from 'react-devtools-shared/src/devtools/views/Components/HookNamesModuleLoaderContext';
|
||||
import {ProfilerContextController} from './Profiler/ProfilerContext';
|
||||
import {SchedulingProfilerContextController} from 'react-devtools-scheduling-profiler/src/SchedulingProfilerContext';
|
||||
import {SchedulingProfilerContextController} from 'react-devtools-timeline/src/SchedulingProfilerContext';
|
||||
import {ModalDialogContextController} from './ModalDialog';
|
||||
import ReactLogo from './ReactLogo';
|
||||
import UnsupportedBridgeProtocolDialog from './UnsupportedBridgeProtocolDialog';
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@ import {ProfilerContext} from './ProfilerContext';
|
||||
import Button from '../Button';
|
||||
import ButtonIcon from '../ButtonIcon';
|
||||
import {StoreContext} from '../context';
|
||||
import {SchedulingProfilerContext} from 'react-devtools-scheduling-profiler/src/SchedulingProfilerContext';
|
||||
import {SchedulingProfilerContext} from 'react-devtools-timeline/src/SchedulingProfilerContext';
|
||||
|
||||
export default function ClearProfilingDataButton() {
|
||||
const store = useContext(StoreContext);
|
||||
|
||||
@@ -16,7 +16,7 @@ import ClearProfilingDataButton from './ClearProfilingDataButton';
|
||||
import CommitFlamegraph from './CommitFlamegraph';
|
||||
import CommitRanked from './CommitRanked';
|
||||
import RootSelector from './RootSelector';
|
||||
import {SchedulingProfiler} from 'react-devtools-scheduling-profiler/src/SchedulingProfiler';
|
||||
import {SchedulingProfiler} from 'react-devtools-timeline/src/SchedulingProfiler';
|
||||
import RecordToggle from './RecordToggle';
|
||||
import ReloadAndProfileButton from './ReloadAndProfileButton';
|
||||
import ProfilingImportExportButtons from './ProfilingImportExportButtons';
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ import {
|
||||
prepareProfilingDataFrontendFromExport,
|
||||
} from './utils';
|
||||
import {downloadFile} from '../utils';
|
||||
import {SchedulingProfilerContext} from 'react-devtools-scheduling-profiler/src/SchedulingProfilerContext';
|
||||
import {SchedulingProfilerContext} from 'react-devtools-timeline/src/SchedulingProfilerContext';
|
||||
|
||||
import styles from './ProfilingImportExportButtons.css';
|
||||
|
||||
|
||||
File renamed without changes.
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"private": true,
|
||||
"name": "react-devtools-scheduling-profiler",
|
||||
"name": "react-devtools-timeline",
|
||||
"version": "4.21.0",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -25,7 +25,7 @@ import {isDevToolsPresent} from './ReactFiberDevToolsHook.new';
|
||||
import {ConcurrentUpdatesByDefaultMode, NoMode} from './ReactTypeOfMode';
|
||||
import {clz32} from './clz32';
|
||||
|
||||
// Lane values below should be kept in sync with getLabelForLane(), used by react-devtools-scheduling-profiler.
|
||||
// Lane values below should be kept in sync with getLabelForLane(), used by react-devtools-timeline.
|
||||
// If those values are changed that package should be rebuilt and redeployed.
|
||||
|
||||
export const TotalLanes = 31;
|
||||
@@ -78,7 +78,7 @@ export const IdleLane: Lanes = /* */ 0b0100000000000000000
|
||||
|
||||
export const OffscreenLane: Lane = /* */ 0b1000000000000000000000000000000;
|
||||
|
||||
// This function is used for the experimental timeline (react-devtools-scheduling-profiler)
|
||||
// This function is used for the experimental timeline (react-devtools-timeline)
|
||||
// It should be kept in sync with the Lanes values above.
|
||||
export function getLabelForLane(lane: Lane): string | void {
|
||||
if (enableSchedulingProfiler) {
|
||||
|
||||
@@ -25,7 +25,7 @@ import {isDevToolsPresent} from './ReactFiberDevToolsHook.old';
|
||||
import {ConcurrentUpdatesByDefaultMode, NoMode} from './ReactTypeOfMode';
|
||||
import {clz32} from './clz32';
|
||||
|
||||
// Lane values below should be kept in sync with getLabelForLane(), used by react-devtools-scheduling-profiler.
|
||||
// Lane values below should be kept in sync with getLabelForLane(), used by react-devtools-timeline.
|
||||
// If those values are changed that package should be rebuilt and redeployed.
|
||||
|
||||
export const TotalLanes = 31;
|
||||
@@ -78,7 +78,7 @@ export const IdleLane: Lanes = /* */ 0b0100000000000000000
|
||||
|
||||
export const OffscreenLane: Lane = /* */ 0b1000000000000000000000000000000;
|
||||
|
||||
// This function is used for the experimental timeline (react-devtools-scheduling-profiler)
|
||||
// This function is used for the experimental timeline (react-devtools-timeline)
|
||||
// It should be kept in sync with the Lanes values above.
|
||||
export function getLabelForLane(lane: Lane): string | void {
|
||||
if (enableSchedulingProfiler) {
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ import {
|
||||
} from 'shared/ReactFeatureFlags';
|
||||
import ReactVersion from 'shared/ReactVersion';
|
||||
import getComponentNameFromFiber from 'react-reconciler/src/getComponentNameFromFiber';
|
||||
import {SCHEDULING_PROFILER_VERSION} from 'react-devtools-scheduling-profiler/src/constants';
|
||||
import {SCHEDULING_PROFILER_VERSION} from 'react-devtools-timeline/src/constants';
|
||||
|
||||
import {
|
||||
getLabelForLane as getLabelForLane_old,
|
||||
|
||||
@@ -6,7 +6,7 @@ const PACKAGE_PATHS = [
|
||||
'packages/react-devtools/package.json',
|
||||
'packages/react-devtools-core/package.json',
|
||||
'packages/react-devtools-inline/package.json',
|
||||
'packages/react-devtools-scheduling-profiler/package.json',
|
||||
'packages/react-devtools-timeline/package.json',
|
||||
];
|
||||
|
||||
const MANIFEST_PATHS = [
|
||||
|
||||
Reference in new issue
Block a user