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
|
@@ -51,8 +51,6 @@ import * as Workspace from '../../models/workspace/workspace.js';
|
|
|
51
51
|
import * as TraceBounds from '../../services/trace_bounds/trace_bounds.js';
|
|
52
52
|
import * as Tracing from '../../services/tracing/tracing.js';
|
|
53
53
|
import * as CodeHighlighter from '../../ui/components/code_highlighter/code_highlighter.js';
|
|
54
|
-
// eslint-disable-next-line @devtools/es-modules-import
|
|
55
|
-
import codeHighlighterStyles from '../../ui/components/code_highlighter/codeHighlighter.css.js';
|
|
56
54
|
import * as uiI18n from '../../ui/i18n/i18n.js';
|
|
57
55
|
import * as PerfUI from '../../ui/legacy/components/perf_ui/perf_ui.js';
|
|
58
56
|
// eslint-disable-next-line @devtools/es-modules-import
|
|
@@ -76,401 +74,428 @@ import * as Utils from './utils/utils.js';
|
|
|
76
74
|
|
|
77
75
|
const UIStrings = {
|
|
78
76
|
/**
|
|
79
|
-
* @description
|
|
77
|
+
* @description Format string that only contains a single placeholder value.
|
|
80
78
|
* @example {100ms (at 200ms)} PH1
|
|
81
79
|
*/
|
|
82
80
|
emptyPlaceholder: '{PH1}', // eslint-disable-line @devtools/l10n-uistrings-text-style
|
|
83
81
|
/**
|
|
84
|
-
* @description
|
|
82
|
+
* @description Label for the timestamp field in the details view of the Performance panel.
|
|
85
83
|
*/
|
|
86
84
|
timestamp: 'Timestamp',
|
|
87
85
|
/**
|
|
88
|
-
* @description
|
|
86
|
+
* @description Label for an interaction event ID in the details view of the Performance panel.
|
|
89
87
|
*/
|
|
90
88
|
interactionID: 'ID',
|
|
91
89
|
/**
|
|
92
|
-
* @description
|
|
90
|
+
* @description Label for an interaction event input delay in the details view of the Performance panel.
|
|
93
91
|
*/
|
|
94
92
|
inputDelay: 'Input delay',
|
|
95
93
|
/**
|
|
96
|
-
* @description
|
|
94
|
+
* @description Label for an interaction event processing duration in the details view of the Performance panel.
|
|
97
95
|
*/
|
|
98
96
|
processingDuration: 'Processing duration',
|
|
99
97
|
/**
|
|
100
|
-
* @description
|
|
98
|
+
* @description Label for an interaction event presentation delay in the details view of the Performance panel.
|
|
101
99
|
*/
|
|
102
100
|
presentationDelay: 'Presentation delay',
|
|
103
101
|
/**
|
|
104
|
-
* @description
|
|
102
|
+
* @description Label for a script compilation event in the Performance panel.
|
|
105
103
|
*/
|
|
106
104
|
compile: 'Compile',
|
|
107
105
|
/**
|
|
108
|
-
* @description
|
|
106
|
+
* @description Label for a script parsing event in the Performance panel.
|
|
109
107
|
*/
|
|
110
108
|
parse: 'Parse',
|
|
111
109
|
/**
|
|
112
|
-
* @description
|
|
110
|
+
* @description Format for a label and value pair separated by a colon.
|
|
113
111
|
* @example {Node removed} PH1
|
|
114
112
|
* @example {div#id1} PH2
|
|
115
113
|
*/
|
|
116
114
|
sS: '{PH1}: {PH2}',
|
|
117
115
|
/**
|
|
118
|
-
* @description
|
|
116
|
+
* @description Link text to open documentation.
|
|
119
117
|
*/
|
|
120
118
|
learnMore: 'Learn more',
|
|
121
119
|
/**
|
|
122
|
-
* @description
|
|
120
|
+
* @description Label for the compilation cache status in the details view of the Performance panel.
|
|
123
121
|
*/
|
|
124
122
|
compilationCacheStatus: 'Compilation cache status',
|
|
125
123
|
/**
|
|
126
|
-
* @description
|
|
124
|
+
* @description Label for the compilation cache size in the details view of the Performance panel.
|
|
127
125
|
*/
|
|
128
126
|
compilationCacheSize: 'Compilation cache size',
|
|
129
127
|
/**
|
|
130
|
-
* @description
|
|
131
|
-
* cache" refers to the code cache described at
|
|
132
|
-
* https://v8.dev/blog/code-caching-for-devs . This label is followed by the
|
|
133
|
-
* type of code cache data used, either "normal" or "full" as described in the
|
|
134
|
-
* linked article.
|
|
128
|
+
* @description Label for the compilation cache kind in the details view of the Performance panel.
|
|
135
129
|
*/
|
|
136
130
|
compilationCacheKind: 'Compilation cache kind',
|
|
137
131
|
/**
|
|
138
|
-
* @description
|
|
139
|
-
* at was loaded from the browser's cache.
|
|
132
|
+
* @description Status text indicating that a script was loaded from compilation cache.
|
|
140
133
|
*/
|
|
141
134
|
scriptLoadedFromCache: 'script loaded from cache',
|
|
142
135
|
/**
|
|
143
|
-
* @description
|
|
144
|
-
* was unable to be loaded from the browser's cache.
|
|
136
|
+
* @description Status text indicating that a script failed to load from compilation cache.
|
|
145
137
|
*/
|
|
146
138
|
failedToLoadScriptFromCache: 'failed to load script from cache',
|
|
147
139
|
/**
|
|
148
|
-
* @description
|
|
140
|
+
* @description Status text indicating that a script wasn't eligible for compilation cache.
|
|
149
141
|
*/
|
|
150
142
|
scriptNotEligibleToBeLoadedFromCache: 'script not eligible',
|
|
151
143
|
/**
|
|
152
|
-
* @description Label in the summary view
|
|
144
|
+
* @description Label in the summary view for the amount of memory reclaimed by garbage collection in the Performance panel.
|
|
153
145
|
*/
|
|
154
146
|
collected: 'Collected',
|
|
155
147
|
/**
|
|
156
|
-
* @description
|
|
148
|
+
* @description Label for a function entry in the details view of the Performance panel.
|
|
157
149
|
*/
|
|
158
150
|
function: 'Function',
|
|
159
151
|
/**
|
|
160
|
-
* @description
|
|
152
|
+
* @description Label for a timer ID in the details view of the Performance panel.
|
|
161
153
|
*/
|
|
162
154
|
timerId: 'Timer ID',
|
|
163
155
|
/**
|
|
164
|
-
* @description
|
|
156
|
+
* @description Label for a timer timeout duration in the details view of the Performance panel.
|
|
165
157
|
*/
|
|
166
158
|
timeout: 'Timeout',
|
|
167
159
|
/**
|
|
168
|
-
* @description
|
|
160
|
+
* @description Label for an idle callback timeout in the details view of the Performance panel.
|
|
169
161
|
*/
|
|
170
162
|
requestIdleCallbackTimeout: 'Timeout',
|
|
171
163
|
/**
|
|
172
|
-
* @description
|
|
164
|
+
* @description Label indicating whether a timer is repeating in the details view of the Performance panel.
|
|
173
165
|
*/
|
|
174
166
|
repeats: 'Repeats',
|
|
175
167
|
/**
|
|
176
|
-
* @description
|
|
168
|
+
* @description Label for a callback function ID in the details view of the Performance panel.
|
|
177
169
|
*/
|
|
178
170
|
callbackId: 'Callback ID',
|
|
179
171
|
/**
|
|
180
|
-
* @description
|
|
172
|
+
* @description Label for a module file in the details view of the Performance panel.
|
|
181
173
|
*/
|
|
182
174
|
module: 'Module',
|
|
183
175
|
/**
|
|
184
|
-
* @description Label for a
|
|
176
|
+
* @description Label for a script file in the details view of the Performance panel.
|
|
185
177
|
*/
|
|
186
178
|
script: 'Script',
|
|
187
179
|
/**
|
|
188
|
-
* @description
|
|
180
|
+
* @description Label indicating whether script compilation was streamed in the details view of the Performance panel.
|
|
189
181
|
*/
|
|
190
182
|
streamed: 'Streamed',
|
|
191
183
|
/**
|
|
192
|
-
* @description
|
|
184
|
+
* @description Status text indicating eager compilation of all functions in the details view of the Performance panel.
|
|
193
185
|
*/
|
|
194
186
|
eagerCompile: 'Compiling all functions eagerly',
|
|
195
187
|
/**
|
|
196
|
-
* @description
|
|
188
|
+
* @description Label for a URL in the details view of the Performance panel.
|
|
197
189
|
*/
|
|
198
190
|
url: 'URL',
|
|
199
191
|
/**
|
|
200
|
-
* @description
|
|
192
|
+
* @description Label for the size of cache produced in the details view of the Performance panel.
|
|
201
193
|
*/
|
|
202
194
|
producedCacheSize: 'Produced cache size',
|
|
203
195
|
/**
|
|
204
|
-
* @description
|
|
196
|
+
* @description Label for the size of cache consumed in the details view of the Performance panel.
|
|
205
197
|
*/
|
|
206
198
|
consumedCacheSize: 'Consumed cache size',
|
|
207
199
|
/**
|
|
208
|
-
* @description
|
|
200
|
+
* @description Label for the layer root node in the details view of the Performance panel.
|
|
209
201
|
*/
|
|
210
202
|
layerRoot: 'Layer root',
|
|
211
203
|
/**
|
|
212
|
-
* @description
|
|
204
|
+
* @description Label for the owner element in the details view of the Performance panel.
|
|
213
205
|
*/
|
|
214
206
|
ownerElement: 'Owner element',
|
|
215
207
|
/**
|
|
216
|
-
* @description
|
|
208
|
+
* @description Label for the image URL in the details view of the Performance panel.
|
|
217
209
|
*/
|
|
218
210
|
imageUrl: 'Image URL',
|
|
219
211
|
/**
|
|
220
|
-
* @description
|
|
212
|
+
* @description Label for the stylesheet URL in the details view of the Performance panel.
|
|
221
213
|
*/
|
|
222
214
|
stylesheetUrl: 'Stylesheet URL',
|
|
223
215
|
/**
|
|
224
|
-
* @description
|
|
216
|
+
* @description Label for the count of elements affected in the details view of the Performance panel.
|
|
225
217
|
*/
|
|
226
218
|
elementsAffected: 'Elements affected',
|
|
227
219
|
/**
|
|
228
|
-
* @description
|
|
220
|
+
* @description Label for the count of nodes that need layout in the details view of the Performance panel.
|
|
229
221
|
*/
|
|
230
222
|
nodesThatNeedLayout: 'Nodes that need layout',
|
|
231
223
|
/**
|
|
232
|
-
* @description
|
|
224
|
+
* @description Subset range indicator showing the count of matching items out of total items.
|
|
233
225
|
* @example {2} PH1
|
|
234
226
|
* @example {10} PH2
|
|
235
227
|
*/
|
|
236
228
|
sOfS: '{PH1} of {PH2}',
|
|
237
229
|
/**
|
|
238
|
-
* @description
|
|
230
|
+
* @description Label for the layout root node in the details view of the Performance panel.
|
|
239
231
|
*/
|
|
240
232
|
layoutRoot: 'Layout root',
|
|
241
233
|
/**
|
|
242
|
-
* @description
|
|
234
|
+
* @description Label for a message attached to an event in the details view of the Performance panel.
|
|
243
235
|
*/
|
|
244
236
|
message: 'Message',
|
|
245
237
|
/**
|
|
246
|
-
* @description
|
|
238
|
+
* @description Label for a callback function in the details view of the Performance panel.
|
|
247
239
|
*/
|
|
248
240
|
callbackFunction: 'Callback function',
|
|
249
241
|
/**
|
|
250
|
-
* @description
|
|
242
|
+
* @description Label for a range of lines in the details view of the Performance panel.
|
|
251
243
|
*/
|
|
252
244
|
range: 'Range',
|
|
253
245
|
/**
|
|
254
|
-
* @description
|
|
246
|
+
* @description Label for the allotted time given to an event in the details view of the Performance panel.
|
|
255
247
|
*/
|
|
256
248
|
allottedTime: 'Allotted time',
|
|
257
249
|
/**
|
|
258
|
-
* @description
|
|
250
|
+
* @description Label indicating that an event was invoked by a timeout in the details view of the Performance panel.
|
|
259
251
|
*/
|
|
260
252
|
invokedByTimeout: 'Invoked by timeout',
|
|
261
253
|
/**
|
|
262
|
-
* @description
|
|
254
|
+
* @description Label for an event type in the details view of the Performance panel.
|
|
263
255
|
*/
|
|
264
256
|
type: 'Type',
|
|
265
257
|
/**
|
|
266
|
-
* @description
|
|
258
|
+
* @description Label for size in the details view of the Performance panel.
|
|
267
259
|
*/
|
|
268
260
|
size: 'Size',
|
|
269
261
|
/**
|
|
270
|
-
* @description
|
|
262
|
+
* @description Label for event details in the details view of the Performance panel.
|
|
271
263
|
*/
|
|
272
264
|
details: 'Details',
|
|
273
265
|
/**
|
|
274
|
-
* @description
|
|
266
|
+
* @description Label for a warning in the details view of the Performance panel.
|
|
275
267
|
*/
|
|
276
268
|
warning: 'Warning',
|
|
277
269
|
/**
|
|
278
|
-
* @description
|
|
270
|
+
* @description Label for a related node in the details view of the Performance panel.
|
|
279
271
|
*/
|
|
280
272
|
relatedNode: 'Related node',
|
|
281
273
|
/**
|
|
282
|
-
* @description
|
|
274
|
+
* @description Label for previewing content in the details view of the Performance panel.
|
|
283
275
|
*/
|
|
284
276
|
preview: 'Preview',
|
|
285
277
|
/**
|
|
286
|
-
* @description
|
|
278
|
+
* @description Label for aggregated time summed across multiple events in the Performance panel.
|
|
287
279
|
*/
|
|
288
280
|
aggregatedTime: 'Aggregated time',
|
|
289
281
|
/**
|
|
290
|
-
* @description
|
|
282
|
+
* @description Label for event duration in the details view of the Performance panel.
|
|
291
283
|
*/
|
|
292
284
|
duration: 'Duration',
|
|
293
285
|
/**
|
|
294
|
-
* @description
|
|
286
|
+
* @description Label for the stack trace of an initiator in the details view of the Performance panel.
|
|
295
287
|
*/
|
|
296
288
|
initiatorStackTrace: 'Initiator stack trace',
|
|
297
289
|
/**
|
|
298
|
-
* @description
|
|
290
|
+
* @description Label for the initiator event in the details view of the Performance panel.
|
|
299
291
|
*/
|
|
300
292
|
initiatedBy: 'Initiated by',
|
|
301
293
|
/**
|
|
302
|
-
* @description
|
|
294
|
+
* @description Label for the event initiated by this one in the details view of the Performance panel.
|
|
303
295
|
*/
|
|
304
296
|
initiatorFor: 'Initiator for',
|
|
305
297
|
/**
|
|
306
|
-
* @description
|
|
298
|
+
* @description Label for raw trace event data in the details view of the Performance panel.
|
|
307
299
|
*/
|
|
308
300
|
traceEvent: 'Trace event',
|
|
309
301
|
/**
|
|
310
|
-
* @description Call site stack label
|
|
302
|
+
* @description Call site stack label for timer installation in the Performance panel.
|
|
311
303
|
*/
|
|
312
304
|
timerInstalled: 'Timer installed',
|
|
313
305
|
/**
|
|
314
|
-
* @description Call site stack label
|
|
306
|
+
* @description Call site stack label for requested animation frames in the Performance panel.
|
|
315
307
|
*/
|
|
316
308
|
animationFrameRequested: 'Animation frame requested',
|
|
317
309
|
/**
|
|
318
|
-
* @description Call site stack label
|
|
310
|
+
* @description Call site stack label for requested idle callbacks in the Performance panel.
|
|
319
311
|
*/
|
|
320
312
|
idleCallbackRequested: 'Idle callback requested',
|
|
321
313
|
/**
|
|
322
|
-
* @description Call site stack label
|
|
314
|
+
* @description Call site stack label for first layout invalidation in the Performance panel.
|
|
323
315
|
*/
|
|
324
316
|
firstLayoutInvalidation: 'First layout invalidation',
|
|
325
317
|
/**
|
|
326
|
-
* @description Label
|
|
318
|
+
* @description Label for an animated CSS property or animation name in the Performance panel.
|
|
327
319
|
*/
|
|
328
320
|
animating: 'Animating',
|
|
329
321
|
/**
|
|
330
|
-
* @description
|
|
322
|
+
* @description Header for the list of reasons why animation compositing failed in the Performance panel.
|
|
331
323
|
*/
|
|
332
324
|
compositingFailed: 'Compositing failed',
|
|
333
|
-
/**
|
|
325
|
+
/**
|
|
326
|
+
* @description Reason why an animation wasn't composited due to accelerated animations being disabled.
|
|
327
|
+
*/
|
|
334
328
|
compositingFailedAcceleratedAnimationsDisabled: 'Accelerated animations disabled',
|
|
335
|
-
/**
|
|
336
|
-
|
|
337
|
-
|
|
329
|
+
/**
|
|
330
|
+
* @description Reason why an animation wasn't composited due to DevTools suppressing the effect.
|
|
331
|
+
*/
|
|
332
|
+
compositingFailedEffectSuppressedByDevtools: 'Effect suppressed by DevTools',
|
|
333
|
+
/**
|
|
334
|
+
* @description Reason why an animation wasn't composited due to an invalid animation or effect.
|
|
335
|
+
*/
|
|
338
336
|
compositingFailedInvalidAnimationOrEffect: 'Invalid animation or effect',
|
|
339
|
-
/**
|
|
337
|
+
/**
|
|
338
|
+
* @description Reason why an animation wasn't composited due to unsupported timing parameters.
|
|
339
|
+
*/
|
|
340
340
|
compositingFailedEffectHasUnsupportedTimingParams: 'Effect has unsupported timing parameters',
|
|
341
|
-
/**
|
|
341
|
+
/**
|
|
342
|
+
* @description Reason why an animation wasn't composited due to having a non-replace composite mode.
|
|
343
|
+
*/
|
|
342
344
|
compositingFailedEffectHasNonReplaceCompositeMode: 'Effect has composite mode other than "replace"',
|
|
343
|
-
/**
|
|
345
|
+
/**
|
|
346
|
+
* @description Reason why an animation wasn't composited due to the target having an invalid compositing state.
|
|
347
|
+
*/
|
|
344
348
|
compositingFailedTargetHasInvalidCompositingState: 'Target has invalid compositing state',
|
|
345
|
-
/**
|
|
349
|
+
/**
|
|
350
|
+
* @description Reason why an animation wasn't composited due to an incompatible animation on the same target.
|
|
351
|
+
*/
|
|
346
352
|
compositingFailedTargetHasIncompatibleAnimations: 'Target has another animation which is incompatible',
|
|
347
|
-
/**
|
|
353
|
+
/**
|
|
354
|
+
* @description Reason why an animation wasn't composited due to the target having a CSS offset.
|
|
355
|
+
*/
|
|
348
356
|
compositingFailedTargetHasCSSOffset: 'Target has CSS offset',
|
|
349
|
-
/**
|
|
357
|
+
/**
|
|
358
|
+
* @description Reason why an animation wasn't composited due to the animation affecting non-CSS properties.
|
|
359
|
+
*/
|
|
350
360
|
compositingFailedAnimationAffectsNonCSSProperties: 'Animation affects non-CSS properties',
|
|
351
|
-
/**
|
|
361
|
+
/**
|
|
362
|
+
* @description Reason why an animation wasn't composited because a transform-related property cannot be accelerated on the target.
|
|
363
|
+
*/
|
|
352
364
|
compositingFailedTransformRelatedPropertyCannotBeAcceleratedOnTarget:
|
|
353
365
|
'Transform-related property cannot be accelerated on target',
|
|
354
|
-
/**
|
|
366
|
+
/**
|
|
367
|
+
* @description Reason why an animation wasn't composited because a transform-related property depends on box size.
|
|
368
|
+
*/
|
|
355
369
|
compositingFailedTransformDependsBoxSize: 'Transform-related property depends on box size',
|
|
356
|
-
/**
|
|
370
|
+
/**
|
|
371
|
+
* @description Reason why an animation wasn't composited because a filter-related property may move pixels.
|
|
372
|
+
*/
|
|
357
373
|
compositingFailedFilterRelatedPropertyMayMovePixels: 'Filter-related property may move pixels',
|
|
358
374
|
/**
|
|
359
|
-
* @description
|
|
375
|
+
* @description Reason why an animation wasn't composited due to unsupported CSS properties.
|
|
360
376
|
* @example {height, width} properties
|
|
361
377
|
*/
|
|
362
378
|
compositingFailedUnsupportedCSSProperty: `{propertyCount, plural,
|
|
363
379
|
=1 {Unsupported CSS property: {properties}}
|
|
364
380
|
other {Unsupported CSS properties: {properties}}
|
|
365
381
|
}`,
|
|
366
|
-
/**
|
|
382
|
+
/**
|
|
383
|
+
* @description Reason why an animation wasn't composited due to mixed keyframe value types.
|
|
384
|
+
*/
|
|
367
385
|
compositingFailedMixedKeyframeValueTypes: 'Mixed keyframe value types',
|
|
368
|
-
/**
|
|
386
|
+
/**
|
|
387
|
+
* @description Reason why an animation wasn't composited because the timeline source has an invalid compositing state.
|
|
388
|
+
*/
|
|
369
389
|
compositingFailedTimelineSourceHasInvalidCompositingState: 'Timeline source has invalid compositing state',
|
|
370
|
-
/**
|
|
390
|
+
/**
|
|
391
|
+
* @description Reason why an animation wasn't composited because the animation has no visible change.
|
|
392
|
+
*/
|
|
371
393
|
compositingFailedAnimationHasNoVisibleChange: 'Animation has no visible change',
|
|
372
|
-
/**
|
|
394
|
+
/**
|
|
395
|
+
* @description Reason why an animation wasn't composited because the effect affects a property with !important.
|
|
396
|
+
*/
|
|
373
397
|
compositingFailedAffectsImportantProperty: 'Effect affects a property with !important',
|
|
374
|
-
/**
|
|
398
|
+
/**
|
|
399
|
+
* @description Reason why an animation wasn't composited because the SVG target has an independent transform property.
|
|
400
|
+
*/
|
|
375
401
|
compositingFailedSVGTargetHasIndependentTransformProperty: 'SVG target has independent transform property',
|
|
376
|
-
/**
|
|
377
|
-
|
|
402
|
+
/**
|
|
403
|
+
* @description Reason why an animation wasn't composited due to an unknown reason.
|
|
404
|
+
*/
|
|
405
|
+
compositingFailedUnknownReason: 'Unknown reason',
|
|
378
406
|
|
|
379
407
|
/**
|
|
380
|
-
* @description
|
|
381
|
-
* and not to each call site, so we call it a function stack instead to avoid confusion.
|
|
408
|
+
* @description Label for the execution function stack in the details view of the Performance panel.
|
|
382
409
|
*/
|
|
383
410
|
functionStack: 'Function stack',
|
|
384
411
|
/**
|
|
385
|
-
* @description
|
|
412
|
+
* @description Label showing the total number of invalidations for an event in the Performance panel.
|
|
386
413
|
* @example {2} PH1
|
|
387
414
|
*/
|
|
388
415
|
invalidations: 'Invalidations ({PH1} total)',
|
|
389
416
|
/**
|
|
390
|
-
* @description
|
|
391
|
-
* Some events or tasks might have been only started, but have not ended yet. Such events or tasks are considered
|
|
392
|
-
* "pending".
|
|
417
|
+
* @description Label for the pending duration of a task in the Performance panel.
|
|
393
418
|
*/
|
|
394
419
|
pendingFor: 'Pending for',
|
|
395
420
|
/**
|
|
396
|
-
* @description
|
|
421
|
+
* @description Label for a stack trace indicating when a condition was first invalidated in the Performance panel.
|
|
397
422
|
*/
|
|
398
423
|
firstInvalidated: 'First invalidated',
|
|
399
424
|
/**
|
|
400
|
-
* @description Title
|
|
425
|
+
* @description Title for the paint profiler tab in the details view of the Performance panel.
|
|
401
426
|
*/
|
|
402
427
|
paintProfiler: 'Paint profiler',
|
|
403
428
|
/**
|
|
404
|
-
* @description
|
|
429
|
+
* @description Accessible title for a frame at a given timestamp in the timeline flame chart.
|
|
405
430
|
* @example {Frame} PH1
|
|
406
431
|
* @example {10ms} PH2
|
|
407
432
|
*/
|
|
408
433
|
sAtS: '{PH1} at {PH2}',
|
|
409
434
|
/**
|
|
410
|
-
* @description Text
|
|
435
|
+
* @description Text indicating the self time spent in an event in the Performance panel.
|
|
411
436
|
* @example {blink.console} PH1
|
|
412
437
|
*/
|
|
413
438
|
sSelf: '{PH1} (self)',
|
|
414
439
|
/**
|
|
415
|
-
* @description Text
|
|
440
|
+
* @description Text indicating the time spent in an event's child nodes in the Performance panel.
|
|
416
441
|
* @example {blink.console} PH1
|
|
417
442
|
*/
|
|
418
443
|
sChildren: '{PH1} (children)',
|
|
419
444
|
/**
|
|
420
|
-
* @description
|
|
445
|
+
* @description Label for the total time spent rendering in the details view of the Performance panel.
|
|
421
446
|
*/
|
|
422
447
|
timeSpentInRendering: 'Time spent in rendering',
|
|
423
448
|
/**
|
|
424
|
-
* @description
|
|
449
|
+
* @description Label for a rendering frame in the details view of the Performance panel.
|
|
425
450
|
*/
|
|
426
451
|
frame: 'Frame',
|
|
427
452
|
/**
|
|
428
|
-
* @description Text
|
|
453
|
+
* @description Text showing duration and start offset of an event in the details view of the Performance panel.
|
|
429
454
|
* @example {10ms} PH1
|
|
430
455
|
* @example {10ms} PH2
|
|
431
456
|
*/
|
|
432
457
|
sAtSParentheses: '{PH1} (at {PH2})',
|
|
433
458
|
/**
|
|
434
|
-
* @description
|
|
459
|
+
* @description Placeholder text for an unknown DOM node in the details view of the Performance panel.
|
|
435
460
|
*/
|
|
436
461
|
UnknownNode: '[ unknown node ]',
|
|
437
462
|
/**
|
|
438
|
-
* @description Text
|
|
463
|
+
* @description Text showing an invalidated element and its source call frame in the Performance panel.
|
|
439
464
|
* @example {node} PH1
|
|
440
465
|
* @example {app.js} PH2
|
|
441
466
|
*/
|
|
442
467
|
invalidationWithCallFrame: '{PH1} at {PH2}',
|
|
443
468
|
/**
|
|
444
|
-
* @description
|
|
469
|
+
* @description Status text indicating that an item is outside the breadcrumb range in the Performance panel.
|
|
445
470
|
*/
|
|
446
471
|
outsideBreadcrumbRange: '(outside of the breadcrumb range)',
|
|
447
472
|
/**
|
|
448
|
-
* @description
|
|
473
|
+
* @description Status text indicating that an entry is hidden in the timeline flame chart.
|
|
449
474
|
*/
|
|
450
475
|
entryIsHidden: '(entry is hidden)',
|
|
451
476
|
/**
|
|
452
|
-
* @description
|
|
477
|
+
* @description Section title for CSS selector statistics in the details view of the Performance panel.
|
|
453
478
|
*/
|
|
454
479
|
selectorStatsTitle: 'Selector stats',
|
|
455
480
|
/**
|
|
456
|
-
* @description
|
|
481
|
+
* @description Explanatory text instructing the user how to enable CSS selector statistics in the Performance panel.
|
|
457
482
|
* @example {Setting Name} PH1
|
|
458
483
|
*/
|
|
459
|
-
sSelectorStatsInfo: 'Select "{PH1}" to collect detailed CSS selector matching statistics
|
|
484
|
+
sSelectorStatsInfo: 'Select "{PH1}" to collect detailed CSS selector matching statistics',
|
|
460
485
|
/**
|
|
461
|
-
* @description Label for
|
|
486
|
+
* @description Label for task scheduling delay in the details view of the Performance panel.
|
|
462
487
|
*/
|
|
463
488
|
delay: 'Delay',
|
|
464
489
|
/**
|
|
465
|
-
* @description Label for
|
|
490
|
+
* @description Label for task scheduling priority in the details view of the Performance panel.
|
|
466
491
|
*/
|
|
467
492
|
priority: 'Priority',
|
|
468
493
|
/**
|
|
469
|
-
* @description Label for the
|
|
494
|
+
* @description Label for the source file in the details view of the Performance panel.
|
|
470
495
|
*/
|
|
471
496
|
source: 'Source',
|
|
472
497
|
/**
|
|
473
|
-
* @description Label for a URL origin.
|
|
498
|
+
* @description Label for a URL origin in the details view of the Performance panel.
|
|
474
499
|
*/
|
|
475
500
|
origin: 'Origin',
|
|
476
501
|
} as const;
|
|
@@ -1581,7 +1606,8 @@ export class TimelineUIUtils {
|
|
|
1581
1606
|
|
|
1582
1607
|
// Use CodeHighlighter for syntax highlighting.
|
|
1583
1608
|
const highlightContainer = document.createElement('div');
|
|
1584
|
-
const shadowRoot =
|
|
1609
|
+
const shadowRoot =
|
|
1610
|
+
UI.UIUtils.createShadowRootWithCoreStyles(highlightContainer, {cssFile: CodeHighlighter.codeHighlighterStyles});
|
|
1585
1611
|
const elem = shadowRoot.createChild('div');
|
|
1586
1612
|
elem.classList.add('monospace', 'source-code');
|
|
1587
1613
|
elem.textContent = eventStr;
|
|
@@ -21,7 +21,7 @@ import type {TimelineMarkerStyle} from './TimelineUIUtils.js';
|
|
|
21
21
|
|
|
22
22
|
const UIStrings = {
|
|
23
23
|
/**
|
|
24
|
-
* @description
|
|
24
|
+
* @description Header for the timings track in the timeline flame chart of the Performance panel.
|
|
25
25
|
*/
|
|
26
26
|
timings: 'Timings',
|
|
27
27
|
} as const;
|
|
@@ -9,16 +9,16 @@ import * as UI from '../../ui/legacy/legacy.js';
|
|
|
9
9
|
|
|
10
10
|
const UIStrings = {
|
|
11
11
|
/**
|
|
12
|
-
* @description Message shown in a banner when some tracks are hidden in the
|
|
12
|
+
* @description Message shown in a banner when some tracks are hidden in the Performance panel.
|
|
13
13
|
*/
|
|
14
14
|
someTracksAreHidden:
|
|
15
|
-
'Some tracks are hidden in this trace. You can configure tracks by right
|
|
15
|
+
'Some tracks are hidden in this trace. You can configure tracks by right-clicking the track name.',
|
|
16
16
|
/**
|
|
17
|
-
* @description
|
|
17
|
+
* @description Button label to show all hidden tracks in the Performance panel.
|
|
18
18
|
*/
|
|
19
19
|
showAll: 'Show all',
|
|
20
20
|
/**
|
|
21
|
-
* @description
|
|
21
|
+
* @description Button label to open the track configuration view in the Performance panel.
|
|
22
22
|
*/
|
|
23
23
|
configureTracks: 'Configure tracks',
|
|
24
24
|
} as const;
|