From 1bf6deb865052111474f2988bb831de13d09c560 Mon Sep 17 00:00:00 2001 From: Brian Vaughn Date: Thu, 4 Nov 2021 10:02:06 -0400 Subject: [PATCH] Renamed packages/react-devtools-scheduling-profiler to packages/react-devtools-timeline (#22691) --- .eslintignore | 4 ++-- .eslintrc.js | 2 +- .gitignore | 2 +- .prettierignore | 4 ++-- packages/react-devtools-shared/src/devtools/views/DevTools.js | 2 +- .../src/devtools/views/Profiler/ClearProfilingDataButton.js | 2 +- .../src/devtools/views/Profiler/Profiler.js | 2 +- .../devtools/views/Profiler/ProfilingImportExportButtons.js | 2 +- .../README.md | 0 .../package.json | 2 +- .../src/CanvasPage.css | 0 .../src/CanvasPage.js | 0 .../src/EventTooltip.css | 0 .../src/EventTooltip.js | 0 .../src/ImportButton.css | 0 .../src/ImportButton.js | 0 .../src/SchedulingProfiler.css | 0 .../src/SchedulingProfiler.js | 0 .../src/SchedulingProfilerContext.js | 0 .../src/constants.js | 0 .../src/content-views/ComponentMeasuresView.js | 0 .../src/content-views/FlamechartView.js | 0 .../src/content-views/NativeEventsView.js | 0 .../src/content-views/NetworkMeasuresView.js | 0 .../src/content-views/ReactMeasuresView.js | 0 .../src/content-views/SchedulingEventsView.js | 0 .../src/content-views/SnapshotsView.js | 0 .../src/content-views/SuspenseEventsView.js | 0 .../src/content-views/ThrownErrorsView.js | 0 .../src/content-views/TimeAxisMarkersView.js | 0 .../src/content-views/UserTimingMarksView.js | 0 .../src/content-views/constants.js | 0 .../src/content-views/index.js | 0 .../content-views/utils/__tests__/__modules__/module-one.js | 0 .../content-views/utils/__tests__/__modules__/module-two.js | 0 .../src/content-views/utils/__tests__/colors-test.js | 0 .../src/content-views/utils/__tests__/moduleFilters-test.js | 0 .../src/content-views/utils/colors.js | 0 .../src/content-views/utils/moduleFilters.js | 0 .../src/content-views/utils/positioning.js | 0 .../src/content-views/utils/text.js | 0 .../src/createDataResourceFromImportedFile.js | 0 .../src/import-worker/InvalidProfileError.js | 0 .../import-worker/__tests__/preprocessData-test.internal.js | 0 .../src/import-worker/importFile.js | 0 .../src/import-worker/importFile.worker.js | 0 .../src/import-worker/index.js | 0 .../src/import-worker/preprocessData.js | 0 .../src/import-worker/readInputData.js | 0 .../src/types.js | 0 .../src/utils/formatting.js | 0 .../src/utils/getBatchRange.js | 0 .../src/utils/useSmartTooltip.js | 0 .../src/view-base/BackgroundColorView.js | 0 .../src/view-base/HorizontalPanAndZoomView.js | 0 .../src/view-base/Surface.js | 0 .../src/view-base/VerticalScrollView.js | 0 .../src/view-base/View.js | 0 .../src/view-base/__tests__/geometry-test.js | 0 .../src/view-base/constants.js | 0 .../src/view-base/geometry.js | 0 .../src/view-base/index.js | 0 .../src/view-base/layouter.js | 0 .../src/view-base/resizable/ResizableView.js | 0 .../src/view-base/resizable/ResizeBarView.js | 0 .../src/view-base/resizable/index.js | 0 .../src/view-base/useCanvasInteraction.js | 0 .../src/view-base/utils/__tests__/clamp-test.js | 0 .../src/view-base/utils/__tests__/scrollState-test.js | 0 .../src/view-base/utils/clamp.js | 0 .../src/view-base/utils/normalizeWheel.js | 0 .../src/view-base/utils/scrollState.js | 0 .../vertical-scroll-overflow/VerticalScrollBarView.js | 0 .../vertical-scroll-overflow/VerticalScrollOverflowView.js | 0 .../src/view-base/vertical-scroll-overflow/index.js | 0 .../vertical-scroll-overflow/withVerticalScrollbarLayout.js | 0 packages/react-reconciler/src/ReactFiberLane.new.js | 4 ++-- packages/react-reconciler/src/ReactFiberLane.old.js | 4 ++-- packages/react-reconciler/src/SchedulingProfiler.js | 2 +- scripts/devtools/configuration.js | 2 +- 80 files changed, 17 insertions(+), 17 deletions(-) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/README.md (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/package.json (94%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/CanvasPage.css (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/CanvasPage.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/EventTooltip.css (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/EventTooltip.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/ImportButton.css (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/ImportButton.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/SchedulingProfiler.css (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/SchedulingProfiler.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/SchedulingProfilerContext.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/constants.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/content-views/ComponentMeasuresView.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/content-views/FlamechartView.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/content-views/NativeEventsView.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/content-views/NetworkMeasuresView.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/content-views/ReactMeasuresView.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/content-views/SchedulingEventsView.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/content-views/SnapshotsView.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/content-views/SuspenseEventsView.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/content-views/ThrownErrorsView.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/content-views/TimeAxisMarkersView.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/content-views/UserTimingMarksView.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/content-views/constants.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/content-views/index.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/content-views/utils/__tests__/__modules__/module-one.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/content-views/utils/__tests__/__modules__/module-two.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/content-views/utils/__tests__/colors-test.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/content-views/utils/__tests__/moduleFilters-test.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/content-views/utils/colors.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/content-views/utils/moduleFilters.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/content-views/utils/positioning.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/content-views/utils/text.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/createDataResourceFromImportedFile.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/import-worker/InvalidProfileError.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/import-worker/__tests__/preprocessData-test.internal.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/import-worker/importFile.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/import-worker/importFile.worker.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/import-worker/index.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/import-worker/preprocessData.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/import-worker/readInputData.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/types.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/utils/formatting.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/utils/getBatchRange.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/utils/useSmartTooltip.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/view-base/BackgroundColorView.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/view-base/HorizontalPanAndZoomView.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/view-base/Surface.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/view-base/VerticalScrollView.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/view-base/View.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/view-base/__tests__/geometry-test.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/view-base/constants.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/view-base/geometry.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/view-base/index.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/view-base/layouter.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/view-base/resizable/ResizableView.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/view-base/resizable/ResizeBarView.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/view-base/resizable/index.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/view-base/useCanvasInteraction.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/view-base/utils/__tests__/clamp-test.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/view-base/utils/__tests__/scrollState-test.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/view-base/utils/clamp.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/view-base/utils/normalizeWheel.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/view-base/utils/scrollState.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/view-base/vertical-scroll-overflow/VerticalScrollBarView.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/view-base/vertical-scroll-overflow/VerticalScrollOverflowView.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/view-base/vertical-scroll-overflow/index.js (100%) rename packages/{react-devtools-scheduling-profiler => react-devtools-timeline}/src/view-base/vertical-scroll-overflow/withVerticalScrollbarLayout.js (100%) diff --git a/.eslintignore b/.eslintignore index c55cc40866070..7d79ef6923112 100644 --- a/.eslintignore +++ b/.eslintignore @@ -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 diff --git a/.eslintrc.js b/.eslintrc.js index b129af49d3d6a..6a0dc2dceae47 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -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', diff --git a/.gitignore b/.gitignore index 8ba7bbecc2dce..6ec345e172e5e 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/.prettierignore b/.prettierignore index 50ccffa6a67f4..6f69f7f891d67 100644 --- a/.prettierignore +++ b/.prettierignore @@ -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 \ No newline at end of file +packages/react-devtools-timeline/dist +packages/react-devtools-timeline/static \ No newline at end of file diff --git a/packages/react-devtools-shared/src/devtools/views/DevTools.js b/packages/react-devtools-shared/src/devtools/views/DevTools.js index 781ad9d902f68..b0b8f03032924 100644 --- a/packages/react-devtools-shared/src/devtools/views/DevTools.js +++ b/packages/react-devtools-shared/src/devtools/views/DevTools.js @@ -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'; diff --git a/packages/react-devtools-shared/src/devtools/views/Profiler/ClearProfilingDataButton.js b/packages/react-devtools-shared/src/devtools/views/Profiler/ClearProfilingDataButton.js index a978277ba8697..3f3a8e4987064 100644 --- a/packages/react-devtools-shared/src/devtools/views/Profiler/ClearProfilingDataButton.js +++ b/packages/react-devtools-shared/src/devtools/views/Profiler/ClearProfilingDataButton.js @@ -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); diff --git a/packages/react-devtools-shared/src/devtools/views/Profiler/Profiler.js b/packages/react-devtools-shared/src/devtools/views/Profiler/Profiler.js index 49107506e48f6..a9f57f5c47d78 100644 --- a/packages/react-devtools-shared/src/devtools/views/Profiler/Profiler.js +++ b/packages/react-devtools-shared/src/devtools/views/Profiler/Profiler.js @@ -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'; diff --git a/packages/react-devtools-shared/src/devtools/views/Profiler/ProfilingImportExportButtons.js b/packages/react-devtools-shared/src/devtools/views/Profiler/ProfilingImportExportButtons.js index 0e294ffe29cb1..912f87745e9ea 100644 --- a/packages/react-devtools-shared/src/devtools/views/Profiler/ProfilingImportExportButtons.js +++ b/packages/react-devtools-shared/src/devtools/views/Profiler/ProfilingImportExportButtons.js @@ -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'; diff --git a/packages/react-devtools-scheduling-profiler/README.md b/packages/react-devtools-timeline/README.md similarity index 100% rename from packages/react-devtools-scheduling-profiler/README.md rename to packages/react-devtools-timeline/README.md diff --git a/packages/react-devtools-scheduling-profiler/package.json b/packages/react-devtools-timeline/package.json similarity index 94% rename from packages/react-devtools-scheduling-profiler/package.json rename to packages/react-devtools-timeline/package.json index a74b66fa1d55f..86bab4e260240 100644 --- a/packages/react-devtools-scheduling-profiler/package.json +++ b/packages/react-devtools-timeline/package.json @@ -1,6 +1,6 @@ { "private": true, - "name": "react-devtools-scheduling-profiler", + "name": "react-devtools-timeline", "version": "4.21.0", "license": "MIT", "dependencies": { diff --git a/packages/react-devtools-scheduling-profiler/src/CanvasPage.css b/packages/react-devtools-timeline/src/CanvasPage.css similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/CanvasPage.css rename to packages/react-devtools-timeline/src/CanvasPage.css diff --git a/packages/react-devtools-scheduling-profiler/src/CanvasPage.js b/packages/react-devtools-timeline/src/CanvasPage.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/CanvasPage.js rename to packages/react-devtools-timeline/src/CanvasPage.js diff --git a/packages/react-devtools-scheduling-profiler/src/EventTooltip.css b/packages/react-devtools-timeline/src/EventTooltip.css similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/EventTooltip.css rename to packages/react-devtools-timeline/src/EventTooltip.css diff --git a/packages/react-devtools-scheduling-profiler/src/EventTooltip.js b/packages/react-devtools-timeline/src/EventTooltip.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/EventTooltip.js rename to packages/react-devtools-timeline/src/EventTooltip.js diff --git a/packages/react-devtools-scheduling-profiler/src/ImportButton.css b/packages/react-devtools-timeline/src/ImportButton.css similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/ImportButton.css rename to packages/react-devtools-timeline/src/ImportButton.css diff --git a/packages/react-devtools-scheduling-profiler/src/ImportButton.js b/packages/react-devtools-timeline/src/ImportButton.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/ImportButton.js rename to packages/react-devtools-timeline/src/ImportButton.js diff --git a/packages/react-devtools-scheduling-profiler/src/SchedulingProfiler.css b/packages/react-devtools-timeline/src/SchedulingProfiler.css similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/SchedulingProfiler.css rename to packages/react-devtools-timeline/src/SchedulingProfiler.css diff --git a/packages/react-devtools-scheduling-profiler/src/SchedulingProfiler.js b/packages/react-devtools-timeline/src/SchedulingProfiler.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/SchedulingProfiler.js rename to packages/react-devtools-timeline/src/SchedulingProfiler.js diff --git a/packages/react-devtools-scheduling-profiler/src/SchedulingProfilerContext.js b/packages/react-devtools-timeline/src/SchedulingProfilerContext.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/SchedulingProfilerContext.js rename to packages/react-devtools-timeline/src/SchedulingProfilerContext.js diff --git a/packages/react-devtools-scheduling-profiler/src/constants.js b/packages/react-devtools-timeline/src/constants.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/constants.js rename to packages/react-devtools-timeline/src/constants.js diff --git a/packages/react-devtools-scheduling-profiler/src/content-views/ComponentMeasuresView.js b/packages/react-devtools-timeline/src/content-views/ComponentMeasuresView.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/content-views/ComponentMeasuresView.js rename to packages/react-devtools-timeline/src/content-views/ComponentMeasuresView.js diff --git a/packages/react-devtools-scheduling-profiler/src/content-views/FlamechartView.js b/packages/react-devtools-timeline/src/content-views/FlamechartView.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/content-views/FlamechartView.js rename to packages/react-devtools-timeline/src/content-views/FlamechartView.js diff --git a/packages/react-devtools-scheduling-profiler/src/content-views/NativeEventsView.js b/packages/react-devtools-timeline/src/content-views/NativeEventsView.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/content-views/NativeEventsView.js rename to packages/react-devtools-timeline/src/content-views/NativeEventsView.js diff --git a/packages/react-devtools-scheduling-profiler/src/content-views/NetworkMeasuresView.js b/packages/react-devtools-timeline/src/content-views/NetworkMeasuresView.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/content-views/NetworkMeasuresView.js rename to packages/react-devtools-timeline/src/content-views/NetworkMeasuresView.js diff --git a/packages/react-devtools-scheduling-profiler/src/content-views/ReactMeasuresView.js b/packages/react-devtools-timeline/src/content-views/ReactMeasuresView.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/content-views/ReactMeasuresView.js rename to packages/react-devtools-timeline/src/content-views/ReactMeasuresView.js diff --git a/packages/react-devtools-scheduling-profiler/src/content-views/SchedulingEventsView.js b/packages/react-devtools-timeline/src/content-views/SchedulingEventsView.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/content-views/SchedulingEventsView.js rename to packages/react-devtools-timeline/src/content-views/SchedulingEventsView.js diff --git a/packages/react-devtools-scheduling-profiler/src/content-views/SnapshotsView.js b/packages/react-devtools-timeline/src/content-views/SnapshotsView.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/content-views/SnapshotsView.js rename to packages/react-devtools-timeline/src/content-views/SnapshotsView.js diff --git a/packages/react-devtools-scheduling-profiler/src/content-views/SuspenseEventsView.js b/packages/react-devtools-timeline/src/content-views/SuspenseEventsView.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/content-views/SuspenseEventsView.js rename to packages/react-devtools-timeline/src/content-views/SuspenseEventsView.js diff --git a/packages/react-devtools-scheduling-profiler/src/content-views/ThrownErrorsView.js b/packages/react-devtools-timeline/src/content-views/ThrownErrorsView.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/content-views/ThrownErrorsView.js rename to packages/react-devtools-timeline/src/content-views/ThrownErrorsView.js diff --git a/packages/react-devtools-scheduling-profiler/src/content-views/TimeAxisMarkersView.js b/packages/react-devtools-timeline/src/content-views/TimeAxisMarkersView.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/content-views/TimeAxisMarkersView.js rename to packages/react-devtools-timeline/src/content-views/TimeAxisMarkersView.js diff --git a/packages/react-devtools-scheduling-profiler/src/content-views/UserTimingMarksView.js b/packages/react-devtools-timeline/src/content-views/UserTimingMarksView.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/content-views/UserTimingMarksView.js rename to packages/react-devtools-timeline/src/content-views/UserTimingMarksView.js diff --git a/packages/react-devtools-scheduling-profiler/src/content-views/constants.js b/packages/react-devtools-timeline/src/content-views/constants.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/content-views/constants.js rename to packages/react-devtools-timeline/src/content-views/constants.js diff --git a/packages/react-devtools-scheduling-profiler/src/content-views/index.js b/packages/react-devtools-timeline/src/content-views/index.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/content-views/index.js rename to packages/react-devtools-timeline/src/content-views/index.js diff --git a/packages/react-devtools-scheduling-profiler/src/content-views/utils/__tests__/__modules__/module-one.js b/packages/react-devtools-timeline/src/content-views/utils/__tests__/__modules__/module-one.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/content-views/utils/__tests__/__modules__/module-one.js rename to packages/react-devtools-timeline/src/content-views/utils/__tests__/__modules__/module-one.js diff --git a/packages/react-devtools-scheduling-profiler/src/content-views/utils/__tests__/__modules__/module-two.js b/packages/react-devtools-timeline/src/content-views/utils/__tests__/__modules__/module-two.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/content-views/utils/__tests__/__modules__/module-two.js rename to packages/react-devtools-timeline/src/content-views/utils/__tests__/__modules__/module-two.js diff --git a/packages/react-devtools-scheduling-profiler/src/content-views/utils/__tests__/colors-test.js b/packages/react-devtools-timeline/src/content-views/utils/__tests__/colors-test.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/content-views/utils/__tests__/colors-test.js rename to packages/react-devtools-timeline/src/content-views/utils/__tests__/colors-test.js diff --git a/packages/react-devtools-scheduling-profiler/src/content-views/utils/__tests__/moduleFilters-test.js b/packages/react-devtools-timeline/src/content-views/utils/__tests__/moduleFilters-test.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/content-views/utils/__tests__/moduleFilters-test.js rename to packages/react-devtools-timeline/src/content-views/utils/__tests__/moduleFilters-test.js diff --git a/packages/react-devtools-scheduling-profiler/src/content-views/utils/colors.js b/packages/react-devtools-timeline/src/content-views/utils/colors.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/content-views/utils/colors.js rename to packages/react-devtools-timeline/src/content-views/utils/colors.js diff --git a/packages/react-devtools-scheduling-profiler/src/content-views/utils/moduleFilters.js b/packages/react-devtools-timeline/src/content-views/utils/moduleFilters.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/content-views/utils/moduleFilters.js rename to packages/react-devtools-timeline/src/content-views/utils/moduleFilters.js diff --git a/packages/react-devtools-scheduling-profiler/src/content-views/utils/positioning.js b/packages/react-devtools-timeline/src/content-views/utils/positioning.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/content-views/utils/positioning.js rename to packages/react-devtools-timeline/src/content-views/utils/positioning.js diff --git a/packages/react-devtools-scheduling-profiler/src/content-views/utils/text.js b/packages/react-devtools-timeline/src/content-views/utils/text.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/content-views/utils/text.js rename to packages/react-devtools-timeline/src/content-views/utils/text.js diff --git a/packages/react-devtools-scheduling-profiler/src/createDataResourceFromImportedFile.js b/packages/react-devtools-timeline/src/createDataResourceFromImportedFile.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/createDataResourceFromImportedFile.js rename to packages/react-devtools-timeline/src/createDataResourceFromImportedFile.js diff --git a/packages/react-devtools-scheduling-profiler/src/import-worker/InvalidProfileError.js b/packages/react-devtools-timeline/src/import-worker/InvalidProfileError.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/import-worker/InvalidProfileError.js rename to packages/react-devtools-timeline/src/import-worker/InvalidProfileError.js diff --git a/packages/react-devtools-scheduling-profiler/src/import-worker/__tests__/preprocessData-test.internal.js b/packages/react-devtools-timeline/src/import-worker/__tests__/preprocessData-test.internal.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/import-worker/__tests__/preprocessData-test.internal.js rename to packages/react-devtools-timeline/src/import-worker/__tests__/preprocessData-test.internal.js diff --git a/packages/react-devtools-scheduling-profiler/src/import-worker/importFile.js b/packages/react-devtools-timeline/src/import-worker/importFile.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/import-worker/importFile.js rename to packages/react-devtools-timeline/src/import-worker/importFile.js diff --git a/packages/react-devtools-scheduling-profiler/src/import-worker/importFile.worker.js b/packages/react-devtools-timeline/src/import-worker/importFile.worker.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/import-worker/importFile.worker.js rename to packages/react-devtools-timeline/src/import-worker/importFile.worker.js diff --git a/packages/react-devtools-scheduling-profiler/src/import-worker/index.js b/packages/react-devtools-timeline/src/import-worker/index.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/import-worker/index.js rename to packages/react-devtools-timeline/src/import-worker/index.js diff --git a/packages/react-devtools-scheduling-profiler/src/import-worker/preprocessData.js b/packages/react-devtools-timeline/src/import-worker/preprocessData.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/import-worker/preprocessData.js rename to packages/react-devtools-timeline/src/import-worker/preprocessData.js diff --git a/packages/react-devtools-scheduling-profiler/src/import-worker/readInputData.js b/packages/react-devtools-timeline/src/import-worker/readInputData.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/import-worker/readInputData.js rename to packages/react-devtools-timeline/src/import-worker/readInputData.js diff --git a/packages/react-devtools-scheduling-profiler/src/types.js b/packages/react-devtools-timeline/src/types.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/types.js rename to packages/react-devtools-timeline/src/types.js diff --git a/packages/react-devtools-scheduling-profiler/src/utils/formatting.js b/packages/react-devtools-timeline/src/utils/formatting.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/utils/formatting.js rename to packages/react-devtools-timeline/src/utils/formatting.js diff --git a/packages/react-devtools-scheduling-profiler/src/utils/getBatchRange.js b/packages/react-devtools-timeline/src/utils/getBatchRange.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/utils/getBatchRange.js rename to packages/react-devtools-timeline/src/utils/getBatchRange.js diff --git a/packages/react-devtools-scheduling-profiler/src/utils/useSmartTooltip.js b/packages/react-devtools-timeline/src/utils/useSmartTooltip.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/utils/useSmartTooltip.js rename to packages/react-devtools-timeline/src/utils/useSmartTooltip.js diff --git a/packages/react-devtools-scheduling-profiler/src/view-base/BackgroundColorView.js b/packages/react-devtools-timeline/src/view-base/BackgroundColorView.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/view-base/BackgroundColorView.js rename to packages/react-devtools-timeline/src/view-base/BackgroundColorView.js diff --git a/packages/react-devtools-scheduling-profiler/src/view-base/HorizontalPanAndZoomView.js b/packages/react-devtools-timeline/src/view-base/HorizontalPanAndZoomView.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/view-base/HorizontalPanAndZoomView.js rename to packages/react-devtools-timeline/src/view-base/HorizontalPanAndZoomView.js diff --git a/packages/react-devtools-scheduling-profiler/src/view-base/Surface.js b/packages/react-devtools-timeline/src/view-base/Surface.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/view-base/Surface.js rename to packages/react-devtools-timeline/src/view-base/Surface.js diff --git a/packages/react-devtools-scheduling-profiler/src/view-base/VerticalScrollView.js b/packages/react-devtools-timeline/src/view-base/VerticalScrollView.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/view-base/VerticalScrollView.js rename to packages/react-devtools-timeline/src/view-base/VerticalScrollView.js diff --git a/packages/react-devtools-scheduling-profiler/src/view-base/View.js b/packages/react-devtools-timeline/src/view-base/View.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/view-base/View.js rename to packages/react-devtools-timeline/src/view-base/View.js diff --git a/packages/react-devtools-scheduling-profiler/src/view-base/__tests__/geometry-test.js b/packages/react-devtools-timeline/src/view-base/__tests__/geometry-test.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/view-base/__tests__/geometry-test.js rename to packages/react-devtools-timeline/src/view-base/__tests__/geometry-test.js diff --git a/packages/react-devtools-scheduling-profiler/src/view-base/constants.js b/packages/react-devtools-timeline/src/view-base/constants.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/view-base/constants.js rename to packages/react-devtools-timeline/src/view-base/constants.js diff --git a/packages/react-devtools-scheduling-profiler/src/view-base/geometry.js b/packages/react-devtools-timeline/src/view-base/geometry.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/view-base/geometry.js rename to packages/react-devtools-timeline/src/view-base/geometry.js diff --git a/packages/react-devtools-scheduling-profiler/src/view-base/index.js b/packages/react-devtools-timeline/src/view-base/index.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/view-base/index.js rename to packages/react-devtools-timeline/src/view-base/index.js diff --git a/packages/react-devtools-scheduling-profiler/src/view-base/layouter.js b/packages/react-devtools-timeline/src/view-base/layouter.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/view-base/layouter.js rename to packages/react-devtools-timeline/src/view-base/layouter.js diff --git a/packages/react-devtools-scheduling-profiler/src/view-base/resizable/ResizableView.js b/packages/react-devtools-timeline/src/view-base/resizable/ResizableView.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/view-base/resizable/ResizableView.js rename to packages/react-devtools-timeline/src/view-base/resizable/ResizableView.js diff --git a/packages/react-devtools-scheduling-profiler/src/view-base/resizable/ResizeBarView.js b/packages/react-devtools-timeline/src/view-base/resizable/ResizeBarView.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/view-base/resizable/ResizeBarView.js rename to packages/react-devtools-timeline/src/view-base/resizable/ResizeBarView.js diff --git a/packages/react-devtools-scheduling-profiler/src/view-base/resizable/index.js b/packages/react-devtools-timeline/src/view-base/resizable/index.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/view-base/resizable/index.js rename to packages/react-devtools-timeline/src/view-base/resizable/index.js diff --git a/packages/react-devtools-scheduling-profiler/src/view-base/useCanvasInteraction.js b/packages/react-devtools-timeline/src/view-base/useCanvasInteraction.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/view-base/useCanvasInteraction.js rename to packages/react-devtools-timeline/src/view-base/useCanvasInteraction.js diff --git a/packages/react-devtools-scheduling-profiler/src/view-base/utils/__tests__/clamp-test.js b/packages/react-devtools-timeline/src/view-base/utils/__tests__/clamp-test.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/view-base/utils/__tests__/clamp-test.js rename to packages/react-devtools-timeline/src/view-base/utils/__tests__/clamp-test.js diff --git a/packages/react-devtools-scheduling-profiler/src/view-base/utils/__tests__/scrollState-test.js b/packages/react-devtools-timeline/src/view-base/utils/__tests__/scrollState-test.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/view-base/utils/__tests__/scrollState-test.js rename to packages/react-devtools-timeline/src/view-base/utils/__tests__/scrollState-test.js diff --git a/packages/react-devtools-scheduling-profiler/src/view-base/utils/clamp.js b/packages/react-devtools-timeline/src/view-base/utils/clamp.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/view-base/utils/clamp.js rename to packages/react-devtools-timeline/src/view-base/utils/clamp.js diff --git a/packages/react-devtools-scheduling-profiler/src/view-base/utils/normalizeWheel.js b/packages/react-devtools-timeline/src/view-base/utils/normalizeWheel.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/view-base/utils/normalizeWheel.js rename to packages/react-devtools-timeline/src/view-base/utils/normalizeWheel.js diff --git a/packages/react-devtools-scheduling-profiler/src/view-base/utils/scrollState.js b/packages/react-devtools-timeline/src/view-base/utils/scrollState.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/view-base/utils/scrollState.js rename to packages/react-devtools-timeline/src/view-base/utils/scrollState.js diff --git a/packages/react-devtools-scheduling-profiler/src/view-base/vertical-scroll-overflow/VerticalScrollBarView.js b/packages/react-devtools-timeline/src/view-base/vertical-scroll-overflow/VerticalScrollBarView.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/view-base/vertical-scroll-overflow/VerticalScrollBarView.js rename to packages/react-devtools-timeline/src/view-base/vertical-scroll-overflow/VerticalScrollBarView.js diff --git a/packages/react-devtools-scheduling-profiler/src/view-base/vertical-scroll-overflow/VerticalScrollOverflowView.js b/packages/react-devtools-timeline/src/view-base/vertical-scroll-overflow/VerticalScrollOverflowView.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/view-base/vertical-scroll-overflow/VerticalScrollOverflowView.js rename to packages/react-devtools-timeline/src/view-base/vertical-scroll-overflow/VerticalScrollOverflowView.js diff --git a/packages/react-devtools-scheduling-profiler/src/view-base/vertical-scroll-overflow/index.js b/packages/react-devtools-timeline/src/view-base/vertical-scroll-overflow/index.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/view-base/vertical-scroll-overflow/index.js rename to packages/react-devtools-timeline/src/view-base/vertical-scroll-overflow/index.js diff --git a/packages/react-devtools-scheduling-profiler/src/view-base/vertical-scroll-overflow/withVerticalScrollbarLayout.js b/packages/react-devtools-timeline/src/view-base/vertical-scroll-overflow/withVerticalScrollbarLayout.js similarity index 100% rename from packages/react-devtools-scheduling-profiler/src/view-base/vertical-scroll-overflow/withVerticalScrollbarLayout.js rename to packages/react-devtools-timeline/src/view-base/vertical-scroll-overflow/withVerticalScrollbarLayout.js diff --git a/packages/react-reconciler/src/ReactFiberLane.new.js b/packages/react-reconciler/src/ReactFiberLane.new.js index beaf66d0192b4..b9073b0770ba8 100644 --- a/packages/react-reconciler/src/ReactFiberLane.new.js +++ b/packages/react-reconciler/src/ReactFiberLane.new.js @@ -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) { diff --git a/packages/react-reconciler/src/ReactFiberLane.old.js b/packages/react-reconciler/src/ReactFiberLane.old.js index 4923f607eb8ee..1ef12d4021280 100644 --- a/packages/react-reconciler/src/ReactFiberLane.old.js +++ b/packages/react-reconciler/src/ReactFiberLane.old.js @@ -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) { diff --git a/packages/react-reconciler/src/SchedulingProfiler.js b/packages/react-reconciler/src/SchedulingProfiler.js index 58d61067acbfd..0304f39a12e56 100644 --- a/packages/react-reconciler/src/SchedulingProfiler.js +++ b/packages/react-reconciler/src/SchedulingProfiler.js @@ -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, diff --git a/scripts/devtools/configuration.js b/scripts/devtools/configuration.js index e90b764b36194..98d65baf946a7 100644 --- a/scripts/devtools/configuration.js +++ b/scripts/devtools/configuration.js @@ -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 = [