chrome-devtools-frontend 1.0.1689415 → 1.0.1690531
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitmodules +4 -0
- package/eslint.config.mjs +8 -2
- package/front_end/core/common/Object.ts +10 -4
- package/front_end/core/i18n/collect-ui-strings.js +5 -5
- package/front_end/core/i18n/generate-locales-js.js +1 -1
- package/front_end/core/i18n/i18n.ts +6 -0
- package/front_end/core/root/Runtime.ts +1 -5
- package/front_end/core/sdk/CSSMetadata.ts +3 -5
- package/front_end/core/sdk/DOMModel.ts +46 -11
- package/front_end/core/sdk/EmulationModel.ts +18 -0
- package/front_end/core/sdk/NetworkRequest.ts +50 -4
- package/front_end/core/sdk/NetworkRequestAccess.ts +172 -0
- package/front_end/core/sdk/SDKSettings.ts +9 -0
- package/front_end/core/sdk/Script.ts +0 -1
- package/front_end/core/sdk/SecurityOrigin.ts +160 -25
- package/front_end/core/sdk/Target.ts +1 -5
- package/front_end/core/sdk/sdk.ts +2 -0
- package/front_end/generated/SupportedCSSProperties.ts +1 -1
- package/front_end/models/ai_assistance/AiAgent2.ts +4 -1
- package/front_end/models/ai_assistance/AiConversation.ts +29 -18
- package/front_end/models/ai_assistance/AiUtils.ts +0 -10
- package/front_end/models/ai_assistance/agents/AccessibilityAgent.ts +6 -10
- package/front_end/models/ai_assistance/agents/StylingAgent.ts +0 -1
- package/front_end/models/ai_assistance/injected.ts +0 -2
- package/front_end/models/javascript_metadata/NativeFunctions.ts +1 -1
- package/front_end/models/trace/insights/CLSCulprits.ts +1 -2
- package/front_end/models/trace/insights/Cache.ts +1 -3
- package/front_end/models/trace/insights/CharacterSet.ts +1 -3
- package/front_end/models/trace/insights/DOMSize.ts +1 -3
- package/front_end/models/trace/insights/DocumentLatency.ts +1 -3
- package/front_end/models/trace/insights/DuplicatedJavaScript.ts +1 -3
- package/front_end/models/trace/insights/FontDisplay.ts +1 -2
- package/front_end/models/trace/insights/ForcedReflow.ts +1 -2
- package/front_end/models/trace/insights/INPBreakdown.ts +1 -3
- package/front_end/models/trace/insights/ImageDelivery.ts +1 -3
- package/front_end/models/trace/insights/LCPBreakdown.ts +1 -3
- package/front_end/models/trace/insights/LCPDiscovery.ts +1 -3
- package/front_end/models/trace/insights/LegacyJavaScript.ts +1 -3
- package/front_end/models/trace/insights/ModernHTTP.ts +1 -2
- package/front_end/models/trace/insights/NetworkDependencyTree.ts +1 -2
- package/front_end/models/trace/insights/RenderBlocking.ts +1 -3
- package/front_end/models/trace/insights/SlowCSSSelector.ts +1 -3
- package/front_end/models/trace/insights/ThirdParties.ts +1 -3
- package/front_end/models/trace/insights/Viewport.ts +1 -2
- package/front_end/panels/accessibility/ARIAAttributesView.ts +1 -1
- package/front_end/panels/accessibility/AccessibilityAnnouncementRecordingView.ts +3 -3
- package/front_end/panels/accessibility/AccessibilityNodeView.ts +1 -2
- package/front_end/panels/accessibility/AccessibilityStrings.ts +7 -3
- package/front_end/panels/ai_assistance/components/AIv2MarkdownRenderer.ts +2 -2
- package/front_end/panels/ai_assistance/components/AccessibilityAgentMarkdownRenderer.ts +1 -3
- package/front_end/panels/ai_assistance/components/chatMessage.css +3 -1
- package/front_end/panels/animation/AnimationGroupPreviewUI.ts +1 -1
- package/front_end/panels/animation/AnimationTimeline.ts +1 -1
- package/front_end/panels/animation/AnimationUI.ts +1 -1
- package/front_end/panels/application/AppManifestView.ts +6 -2
- package/front_end/panels/application/ApplicationPanelSidebar.ts +2 -4
- package/front_end/panels/application/BounceTrackingMitigationsTreeElement.ts +1 -1
- package/front_end/panels/application/FrameDetailsView.ts +1 -1
- package/front_end/panels/application/IndexedDBViews.ts +3 -2
- package/front_end/panels/application/ReportingApiTreeElement.ts +1 -1
- package/front_end/panels/application/ReportingApiView.ts +2 -2
- package/front_end/panels/application/ServiceWorkerUpdateCycleView.ts +1 -1
- package/front_end/panels/application/ServiceWorkersView.ts +1 -1
- package/front_end/panels/application/StorageBucketsTreeElement.ts +1 -1
- package/front_end/panels/application/StorageItemsToolbar.ts +6 -2
- package/front_end/panels/application/StorageView.ts +9 -8
- package/front_end/panels/application/TrustTokensTreeElement.ts +1 -1
- package/front_end/panels/application/WebMCPView.ts +2 -1
- package/front_end/panels/application/components/BackForwardCacheView.ts +1 -1
- package/front_end/panels/application/components/BounceTrackingMitigationsView.ts +1 -1
- package/front_end/panels/application/components/CrashReportContextGrid.ts +1 -1
- package/front_end/panels/application/components/EndpointsGrid.ts +3 -2
- package/front_end/panels/application/components/PermissionsPolicySection.ts +1 -1
- package/front_end/panels/application/components/ReportsGrid.ts +1 -1
- package/front_end/panels/application/components/ServiceWorkerRouterView.ts +1 -1
- package/front_end/panels/application/components/TrustTokensView.ts +2 -2
- package/front_end/panels/application/preloading/components/MismatchedPreloadingGrid.ts +1 -1
- package/front_end/panels/application/preloading/components/PreloadingDetailsReportView.ts +2 -1
- package/front_end/panels/application/preloading/components/PreloadingGrid.ts +1 -1
- package/front_end/panels/application/preloading/components/RuleSetDetailsView.ts +2 -1
- package/front_end/panels/application/preloading/components/RuleSetGrid.ts +7 -2
- package/front_end/panels/application/preloading/components/UsedPreloadingView.ts +1 -1
- package/front_end/panels/application/serviceWorkerUpdateCycleView.css +2 -0
- package/front_end/panels/autofill/AutofillView.ts +2 -2
- package/front_end/panels/browser_debugger/CategorizedBreakpointsSidebarPane.ts +2 -3
- package/front_end/panels/browser_debugger/DOMBreakpointsSidebarPane.ts +1 -1
- package/front_end/panels/changes/ChangesSidebar.ts +56 -15
- package/front_end/panels/changes/ChangesView.ts +1 -1
- package/front_end/panels/common/CPUThrottlingOption.ts +12 -6
- package/front_end/panels/common/DOMLinkifier.ts +1 -1
- package/front_end/panels/common/ExtensionView.ts +2 -1
- package/front_end/panels/console/ConsolePinPane.ts +4 -2
- package/front_end/panels/console/ConsolePrompt.ts +6 -2
- package/front_end/panels/console/ConsoleSidebar.ts +12 -4
- package/front_end/panels/console/PromptBuilder.ts +1 -1
- package/front_end/panels/coverage/CoverageListView.ts +1 -1
- package/front_end/panels/coverage/CoverageModel.ts +6 -4
- package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +9 -9
- package/front_end/panels/css_overview/CSSOverviewPanel.ts +3 -3
- package/front_end/panels/css_overview/CSSOverviewProcessingView.ts +2 -2
- package/front_end/panels/css_overview/CSSOverviewSidebarPanel.ts +3 -3
- package/front_end/panels/css_overview/CSSOverviewStartView.ts +3 -3
- package/front_end/panels/developer_resources/DeveloperResourcesListView.ts +1 -1
- package/front_end/panels/elements/ComputedStyleWidget.ts +1 -1
- package/front_end/panels/elements/ElementsTreeElement.ts +16 -3
- package/front_end/panels/elements/ElementsTreeOutline.ts +402 -130
- package/front_end/panels/elements/MetricsSidebarPane.ts +1 -1
- package/front_end/panels/elements/PropertyNameCategories.ts +1 -1
- package/front_end/panels/elements/PropertyRenderer.ts +22 -15
- package/front_end/panels/elements/ShortcutTreeElement.ts +2 -1
- package/front_end/panels/elements/StandaloneStylesContainer.ts +7 -3
- package/front_end/panels/elements/StylePropertiesSection.ts +1 -1
- package/front_end/panels/elements/StylePropertyTreeElement.ts +75 -26
- package/front_end/panels/elements/StylesSidebarPane.ts +9 -4
- package/front_end/panels/elements/components/StylePropertyEditor.ts +160 -148
- package/front_end/panels/elements/elementsTreeOutline.css +4 -0
- package/front_end/panels/emulation/DeviceModeView.ts +6 -1
- package/front_end/panels/emulation/InspectedPagePlaceholder.ts +6 -2
- package/front_end/panels/emulation/MediaQueryInspector.ts +2 -1
- package/front_end/panels/issues/AffectedLazyLoadImagesView.ts +1 -1
- package/front_end/panels/layer_viewer/LayerDetailsView.ts +6 -2
- package/front_end/panels/layer_viewer/LayerTreeOutline.ts +7 -2
- package/front_end/panels/layer_viewer/Layers3DView.ts +8 -1
- package/front_end/panels/layer_viewer/PaintProfilerView.ts +6 -2
- package/front_end/panels/lighthouse/lighthousePanel.css +5 -5
- package/front_end/panels/lighthouse/lighthouseStartView.css +13 -13
- package/front_end/panels/linear_memory_inspector/LinearMemoryInspectorPane.ts +6 -2
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryInspector.ts +6 -2
- package/front_end/panels/linear_memory_inspector/components/linearMemoryInspector.css +2 -2
- package/front_end/panels/linear_memory_inspector/components/linearMemoryNavigator.css +1 -1
- package/front_end/panels/linear_memory_inspector/components/linearMemoryValueInterpreter.css +5 -5
- package/front_end/panels/linear_memory_inspector/components/linearMemoryViewer.css +6 -6
- package/front_end/panels/linear_memory_inspector/components/valueInterpreterDisplay.css +6 -6
- package/front_end/panels/linear_memory_inspector/components/valueInterpreterSettings.css +2 -2
- package/front_end/panels/mobile_throttling/NetworkThrottlingSelector.ts +6 -2
- package/front_end/panels/mobile_throttling/ThrottlingManager.ts +25 -54
- package/front_end/panels/network/NetworkDataGridNode.ts +11 -9
- package/front_end/panels/network/NetworkLogView.ts +12 -4
- package/front_end/panels/network/RequestConditionsDrawer.ts +2 -2
- package/front_end/panels/network/RequestHeadersView.ts +1 -1
- package/front_end/panels/network/RequestPayloadView.ts +1 -1
- package/front_end/panels/network/RequestResponseView.ts +1 -1
- package/front_end/panels/network/RequestTimingView.ts +1 -1
- package/front_end/panels/network/ShowMoreDetailsWidget.ts +1 -1
- package/front_end/panels/network/components/RequestHeadersView.css +5 -0
- package/front_end/panels/network/components/ResponseHeaderSection.ts +1 -1
- package/front_end/panels/network/networkLogView.css +4 -0
- package/front_end/panels/network/requestInitiatorViewTree.css +2 -0
- package/front_end/panels/performance_monitor/performanceMonitor.css +3 -3
- package/front_end/panels/profiler/HeapDetachedElementsView.ts +7 -2
- package/front_end/panels/profiler/HeapProfileView.ts +7 -2
- package/front_end/panels/profiler/HeapSnapshotDataGrids.ts +8 -4
- package/front_end/panels/profiler/HeapSnapshotGridNodes.ts +8 -4
- package/front_end/panels/profiler/HeapSnapshotView.ts +15 -6
- package/front_end/panels/profiler/HeapTimelineOverview.ts +6 -2
- package/front_end/panels/profiler/ProfileFlameChartDataProvider.ts +12 -5
- package/front_end/panels/profiler/ProfileLauncherView.ts +6 -2
- package/front_end/panels/profiler/profilesPanel.css +8 -9
- package/front_end/panels/profiler/profilesSidebarTree.css +13 -13
- package/front_end/panels/protocol_monitor/JSONEditor.css +2 -2
- package/front_end/panels/protocol_monitor/JSONEditor.ts +6 -1
- package/front_end/panels/protocol_monitor/protocolMonitor.css +2 -2
- package/front_end/panels/sources/BreakpointEditDialog.ts +1 -1
- package/front_end/panels/sources/CallStackSidebarPane.ts +1 -1
- package/front_end/panels/sources/DebuggerPausedMessage.ts +8 -6
- package/front_end/panels/sources/ProfilePlugin.ts +2 -1
- package/front_end/panels/sources/ScopeChainSidebarPane.ts +1 -1
- package/front_end/panels/sources/SourcesView.ts +7 -2
- package/front_end/panels/sources/TabbedEditorContainer.ts +6 -2
- package/front_end/panels/sources/UISourceCodeFrame.ts +10 -3
- package/front_end/panels/timeline/AnimationsTrackAppender.ts +1 -1
- package/front_end/panels/timeline/AnnotationHelpers.ts +9 -9
- package/front_end/panels/timeline/CountersGraph.ts +8 -8
- package/front_end/panels/timeline/EventsTimelineTreeView.ts +3 -3
- package/front_end/panels/timeline/ExtensionTrackAppender.ts +1 -1
- package/front_end/panels/timeline/GPUTrackAppender.ts +1 -1
- package/front_end/panels/timeline/InteractionsTrackAppender.ts +1 -1
- package/front_end/panels/timeline/IsolateSelector.ts +3 -3
- package/front_end/panels/timeline/LayoutShiftsTrackAppender.ts +4 -4
- package/front_end/panels/timeline/NetworkTrackAppender.ts +2 -2
- package/front_end/panels/timeline/StatusDialog.ts +5 -6
- package/front_end/panels/timeline/ThirdPartyTreeView.ts +4 -4
- package/front_end/panels/timeline/ThreadAppender.ts +12 -14
- package/front_end/panels/timeline/TimelineController.ts +5 -8
- package/front_end/panels/timeline/TimelineDetailsView.ts +13 -9
- package/front_end/panels/timeline/TimelineEventOverview.ts +4 -4
- package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +18 -18
- package/front_end/panels/timeline/TimelineFlameChartView.ts +8 -3
- package/front_end/panels/timeline/TimelineHistoryManager.ts +9 -9
- package/front_end/panels/timeline/TimelineLoader.ts +1 -1
- package/front_end/panels/timeline/TimelineMiniMap.ts +7 -2
- package/front_end/panels/timeline/TimelinePaintProfilerView.ts +7 -3
- package/front_end/panels/timeline/TimelinePanel.ts +60 -62
- package/front_end/panels/timeline/TimelineSelectorStatsView.ts +27 -27
- package/front_end/panels/timeline/TimelineTreeView.ts +47 -45
- package/front_end/panels/timeline/TimelineUIUtils.ts +146 -120
- package/front_end/panels/timeline/TimingsTrackAppender.ts +1 -1
- package/front_end/panels/timeline/TrackConfigBanner.ts +4 -4
- package/front_end/panels/timeline/UIDevtoolsUtils.ts +15 -15
- package/front_end/panels/timeline/components/LayoutShiftDetails.ts +4 -3
- package/front_end/panels/timeline/components/LiveMetricsView.ts +1 -1
- package/front_end/panels/timeline/components/NetworkRequestDetails.ts +25 -24
- package/front_end/panels/timeline/components/RelatedInsightChips.ts +4 -3
- package/front_end/panels/timeline/components/Sidebar.ts +1 -1
- package/front_end/panels/timeline/components/SidebarAnnotationsTab.ts +4 -3
- package/front_end/panels/timeline/components/insights/Table.ts +1 -1
- package/front_end/panels/timeline/enable-easter-egg.js +1 -1
- package/front_end/panels/timeline/timeline-meta.ts +30 -30
- package/front_end/panels/timeline/timelineFlameChartView.css +10 -10
- package/front_end/panels/timeline/timelineFlamechartPopover.css +5 -5
- package/front_end/panels/timeline/timelineHistoryManager.css +7 -7
- package/front_end/panels/timeline/timelinePaintProfiler.css +2 -2
- package/front_end/panels/timeline/utils/Helpers.ts +1 -1
- package/front_end/panels/timeline/utils/IgnoreList.ts +4 -4
- package/front_end/panels/timeline/utils/ImageCache.ts +5 -3
- package/front_end/panels/web_audio/WebAudioView.ts +3 -3
- package/front_end/panels/webauthn/WebauthnPane.ts +5 -11
- package/front_end/third_party/acorn/acorn.ts +3 -3
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/third_party/chromium/ahem/ahem.d.ts +1 -0
- package/front_end/third_party/csp_evaluator/package/csp.ts +4 -4
- package/front_end/third_party/csp_evaluator/package/parser.ts +3 -1
- package/front_end/third_party/csp_evaluator/package/utils.ts +1 -1
- package/front_end/third_party/diff/diff_match_patch.d.ts +10 -0
- package/front_end/third_party/json5/json5.ts +2 -2
- package/front_end/ui/comments/CommentAnchorResolver.ts +12 -3
- package/front_end/ui/comments/CommentOverlayManager.ts +9 -1
- package/front_end/ui/components/buttons/Button.docs.ts +1 -1
- package/front_end/ui/components/buttons/button.css +21 -0
- package/front_end/ui/components/buttons/floatingButton.css +25 -0
- package/front_end/ui/components/report_view/ReportView.docs.ts +1 -1
- package/front_end/ui/components/snackbars/Snackbars.docs.ts +1 -1
- package/front_end/ui/components/spinners/Spinner.ts +1 -1
- package/front_end/ui/components/spinners/Spinners.docs.ts +1 -1
- package/front_end/ui/components/srgb_overlay/SrgbOverlay.ts +1 -1
- package/front_end/ui/components/suggestion_input/SuggestionInput.ts +46 -27
- package/front_end/ui/components/switch/Switch.docs.ts +1 -1
- package/front_end/ui/components/text_editor/AiCodeCompletionProvider.ts +10 -8
- package/front_end/ui/components/text_editor/AiCodeGenerationProvider.ts +2 -1
- package/front_end/ui/components/text_editor/ExecutionPositionHighlighter.ts +2 -2
- package/front_end/ui/components/text_editor/TextEditor.ts +19 -0
- package/front_end/ui/components/text_editor/config.ts +109 -96
- package/front_end/ui/components/text_editor/cursor_tooltip.ts +1 -1
- package/front_end/ui/components/text_editor/theme.ts +1 -1
- package/front_end/ui/components/tooltips/Tooltip.docs.ts +1 -1
- package/front_end/ui/components/tooltips/Tooltip.ts +1 -1
- package/front_end/ui/components/tree_outline/TreeOutlineUtils.ts +4 -1
- package/front_end/ui/kit/cards/Card.ts +1 -1
- package/front_end/ui/kit/icons/Icon.ts +1 -1
- package/front_end/ui/kit/link/Link.docs.ts +1 -1
- package/front_end/ui/kit/link/Link.ts +1 -1
- package/front_end/ui/legacy/ContextMenu.docs.ts +1 -1
- package/front_end/ui/legacy/ContextMenu.ts +2 -2
- package/front_end/ui/legacy/Dialog.ts +10 -2
- package/front_end/ui/legacy/DropTarget.ts +6 -1
- package/front_end/ui/legacy/EmptyWidget.ts +1 -1
- package/front_end/ui/legacy/FilterBar.ts +6 -1
- package/front_end/ui/legacy/GlassPane.ts +1 -1
- package/front_end/ui/legacy/RadioButton.docs.ts +1 -1
- package/front_end/ui/legacy/SelectMenu.docs.ts +1 -1
- package/front_end/ui/legacy/ShortcutRegistry.ts +2 -2
- package/front_end/ui/legacy/Slider.docs.ts +1 -1
- package/front_end/ui/legacy/SplitWidget.ts +7 -2
- package/front_end/ui/legacy/StackedPane.ts +1 -1
- package/front_end/ui/legacy/TabbedPane.ts +5 -1
- package/front_end/ui/legacy/TargetCrashedScreen.ts +1 -1
- package/front_end/ui/legacy/TextPrompt.ts +2 -1
- package/front_end/ui/legacy/Toolbar.ts +1 -1
- package/front_end/ui/legacy/Treeoutline.ts +13 -37
- package/front_end/ui/legacy/UIUtils.ts +6 -3
- package/front_end/ui/legacy/ViewManager.ts +1 -1
- package/front_end/ui/legacy/Widget.ts +1 -1
- package/front_end/ui/legacy/components/color_picker/Spectrum.ts +13 -2
- package/front_end/ui/legacy/components/data_grid/DataGrid.ts +1 -1
- package/front_end/ui/legacy/components/data_grid/DataGridElement.ts +3 -2
- package/front_end/ui/legacy/components/data_grid/ViewportDataGrid.ts +6 -2
- package/front_end/ui/legacy/components/inline_editor/AnimationTimingModel.ts +1 -1
- package/front_end/ui/legacy/components/inline_editor/BezierEditor.ts +54 -45
- package/front_end/ui/legacy/components/inline_editor/CSSAngleUtils.ts +1 -1
- package/front_end/ui/legacy/components/inline_editor/CSSShadowEditor.ts +6 -2
- package/front_end/ui/legacy/components/object_ui/CustomPreviewComponent.ts +141 -106
- package/front_end/ui/legacy/components/object_ui/ObjectPopoverHelper.ts +1 -1
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +10 -10
- package/front_end/ui/legacy/components/object_ui/objectPropertiesSection.css +2 -0
- package/front_end/ui/legacy/components/perf_ui/FilmStripView.ts +6 -1
- package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +6 -2
- package/front_end/ui/legacy/components/perf_ui/TimelineOverviewPane.ts +8 -4
- package/front_end/ui/legacy/components/perf_ui/pieChart.css +7 -5
- package/front_end/ui/legacy/components/quick_open/FilteredListWidget.ts +8 -3
- package/front_end/ui/legacy/components/quick_open/QuickOpen.ts +6 -1
- package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +15 -7
- package/front_end/ui/legacy/components/utils/JSPresentationUtils.ts +1 -1
- package/front_end/ui/legacy/components/utils/Linkifier.ts +5 -5
- package/front_end/ui/legacy/inspectorCommon.css +11 -0
- package/front_end/ui/visual_logging/Debugging.ts +2 -1
- package/front_end/ui/visual_logging/KnownContextValues.ts +1 -1
- package/front_end/ui/visual_logging/LoggingDriver.ts +3 -3
- package/front_end/ui/visual_logging/LoggingEvents.ts +5 -5
- package/front_end/ui/visual_logging/LoggingState.ts +1 -1
- package/front_end/ui/visual_logging/visual_logging.ts +67 -56
- package/package.json +3 -2
- package/front_end/third_party/acorn/acorn-tsconfig.json +0 -12
- package/front_end/third_party/acorn/estree-tsconfig.json +0 -8
- package/front_end/third_party/chromium/client-variations/client-variations-tsconfig.json +0 -8
- package/front_end/third_party/codemirror/codemirror-legacy-types-tsconfig.json +0 -8
- package/front_end/third_party/codemirror/codemirror-tsconfig.json +0 -15
- package/front_end/third_party/codemirror.next/bundle-tsconfig.json +0 -24
- package/front_end/third_party/intl-messageformat/intl-messageformat-tsconfig.json +0 -16
- package/front_end/third_party/json5/json5-tsconfig.json +0 -8
- package/front_end/third_party/legacy-javascript/legacy-javascript-tsconfig.json +0 -8
- package/front_end/third_party/lighthouse/lighthouse-tsconfig.json +0 -11
- package/front_end/third_party/lighthouse/report/bundle-tsconfig.json +0 -8
- package/front_end/third_party/lit/lit-tsconfig.json +0 -15
- package/front_end/third_party/marked/marked-tsconfig.json +0 -8
- package/front_end/third_party/puppeteer/puppeteer-tsconfig.json +0 -191
- package/front_end/third_party/third-party-web/third-party-web-tsconfig.json +0 -8
- package/front_end/third_party/wasmparser/wasmparser-tsconfig.json +0 -9
- package/front_end/third_party/web-vitals/web-vitals-tsconfig.json +0 -47
|
@@ -95,160 +95,155 @@ import type * as Utils from './utils/utils.js';
|
|
|
95
95
|
|
|
96
96
|
const UIStrings = {
|
|
97
97
|
/**
|
|
98
|
-
* @description Text
|
|
98
|
+
* @description Text shown on the drag-and-drop overlay in the Performance panel.
|
|
99
99
|
*/
|
|
100
100
|
dropTimelineFileOrUrlHere: 'Drop trace file or URL here',
|
|
101
101
|
/**
|
|
102
|
-
* @description Dropdown option in the
|
|
103
|
-
* up to 450 frames).
|
|
102
|
+
* @description Dropdown option in the Performance panel for the default screenshot capture preset (500 x 500 pixels, up to 450 frames).
|
|
104
103
|
*/
|
|
105
104
|
screenshotPresetDefault: '500 x 500 px, up to 450 frames',
|
|
106
105
|
/**
|
|
107
|
-
* @description Dropdown option in the
|
|
108
|
-
* more of them fit in the per-session memory budget (250 x 250 pixels, up to 1800 frames).
|
|
106
|
+
* @description Dropdown option in the Performance panel for a screenshot capture preset that uses smaller frames so more fit in memory (250 x 250 pixels, up to 1800 frames).
|
|
109
107
|
*/
|
|
110
108
|
screenshotPresetMedium: '250 x 250 px, up to 1800 frames',
|
|
111
109
|
/**
|
|
112
|
-
* @description Dropdown option in the
|
|
113
|
-
* frames at the cost of capturing fewer of them (1000 x 1000 pixels, up to 100 frames).
|
|
110
|
+
* @description Dropdown option in the Performance panel for a screenshot capture preset that uses higher-resolution frames (1000 x 1000 pixels, up to 100 frames).
|
|
114
111
|
*/
|
|
115
112
|
screenshotPresetLarge: '1000 x 1000 px, up to 100 frames',
|
|
116
113
|
/**
|
|
117
|
-
* @description Dropdown option in the
|
|
118
|
-
* so many of them fit in the per-session memory budget (100 x 100 pixels, up to 11250 frames).
|
|
114
|
+
* @description Dropdown option in the Performance panel for a screenshot capture preset that uses very small frames (100 x 100 pixels, up to 11250 frames).
|
|
119
115
|
*/
|
|
120
116
|
screenshotPresetTiny: '100 x 100 px, up to 11250 frames',
|
|
121
117
|
/**
|
|
122
|
-
* @description
|
|
118
|
+
* @description Tooltip for the clear button in the Performance panel toolbar.
|
|
123
119
|
*/
|
|
124
120
|
clear: 'Clear',
|
|
125
121
|
/**
|
|
126
|
-
* @description
|
|
122
|
+
* @description Adorner label for a trace event that needs attention.
|
|
127
123
|
*/
|
|
128
124
|
fixMe: 'Fix me',
|
|
129
125
|
/**
|
|
130
|
-
* @description Tooltip
|
|
126
|
+
* @description Tooltip for the load trace button in the Performance panel toolbar.
|
|
131
127
|
*/
|
|
132
128
|
loadTrace: 'Load trace…',
|
|
133
129
|
/**
|
|
134
|
-
* @description
|
|
130
|
+
* @description Label for the capture screenshots checkbox in the Performance panel settings.
|
|
135
131
|
*/
|
|
136
132
|
captureScreenshots: 'Capture screenshots',
|
|
137
133
|
/**
|
|
138
|
-
* @description
|
|
134
|
+
* @description Label for the show memory timeline checkbox in the Performance panel toolbar.
|
|
139
135
|
*/
|
|
140
136
|
showMemoryTimeline: 'Show memory timeline',
|
|
141
137
|
/**
|
|
142
|
-
* @description Tooltip
|
|
138
|
+
* @description Tooltip for the capture settings button in the Performance panel toolbar.
|
|
143
139
|
*/
|
|
144
140
|
captureSettings: 'Capture settings',
|
|
145
141
|
/**
|
|
146
|
-
* @description
|
|
142
|
+
* @description Tooltip for the checkbox that disables JavaScript sampling in the capture settings of the Performance panel.
|
|
147
143
|
*/
|
|
148
144
|
disablesJavascriptSampling: 'Disables JavaScript sampling, reduces overhead when running against mobile devices',
|
|
149
145
|
/**
|
|
150
|
-
|
|
146
|
+
* @description Tooltip for the checkbox that captures advanced paint instrumentation in the capture settings of the Performance panel.
|
|
151
147
|
*/
|
|
152
148
|
capturesAdvancedPaint: 'Captures advanced paint instrumentation, introduces significant performance overhead',
|
|
153
149
|
/**
|
|
154
|
-
* @description
|
|
150
|
+
* @description Tooltip for the checkbox that captures CSS selector statistics in the capture settings of the Performance panel.
|
|
155
151
|
*/
|
|
156
152
|
capturesSelectorStats: 'Captures CSS selector statistics',
|
|
157
153
|
/**
|
|
158
|
-
* @description
|
|
154
|
+
* @description Label for the network throttling setting in the capture settings of the Performance panel.
|
|
159
155
|
*/
|
|
160
156
|
network: 'Network:',
|
|
161
157
|
/**
|
|
162
|
-
* @description
|
|
158
|
+
* @description Label for the CPU throttling setting in the capture settings of the Performance panel.
|
|
163
159
|
*/
|
|
164
160
|
cpu: 'CPU:',
|
|
165
161
|
/**
|
|
166
|
-
* @description
|
|
162
|
+
* @description Status message indicating that CPU throttling is enabled in the Performance panel.
|
|
167
163
|
*/
|
|
168
164
|
CpuThrottlingIsEnabled: '- CPU throttling is enabled',
|
|
169
165
|
/**
|
|
170
|
-
* @description
|
|
166
|
+
* @description Status message indicating that network throttling is enabled in the Performance panel.
|
|
171
167
|
*/
|
|
172
168
|
NetworkThrottlingIsEnabled: '- Network throttling is enabled',
|
|
173
169
|
/**
|
|
174
|
-
* @description
|
|
170
|
+
* @description Status message indicating that advanced paint instrumentation is active in the Performance panel.
|
|
175
171
|
*/
|
|
176
172
|
SignificantOverheadDueToPaint: '- Significant overhead due to paint instrumentation',
|
|
177
173
|
/**
|
|
178
|
-
* @description
|
|
174
|
+
* @description Status message indicating that CSS selector statistics capture is enabled in the Performance panel.
|
|
179
175
|
*/
|
|
180
176
|
SelectorStatsEnabled: '- Selector stats is enabled',
|
|
181
177
|
/**
|
|
182
|
-
* @description
|
|
178
|
+
* @description Status message indicating that JavaScript sampling is disabled in the Performance panel.
|
|
183
179
|
*/
|
|
184
180
|
JavascriptSamplingIsDisabled: '- JavaScript sampling is disabled',
|
|
185
181
|
/**
|
|
186
|
-
|
|
182
|
+
* @description Status text shown while stopping a timeline recording in the Performance panel.
|
|
187
183
|
*/
|
|
188
184
|
stoppingTimeline: 'Stopping timeline…',
|
|
189
185
|
/**
|
|
190
|
-
* @description
|
|
186
|
+
* @description Status label for received data during trace recording in the Performance panel.
|
|
191
187
|
*/
|
|
192
188
|
received: 'Received',
|
|
193
189
|
/**
|
|
194
|
-
* @description
|
|
190
|
+
* @description Status label for processed data during trace recording in the Performance panel.
|
|
195
191
|
*/
|
|
196
192
|
processed: 'Processed',
|
|
197
193
|
/**
|
|
198
|
-
* @description
|
|
194
|
+
* @description Button label to close the status dialog in the Performance panel.
|
|
199
195
|
*/
|
|
200
196
|
close: 'Close',
|
|
201
197
|
/**
|
|
202
|
-
* @description Status text
|
|
198
|
+
* @description Status text indicating that trace recording failed in the Performance panel.
|
|
203
199
|
*/
|
|
204
200
|
recordingFailed: 'Recording failed',
|
|
205
201
|
/**
|
|
206
|
-
* @description Status text
|
|
202
|
+
* @description Status text indicating that exporting the trace failed in the Performance panel.
|
|
207
203
|
*/
|
|
208
204
|
exportingFailed: 'Exporting the trace failed',
|
|
209
205
|
/**
|
|
210
|
-
* @description
|
|
206
|
+
* @description Status text shown while initializing trace recording in the Performance panel.
|
|
211
207
|
*/
|
|
212
208
|
initializingTracing: 'Initializing tracing…',
|
|
213
209
|
/**
|
|
214
|
-
* @description
|
|
215
|
-
* creating a performance trace.
|
|
210
|
+
* @description Status text shown while recording a trace in the Performance panel.
|
|
216
211
|
*/
|
|
217
212
|
tracing: 'Tracing…',
|
|
218
213
|
/**
|
|
219
|
-
* @description
|
|
214
|
+
* @description Label for trace buffer usage progress in the status dialog of the Performance panel.
|
|
220
215
|
*/
|
|
221
216
|
bufferUsage: 'Buffer usage',
|
|
222
217
|
/**
|
|
223
|
-
* @description
|
|
218
|
+
* @description Status text shown while loading a trace file in the Performance panel.
|
|
224
219
|
*/
|
|
225
220
|
loadingTrace: 'Loading trace…',
|
|
226
221
|
/**
|
|
227
|
-
* @description
|
|
222
|
+
* @description Status text shown while processing a trace in the Performance panel.
|
|
228
223
|
*/
|
|
229
224
|
processingTrace: 'Processing trace…',
|
|
230
225
|
/**
|
|
231
|
-
* @description
|
|
226
|
+
* @description Status text shown while preparing a trace for download in the Performance panel.
|
|
232
227
|
*/
|
|
233
228
|
preparingTraceForDownload: 'Preparing…',
|
|
234
229
|
/**
|
|
235
|
-
* @description
|
|
230
|
+
* @description Status text shown while compressing a trace for download in the Performance panel.
|
|
236
231
|
*/
|
|
237
232
|
compressingTraceForDownload: 'Compressing…',
|
|
238
233
|
/**
|
|
239
|
-
* @description
|
|
234
|
+
* @description Status text shown while encoding a trace for download in the Performance panel.
|
|
240
235
|
*/
|
|
241
236
|
encodingTraceForDownload: 'Encoding…',
|
|
242
237
|
/**
|
|
243
|
-
* @description
|
|
238
|
+
* @description Label for the checkbox to show data added by extensions in the Performance panel.
|
|
244
239
|
*/
|
|
245
240
|
showDataAddedByExtensions: 'Show data added by extensions of the Performance panel',
|
|
246
241
|
/**
|
|
247
|
-
* @description Tooltip for the the sidebar
|
|
242
|
+
* @description Tooltip for the button to show the sidebar in the Performance panel.
|
|
248
243
|
*/
|
|
249
244
|
showSidebar: 'Show sidebar',
|
|
250
245
|
/**
|
|
251
|
-
* @description Tooltip for the the sidebar
|
|
246
|
+
* @description Tooltip for the button to hide the sidebar in the Performance panel.
|
|
252
247
|
*/
|
|
253
248
|
hideSidebar: 'Hide sidebar',
|
|
254
249
|
/**
|
|
@@ -260,49 +255,48 @@ const UIStrings = {
|
|
|
260
255
|
*/
|
|
261
256
|
sidebarHidden: 'Performance sidebar hidden',
|
|
262
257
|
/**
|
|
263
|
-
* @description Screen reader announcement when the
|
|
258
|
+
* @description Screen reader announcement when the selection is cleared in the Performance panel.
|
|
264
259
|
*/
|
|
265
260
|
selectionCleared: 'Selection cleared',
|
|
266
261
|
/**
|
|
267
|
-
* @description Screen reader announcement when
|
|
262
|
+
* @description Screen reader announcement when a frame is selected in the Performance panel.
|
|
268
263
|
*/
|
|
269
264
|
frameSelected: 'Frame selected',
|
|
270
265
|
/**
|
|
271
|
-
* @description Screen reader announcement when
|
|
266
|
+
* @description Screen reader announcement when a trace event is selected in the Performance panel.
|
|
272
267
|
* @example {Paint} PH1
|
|
273
268
|
*/
|
|
274
269
|
eventSelected: 'Event {PH1} selected',
|
|
275
270
|
/**
|
|
276
|
-
* @description
|
|
271
|
+
* @description Link text to open documentation in the Performance panel.
|
|
277
272
|
*/
|
|
278
273
|
learnMore: 'Learn more',
|
|
279
274
|
/**
|
|
280
|
-
* @description Tooltip
|
|
275
|
+
* @description Tooltip for the button to return to the live metrics page in the Performance panel.
|
|
281
276
|
*/
|
|
282
277
|
backToLiveMetrics: 'Go back to the live metrics page',
|
|
283
278
|
/**
|
|
284
|
-
* @description
|
|
279
|
+
* @description Label for zoom keyboard shortcuts in the shortcuts dialog of the Performance panel.
|
|
285
280
|
*/
|
|
286
281
|
timelineZoom: 'Zoom',
|
|
287
282
|
/**
|
|
288
|
-
* @description
|
|
283
|
+
* @description Label for scroll and pan keyboard shortcuts in the shortcuts dialog of the Performance panel.
|
|
289
284
|
*/
|
|
290
|
-
timelineScrollPan: 'Scroll &
|
|
285
|
+
timelineScrollPan: 'Scroll & pan',
|
|
291
286
|
/**
|
|
292
|
-
* @description
|
|
287
|
+
* @description Tooltip describing that third-party entities are classified by the third-party-web database.
|
|
293
288
|
*/
|
|
294
289
|
thirdPartiesByThirdPartyWeb: '3rd parties classified by third-party-web',
|
|
295
290
|
/**
|
|
296
|
-
* @description Title of the shortcuts dialog
|
|
291
|
+
* @description Title of the shortcuts dialog listing keyboard shortcuts for the timeline flame chart.
|
|
297
292
|
*/
|
|
298
|
-
shortcutsDialogTitle: 'Keyboard shortcuts for
|
|
293
|
+
shortcutsDialogTitle: 'Keyboard shortcuts for flame chart',
|
|
299
294
|
/**
|
|
300
|
-
* @description Header for the confirmation dialog asking the
|
|
301
|
-
* to load a CPU profile recorded by console.profile().
|
|
295
|
+
* @description Header for the confirmation dialog asking whether to load a CPU profile in the Performance panel.
|
|
302
296
|
*/
|
|
303
297
|
loadCpuProfileHeader: 'Load CPU profile?',
|
|
304
298
|
/**
|
|
305
|
-
* @description Confirmation message asking
|
|
299
|
+
* @description Confirmation message asking whether to load a recorded CPU profile into the Performance panel.
|
|
306
300
|
* @example {Profile 1} PH1
|
|
307
301
|
*/
|
|
308
302
|
loadCpuProfileConfirmation: 'Do you want to load the recorded CPU profile "{PH1}" into the Performance panel?',
|
|
@@ -372,8 +366,12 @@ type ViewMode = {
|
|
|
372
366
|
mode: 'STATUS_PANE_OVERLAY',
|
|
373
367
|
};
|
|
374
368
|
|
|
375
|
-
|
|
376
|
-
|
|
369
|
+
const TimelinePanelBase: Common.ObjectWrapper.EventMixin<EventTypes, typeof UI.Panel.Panel> =
|
|
370
|
+
Common.ObjectWrapper.eventMixin(
|
|
371
|
+
UI.Panel.Panel,
|
|
372
|
+
);
|
|
373
|
+
|
|
374
|
+
export class TimelinePanel extends TimelinePanelBase implements Client, TimelineModeViewDelegate {
|
|
377
375
|
private readonly dropTarget: UI.DropTarget.DropTarget;
|
|
378
376
|
private readonly recordingOptionUIControls: UI.Toolbar.ToolbarItem[];
|
|
379
377
|
private state: State;
|
|
@@ -2562,9 +2560,9 @@ export class TimelinePanel extends Common.ObjectWrapper.eventMixin<EventTypes, t
|
|
|
2562
2560
|
* run when the user switches to an existing trace, please @see
|
|
2563
2561
|
* #setModelForActiveTrace and put your code in there.
|
|
2564
2562
|
**/
|
|
2565
|
-
async loadingComplete(
|
|
2566
|
-
|
|
2567
|
-
|
|
2563
|
+
async loadingComplete(collectedEvents: Trace.Types.Events.Event[],
|
|
2564
|
+
exclusiveFilter: Trace.Extras.TraceFilter.TraceFilter|null|undefined = null,
|
|
2565
|
+
metadata: Trace.Types.File.MetaData|null): Promise<void> {
|
|
2568
2566
|
this.#traceEngineModel.resetProcessor();
|
|
2569
2567
|
|
|
2570
2568
|
delete this.loader;
|
|
@@ -19,92 +19,92 @@ import * as Utils from './utils/utils.js';
|
|
|
19
19
|
|
|
20
20
|
const UIStrings = {
|
|
21
21
|
/**
|
|
22
|
-
* @description
|
|
22
|
+
* @description Accessible name for the selector stats data grid in the Performance panel.
|
|
23
23
|
*/
|
|
24
24
|
selectorStats: 'Selector stats',
|
|
25
25
|
/**
|
|
26
|
-
* @description Column
|
|
26
|
+
* @description Column header for elapsed time in the selector stats data grid.
|
|
27
27
|
*/
|
|
28
28
|
elapsed: 'Elapsed (ms)',
|
|
29
29
|
/**
|
|
30
|
-
* @description Tooltip
|
|
30
|
+
* @description Tooltip explanation for the elapsed time column in the selector stats data grid.
|
|
31
31
|
*/
|
|
32
|
-
elapsedExplanation: 'Elapsed time spent matching a selector against the DOM in milliseconds
|
|
32
|
+
elapsedExplanation: 'Elapsed time spent matching a selector against the DOM in milliseconds',
|
|
33
33
|
/**
|
|
34
|
-
* @description Column
|
|
34
|
+
* @description Column header for the percentage of slow-path non-matches in the selector stats data grid.
|
|
35
35
|
*/
|
|
36
36
|
slowPathNonMatches: '% of slow-path non-matches',
|
|
37
37
|
/**
|
|
38
|
-
* @description Tooltip
|
|
38
|
+
* @description Tooltip explanation for the slow-path non-matches column in the selector stats data grid.
|
|
39
39
|
*/
|
|
40
40
|
slowPathNonMatchesExplanation:
|
|
41
|
-
'The percentage of non-matching nodes (
|
|
41
|
+
'The percentage of non-matching nodes (match attempts − match count) that couldn’t be quickly ruled out by the bloom filter due to high selector complexity. Lower is better.',
|
|
42
42
|
/**
|
|
43
|
-
* @description Column
|
|
43
|
+
* @description Column header for match attempts in the selector stats data grid.
|
|
44
44
|
*/
|
|
45
45
|
matchAttempts: 'Match attempts',
|
|
46
46
|
/**
|
|
47
|
-
* @description Tooltip
|
|
47
|
+
* @description Tooltip explanation for the match attempts column in the selector stats data grid.
|
|
48
48
|
*/
|
|
49
|
-
matchAttemptsExplanation: 'Count of nodes that the engine attempted to match against a style rule
|
|
49
|
+
matchAttemptsExplanation: 'Count of nodes that the engine attempted to match against a style rule',
|
|
50
50
|
/**
|
|
51
|
-
* @description Column
|
|
51
|
+
* @description Column header for match count in the selector stats data grid.
|
|
52
52
|
*/
|
|
53
53
|
matchCount: 'Match count',
|
|
54
54
|
/**
|
|
55
|
-
* @description Tooltip
|
|
55
|
+
* @description Tooltip explanation for the match count column in the selector stats data grid.
|
|
56
56
|
*/
|
|
57
|
-
matchCountExplanation: 'Count of nodes that matched a style rule
|
|
57
|
+
matchCountExplanation: 'Count of nodes that matched a style rule',
|
|
58
58
|
/**
|
|
59
|
-
* @description Column
|
|
59
|
+
* @description Column header for the CSS selector in the selector stats data grid.
|
|
60
60
|
*/
|
|
61
61
|
selector: 'Selector',
|
|
62
62
|
/**
|
|
63
|
-
* @description Tooltip
|
|
63
|
+
* @description Tooltip explanation for the selector column in the selector stats data grid.
|
|
64
64
|
*/
|
|
65
|
-
selectorExplanation: 'CSS selector text of a style rule
|
|
65
|
+
selectorExplanation: 'CSS selector text of a style rule',
|
|
66
66
|
/**
|
|
67
|
-
* @description Column
|
|
67
|
+
* @description Column header for the stylesheet link in the selector stats data grid.
|
|
68
68
|
*/
|
|
69
|
-
styleSheetId: 'Style
|
|
69
|
+
styleSheetId: 'Style sheet',
|
|
70
70
|
/**
|
|
71
|
-
* @description Tooltip
|
|
71
|
+
* @description Tooltip explanation for the style sheet column in the selector stats data grid.
|
|
72
72
|
*/
|
|
73
73
|
styleSheetIdExplanation:
|
|
74
74
|
'Links to the selector rule definition in the style sheets. Note that a selector rule could be defined in multiple places in a style sheet or defined in multiple style sheets. Selector rules from browser user-agent style sheet or dynamic style sheets don’t have a link.',
|
|
75
75
|
/**
|
|
76
|
-
* @description
|
|
76
|
+
* @description Context menu item to copy the selector stats table to clipboard.
|
|
77
77
|
*/
|
|
78
78
|
copyTable: 'Copy table',
|
|
79
79
|
/**
|
|
80
|
-
* @description
|
|
80
|
+
* @description Cell value displayed when a stylesheet source file cannot be linked.
|
|
81
81
|
*/
|
|
82
82
|
unableToLink: 'Unable to link',
|
|
83
83
|
/**
|
|
84
|
-
* @description Tooltip
|
|
84
|
+
* @description Tooltip displayed when a stylesheet source file cannot be linked via its ID.
|
|
85
85
|
* @example {style-sheet-4} PH1
|
|
86
86
|
*/
|
|
87
87
|
unableToLinkViaStyleSheetId: 'Unable to link via {PH1}',
|
|
88
88
|
/**
|
|
89
|
-
* @description
|
|
89
|
+
* @description Screen reader announcement when the selector stats table is copied to clipboard.
|
|
90
90
|
*/
|
|
91
91
|
tableCopiedToClipboard: 'Table copied to clipboard',
|
|
92
92
|
/**
|
|
93
|
-
* @description
|
|
93
|
+
* @description Row description for the aggregated totals of all selectors in the selector stats data grid.
|
|
94
94
|
*/
|
|
95
95
|
totalForAllSelectors: '(Totals for all selectors)',
|
|
96
96
|
/**
|
|
97
|
-
* @description
|
|
97
|
+
* @description Link text showing the line and column number of a selector rule in a stylesheet.
|
|
98
98
|
* @example {256} PH1
|
|
99
99
|
* @example {14} PH2
|
|
100
100
|
*/
|
|
101
101
|
lineNumber: 'Line {PH1}:{PH2}',
|
|
102
102
|
/**
|
|
103
|
-
* @description
|
|
103
|
+
* @description Column header for invalidation count in the selector stats data grid.
|
|
104
104
|
*/
|
|
105
105
|
invalidationCount: 'Invalidation count',
|
|
106
106
|
/**
|
|
107
|
-
* @description Tooltip
|
|
107
|
+
* @description Tooltip explanation for the invalidation count column in the selector stats data grid.
|
|
108
108
|
*/
|
|
109
109
|
invalidationCountExplanation:
|
|
110
110
|
'Aggregated count of invalidations on nodes and subsequently had style recalculated, all of which are matched by this selector. Note that a node can be invalidated multiple times and by multiple selectors.',
|
|
@@ -27,97 +27,92 @@ import {TimelineUIUtils} from './TimelineUIUtils.js';
|
|
|
27
27
|
|
|
28
28
|
const UIStrings = {
|
|
29
29
|
/**
|
|
30
|
-
* @description
|
|
30
|
+
* @description Data grid name for timeline tree view tables in the Performance panel.
|
|
31
31
|
*/
|
|
32
32
|
performance: 'Performance',
|
|
33
33
|
/**
|
|
34
|
-
* @description
|
|
34
|
+
* @description Column header for self time in timeline tree views.
|
|
35
35
|
*/
|
|
36
36
|
selfTime: 'Self time',
|
|
37
37
|
/**
|
|
38
|
-
* @description
|
|
38
|
+
* @description Column header for total time in timeline tree views.
|
|
39
39
|
*/
|
|
40
40
|
totalTime: 'Total time',
|
|
41
41
|
/**
|
|
42
|
-
* @description
|
|
42
|
+
* @description Column header for the activity name in timeline tree views.
|
|
43
43
|
*/
|
|
44
44
|
activity: 'Activity',
|
|
45
45
|
/**
|
|
46
|
-
* @description
|
|
46
|
+
* @description Banner message shown when no tree item is selected for details in the Performance panel.
|
|
47
47
|
*/
|
|
48
|
-
selectItemForDetails: 'Select item for details
|
|
48
|
+
selectItemForDetails: 'Select item for details',
|
|
49
49
|
/**
|
|
50
|
-
* @description
|
|
50
|
+
* @description Percentage format in timeline tree views.
|
|
51
51
|
* @example {20} PH1
|
|
52
52
|
*/
|
|
53
53
|
percentPlaceholder: '{PH1} %',
|
|
54
54
|
/**
|
|
55
|
-
* @description
|
|
55
|
+
* @description Row label for Chrome extensions overhead in timeline tree views.
|
|
56
56
|
*/
|
|
57
57
|
chromeExtensionsOverhead: '[`Chrome` extensions overhead]',
|
|
58
58
|
/**
|
|
59
|
-
* @description
|
|
60
|
-
* when developers investigate the performance of a page. 'V8 Runtime' labels the time
|
|
61
|
-
* spent in (i.e. runtime) the V8 JavaScript engine.
|
|
59
|
+
* @description Row label for V8 runtime overhead in timeline tree views.
|
|
62
60
|
*/
|
|
63
|
-
vRuntime: '[`V8`
|
|
61
|
+
vRuntime: '[`V8` runtime]',
|
|
64
62
|
/**
|
|
65
|
-
* @description
|
|
63
|
+
* @description Row label for unattributed activity in timeline tree views.
|
|
66
64
|
*/
|
|
67
65
|
unattributed: '[unattributed]',
|
|
68
66
|
/**
|
|
69
|
-
* @description
|
|
67
|
+
* @description Label for the main frame page in grouping options.
|
|
70
68
|
*/
|
|
71
69
|
page: 'Page',
|
|
72
70
|
/**
|
|
73
|
-
* @description
|
|
71
|
+
* @description Option in the grouping dropdown for no grouping in timeline tree views.
|
|
74
72
|
*/
|
|
75
73
|
noGrouping: 'No grouping',
|
|
76
74
|
/**
|
|
77
|
-
* @description
|
|
75
|
+
* @description Option in the grouping dropdown to group by activity in timeline tree views.
|
|
78
76
|
*/
|
|
79
77
|
groupByActivity: 'Group by activity',
|
|
80
78
|
/**
|
|
81
|
-
* @description
|
|
79
|
+
* @description Option in the grouping dropdown to group by category in timeline tree views.
|
|
82
80
|
*/
|
|
83
81
|
groupByCategory: 'Group by category',
|
|
84
82
|
/**
|
|
85
|
-
* @description
|
|
83
|
+
* @description Option in the grouping dropdown to group by domain in timeline tree views.
|
|
86
84
|
*/
|
|
87
85
|
groupByDomain: 'Group by domain',
|
|
88
86
|
/**
|
|
89
|
-
* @description
|
|
87
|
+
* @description Option in the grouping dropdown to group by frame in timeline tree views.
|
|
90
88
|
*/
|
|
91
89
|
groupByFrame: 'Group by frame',
|
|
92
90
|
/**
|
|
93
|
-
* @description
|
|
91
|
+
* @description Option in the grouping dropdown to group by subdomain in timeline tree views.
|
|
94
92
|
*/
|
|
95
93
|
groupBySubdomain: 'Group by subdomain',
|
|
96
94
|
/**
|
|
97
|
-
* @description
|
|
95
|
+
* @description Option in the grouping dropdown to group by URL in timeline tree views.
|
|
98
96
|
*/
|
|
99
97
|
groupByUrl: 'Group by URL',
|
|
100
98
|
/**
|
|
101
|
-
* @description
|
|
99
|
+
* @description Option in the grouping dropdown to group by third parties in timeline tree views.
|
|
102
100
|
*/
|
|
103
|
-
groupByThirdParties: 'Group by
|
|
101
|
+
groupByThirdParties: 'Group by 3rd parties',
|
|
104
102
|
/**
|
|
105
|
-
* @description
|
|
103
|
+
* @description Accessible label for the grouping dropdown in timeline tree views.
|
|
106
104
|
*/
|
|
107
105
|
groupBy: 'Group by',
|
|
108
106
|
/**
|
|
109
|
-
* @description Title
|
|
110
|
-
* stack) where the program spent the most time (out of all the call stacks) while executing.
|
|
107
|
+
* @description Title for the heaviest stack sidebar in timeline tree views.
|
|
111
108
|
*/
|
|
112
109
|
heaviestStack: 'Heaviest stack',
|
|
113
110
|
/**
|
|
114
|
-
* @description Tooltip for the the
|
|
115
|
-
* Performance panel. Command to open/show the sidebar.
|
|
111
|
+
* @description Tooltip for the button to show the heaviest stack sidebar in timeline tree views.
|
|
116
112
|
*/
|
|
117
113
|
showHeaviestStack: 'Show heaviest stack',
|
|
118
114
|
/**
|
|
119
|
-
* @description Tooltip for the the
|
|
120
|
-
* Performance panel. Command to close/hide the sidebar.
|
|
115
|
+
* @description Tooltip for the button to hide the heaviest stack sidebar in timeline tree views.
|
|
121
116
|
*/
|
|
122
117
|
hideHeaviestStack: 'Hide heaviest stack',
|
|
123
118
|
/**
|
|
@@ -129,35 +124,35 @@ const UIStrings = {
|
|
|
129
124
|
*/
|
|
130
125
|
heaviestStackHidden: 'Heaviest stack sidebar hidden',
|
|
131
126
|
/**
|
|
132
|
-
* @description Data grid name for
|
|
127
|
+
* @description Data grid name for heaviest stack tables in the Performance panel.
|
|
133
128
|
*/
|
|
134
129
|
timelineStack: 'Timeline stack',
|
|
135
130
|
/**
|
|
136
|
-
*
|
|
131
|
+
* @description Tooltip for the match case search button in timeline tree views.
|
|
137
132
|
*/
|
|
138
133
|
matchCase: 'Match case',
|
|
139
134
|
/**
|
|
140
|
-
* @description
|
|
135
|
+
* @description Tooltip for the regular expression search button in timeline tree views.
|
|
141
136
|
*/
|
|
142
137
|
useRegularExpression: 'Use regular expression',
|
|
143
138
|
/**
|
|
144
|
-
* @description
|
|
139
|
+
* @description Tooltip for the match whole word search button in timeline tree views.
|
|
145
140
|
*/
|
|
146
141
|
matchWholeWord: 'Match whole word',
|
|
147
142
|
/**
|
|
148
|
-
* @description
|
|
143
|
+
* @description Tooltip for the button to switch to the bottom-up view in timeline tree views.
|
|
149
144
|
*/
|
|
150
145
|
bottomUp: 'Bottom-up',
|
|
151
146
|
/**
|
|
152
|
-
* @description
|
|
147
|
+
* @description Accessible label for the button to switch to the bottom-up view in timeline tree views.
|
|
153
148
|
*/
|
|
154
|
-
viewBottomUp: 'View
|
|
149
|
+
viewBottomUp: 'View bottom-up',
|
|
155
150
|
/**
|
|
156
|
-
* @description
|
|
151
|
+
* @description Badge text for a 1st party entity in timeline tree views.
|
|
157
152
|
*/
|
|
158
153
|
firstParty: '1st party',
|
|
159
154
|
/**
|
|
160
|
-
* @description
|
|
155
|
+
* @description Badge text for an extension entity in timeline tree views.
|
|
161
156
|
*/
|
|
162
157
|
extension: 'Extension',
|
|
163
158
|
} as const;
|
|
@@ -167,9 +162,12 @@ const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
|
167
162
|
/**
|
|
168
163
|
* For an overview, read: https://chromium.googlesource.com/devtools/devtools-frontend/+/refs/heads/main/front_end/panels/timeline/README.md#timeline-tree-views
|
|
169
164
|
*/
|
|
170
|
-
|
|
171
|
-
Common.ObjectWrapper.eventMixin
|
|
172
|
-
|
|
165
|
+
const TimelineTreeViewBase: Common.ObjectWrapper.EventMixin<TimelineTreeView.EventTypes, typeof UI.Widget.VBox> =
|
|
166
|
+
Common.ObjectWrapper.eventMixin(
|
|
167
|
+
UI.Widget.VBox,
|
|
168
|
+
);
|
|
169
|
+
|
|
170
|
+
export class TimelineTreeView extends TimelineTreeViewBase implements UI.SearchableView.Searchable {
|
|
173
171
|
/** This is sorted by ts. */
|
|
174
172
|
#selectedEvents: Trace.Types.Events.Event[]|null;
|
|
175
173
|
private searchResults: Trace.Extras.TraceTree.Node[];
|
|
@@ -196,7 +194,7 @@ export class TimelineTreeView extends
|
|
|
196
194
|
#parsedTrace: Trace.TraceModel.ParsedTrace|null = null;
|
|
197
195
|
#entityMapper: Trace.EntityMapper.EntityMapper|null = null;
|
|
198
196
|
#lastHighlightedEvent: HTMLElement|null = null;
|
|
199
|
-
eventToTreeNode
|
|
197
|
+
eventToTreeNode: WeakMap<Trace.Types.Events.Event, Trace.Extras.TraceTree.Node> = new WeakMap();
|
|
200
198
|
// Compact mode is used to render the tree view in a more compact UI,
|
|
201
199
|
// suitable for AI assistance widgets. It removes sidebars and toolbars.
|
|
202
200
|
#compactMode = false;
|
|
@@ -1418,8 +1416,12 @@ export class BottomUpTimelineTreeView extends AggregatedTimelineTreeView {
|
|
|
1418
1416
|
}
|
|
1419
1417
|
}
|
|
1420
1418
|
|
|
1421
|
-
|
|
1422
|
-
Common.ObjectWrapper.eventMixin
|
|
1419
|
+
const TimelineStackViewBase: Common.ObjectWrapper.EventMixin<TimelineStackView.EventTypes, typeof UI.Widget.VBox> =
|
|
1420
|
+
Common.ObjectWrapper.eventMixin(
|
|
1421
|
+
UI.Widget.VBox,
|
|
1422
|
+
);
|
|
1423
|
+
|
|
1424
|
+
export class TimelineStackView extends TimelineStackViewBase {
|
|
1423
1425
|
private readonly treeView: TimelineTreeView;
|
|
1424
1426
|
private readonly dataGrid: DataGrid.ViewportDataGrid.ViewportDataGrid<unknown>;
|
|
1425
1427
|
|