chrome-devtools-frontend 1.0.1689415 → 1.0.1690116
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/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 +0 -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/SDKSettings.ts +9 -0
- package/front_end/core/sdk/Script.ts +0 -1
- package/front_end/core/sdk/SecurityOrigin.ts +135 -25
- package/front_end/core/sdk/Target.ts +1 -5
- 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/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/BounceTrackingMitigationsView.ts +1 -1
- package/front_end/panels/application/components/CrashReportContextGrid.ts +1 -1
- package/front_end/panels/application/components/EndpointsGrid.ts +1 -1
- package/front_end/panels/application/components/ReportsGrid.ts +1 -1
- package/front_end/panels/application/components/TrustTokensView.ts +1 -1
- package/front_end/panels/application/preloading/components/MismatchedPreloadingGrid.ts +1 -1
- package/front_end/panels/application/preloading/components/PreloadingGrid.ts +1 -1
- package/front_end/panels/application/preloading/components/RuleSetGrid.ts +7 -2
- 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/console/ConsolePrompt.ts +6 -2
- package/front_end/panels/console/ConsoleSidebar.ts +6 -2
- package/front_end/panels/elements/ElementsTreeElement.ts +12 -0
- package/front_end/panels/elements/ElementsTreeOutline.ts +400 -128
- package/front_end/panels/elements/PropertyRenderer.ts +22 -15
- package/front_end/panels/elements/StandaloneStylesContainer.ts +6 -2
- package/front_end/panels/elements/StylePropertyTreeElement.ts +75 -26
- package/front_end/panels/elements/StylesSidebarPane.ts +6 -2
- 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/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/mobile_throttling/NetworkThrottlingSelector.ts +6 -2
- package/front_end/panels/mobile_throttling/ThrottlingManager.ts +25 -54
- package/front_end/panels/network/NetworkLogView.ts +8 -3
- package/front_end/panels/network/components/RequestHeadersView.css +5 -0
- 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/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 +2 -2
- package/front_end/panels/timeline/LayoutShiftsTrackAppender.ts +3 -3
- package/front_end/panels/timeline/NetworkTrackAppender.ts +1 -1
- 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 +17 -17
- package/front_end/panels/timeline/TimelineFlameChartView.ts +8 -3
- package/front_end/panels/timeline/TimelineHistoryManager.ts +8 -8
- package/front_end/panels/timeline/TimelineLoader.ts +1 -1
- package/front_end/panels/timeline/TimelineMiniMap.ts +7 -2
- package/front_end/panels/timeline/TimelinePanel.ts +57 -59
- package/front_end/panels/timeline/TimelineSelectorStatsView.ts +27 -27
- package/front_end/panels/timeline/TimelineTreeView.ts +46 -44
- package/front_end/panels/timeline/TimelineUIUtils.ts +142 -116
- 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/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/IgnoreList.ts +4 -4
- package/front_end/third_party/chromium/README.chromium +1 -1
- 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/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/suggestion_input/SuggestionInput.ts +1 -2
- 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/Dialog.ts +10 -2
- package/front_end/ui/legacy/FilterBar.ts +6 -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/Slider.docs.ts +1 -1
- package/front_end/ui/legacy/SplitWidget.ts +5 -1
- package/front_end/ui/legacy/TabbedPane.ts +5 -1
- package/front_end/ui/legacy/components/color_picker/Spectrum.ts +6 -1
- package/front_end/ui/legacy/components/data_grid/ViewportDataGrid.ts +6 -2
- package/front_end/ui/legacy/components/inline_editor/BezierEditor.ts +6 -1
- package/front_end/ui/legacy/components/inline_editor/CSSShadowEditor.ts +6 -2
- 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/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 +7 -2
- package/package.json +2 -2
|
@@ -30,42 +30,42 @@ export const LANDING_PAGE_INDEX_DROPDOWN_CHOICE = Infinity;
|
|
|
30
30
|
|
|
31
31
|
const UIStrings = {
|
|
32
32
|
/**
|
|
33
|
-
* @description Screen reader
|
|
33
|
+
* @description Screen reader announcement for the current session in the timeline history dropdown button.
|
|
34
34
|
* @example {example.com #3} PH1
|
|
35
35
|
* @example {Show recent timeline sessions} PH2
|
|
36
36
|
*/
|
|
37
37
|
currentSessionSS: 'Current session: {PH1}. {PH2}',
|
|
38
38
|
/**
|
|
39
|
-
* @description
|
|
39
|
+
* @description Title shown when viewing the live metrics landing page in the Performance panel.
|
|
40
40
|
*/
|
|
41
41
|
landingPageTitle: 'Live metrics',
|
|
42
42
|
/**
|
|
43
|
-
* @description
|
|
43
|
+
* @description Title shown when viewing the new recording landing page for Node.js in the Performance panel.
|
|
44
44
|
*/
|
|
45
45
|
nodeLandingPageTitle: 'New recording',
|
|
46
46
|
/**
|
|
47
|
-
* @description
|
|
47
|
+
* @description Format for a trace title with domain and sequence number in the timeline history dropdown.
|
|
48
48
|
* @example {example.com} PH1
|
|
49
49
|
* @example {2} PH2
|
|
50
50
|
*/
|
|
51
51
|
sD: '{PH1} #{PH2}',
|
|
52
52
|
/**
|
|
53
|
-
* @description
|
|
53
|
+
* @description Format for a custom trace title with sequence number in the timeline history dropdown.
|
|
54
54
|
* @example {Custom Profile} PH1
|
|
55
55
|
* @example {example.com #2} PH2
|
|
56
56
|
*/
|
|
57
57
|
customTitleWithSequence: '{PH1} ({PH2})',
|
|
58
58
|
/**
|
|
59
|
-
* @description Accessible label for the timeline session selection
|
|
59
|
+
* @description Accessible label for the timeline session selection dropdown in the Performance panel.
|
|
60
60
|
*/
|
|
61
61
|
selectTimelineSession: 'Select timeline session',
|
|
62
62
|
/**
|
|
63
|
-
* @description
|
|
63
|
+
* @description Label indicating a CPU slowdown multiplier applied to a recording in the timeline history dropdown.
|
|
64
64
|
* @example {2} PH1
|
|
65
65
|
*/
|
|
66
66
|
dSlowdown: '{PH1}× slowdown',
|
|
67
67
|
/**
|
|
68
|
-
* @description Tooltip
|
|
68
|
+
* @description Tooltip for the back button in the timeline session selection dropdown in the Performance panel.
|
|
69
69
|
*/
|
|
70
70
|
backButtonTooltip: 'View live metrics page',
|
|
71
71
|
} as const;
|
|
@@ -15,7 +15,7 @@ import type {Client} from './TimelineController.js';
|
|
|
15
15
|
|
|
16
16
|
const UIStrings = {
|
|
17
17
|
/**
|
|
18
|
-
* @description
|
|
18
|
+
* @description Error message displayed when timeline trace data cannot be parsed in the Performance panel.
|
|
19
19
|
* @example {Unknown JSON format} PH1
|
|
20
20
|
*/
|
|
21
21
|
malformedTimelineDataS: 'Malformed timeline data: {PH1}',
|
|
@@ -40,8 +40,13 @@ export interface OverviewData {
|
|
|
40
40
|
* update the visible trace window, and when this happens it will update the
|
|
41
41
|
* TraceBounds service with the new values.
|
|
42
42
|
*/
|
|
43
|
-
|
|
44
|
-
Common.ObjectWrapper.
|
|
43
|
+
const TimelineMiniMapBase:
|
|
44
|
+
Common.ObjectWrapper.EventMixin<PerfUI.TimelineOverviewPane.EventTypes, typeof UI.Widget.VBox> =
|
|
45
|
+
Common.ObjectWrapper.eventMixin(
|
|
46
|
+
UI.Widget.VBox,
|
|
47
|
+
);
|
|
48
|
+
|
|
49
|
+
export class TimelineMiniMap extends TimelineMiniMapBase {
|
|
45
50
|
#overviewComponent = new PerfUI.TimelineOverviewPane.TimelineOverviewPane('timeline');
|
|
46
51
|
#controls: TimelineEventOverview[] = [];
|
|
47
52
|
breadcrumbs: TimelineComponents.Breadcrumbs.Breadcrumbs|null = null;
|
|
@@ -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;
|
|
@@ -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.',
|