chrome-devtools-frontend 1.0.1672557 → 1.0.1675430
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/.agents/skills/devtools-ux-writing-refactor/SKILL.md +26 -9
- package/front_end/core/common/ParsedURL.ts +5 -1
- package/front_end/core/common/SettingRegistration.ts +30 -34
- package/front_end/core/common/Settings.ts +4 -64
- package/front_end/core/host/UserMetrics.ts +127 -117
- package/front_end/core/protocol_client/PuppeteerDevToolsConnection.ts +42 -9
- package/front_end/core/root/Runtime.ts +14 -0
- package/front_end/core/sdk/NetworkManager.ts +0 -35
- package/front_end/core/sdk/SourceMap.ts +1 -19
- package/front_end/core/sdk/SourceMapManager.ts +75 -48
- package/front_end/core/sdk/SourceMapScopesInfo.ts +0 -62
- package/front_end/core/sdk/TargetManager.ts +18 -0
- package/front_end/devtools_compatibility.js +1 -1
- package/front_end/entrypoints/main/MainImpl.ts +1 -0
- package/front_end/foundation/Universe.ts +44 -29
- package/front_end/generated/InspectorBackendCommands.ts +4 -3
- package/front_end/generated/SupportedCSSProperties.ts +16 -1
- package/front_end/generated/protocol-mapping.d.ts +8 -0
- package/front_end/generated/protocol-proxy-api.d.ts +6 -0
- package/front_end/generated/protocol.ts +16 -2
- package/front_end/models/ai_assistance/AiSetting.ts +66 -3
- package/front_end/models/ai_assistance/agents/PerformanceAgent.ts +15 -5
- package/front_end/models/bindings/CompilerScriptMapping.ts +1 -1
- package/front_end/models/emulation/DeviceModeModel.ts +82 -102
- package/front_end/models/emulation/EmulatedDevices.ts +18 -66
- package/front_end/models/javascript_metadata/NativeFunctions.js +4 -4
- package/front_end/models/persistence/AutomaticFileSystemManager.ts +2 -2
- package/front_end/models/persistence/IsolatedFileSystemManager.ts +20 -29
- package/front_end/models/trace/ModelImpl.ts +5 -0
- package/front_end/models/trace/Processor.ts +5 -0
- package/front_end/models/trace/handlers/LayoutShiftsHandler.ts +7 -1
- package/front_end/models/trace/handlers/MetaHandler.ts +8 -4
- package/front_end/models/trace/handlers/PageLoadMetricsHandler.ts +11 -0
- package/front_end/models/workspace/FileManager.ts +13 -6
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +11 -10
- package/front_end/panels/ai_assistance/ai_assistance-meta.ts +3 -45
- package/front_end/panels/application/BackgroundServiceView.ts +42 -40
- package/front_end/panels/application/KeyValueStorageItemsView.ts +1 -0
- package/front_end/panels/application/WebMCPView.ts +13 -5
- package/front_end/panels/application/components/AdsView.ts +24 -1
- package/front_end/panels/application/components/adsView.css +27 -21
- package/front_end/panels/autofill/AutofillView.ts +12 -12
- package/front_end/panels/autofill/autofill-meta.ts +2 -2
- package/front_end/panels/common/ExtensionServer.ts +7 -1
- package/front_end/panels/common/common.ts +0 -1
- package/front_end/panels/console/ConsoleInsightTeaser.ts +7 -6
- package/front_end/panels/console/ConsoleViewMessage.ts +1 -1
- package/front_end/panels/elements/ClassesPaneWidget.ts +2 -2
- package/front_end/panels/elements/ElementsTreeElement.ts +602 -327
- package/front_end/panels/elements/ElementsTreeOutline.ts +1 -1
- package/front_end/panels/elements/StylesSidebarPane.ts +1 -1
- package/front_end/panels/elements/components/AdornerManager.ts +1 -0
- package/front_end/panels/emulation/AdvancedApp.ts +3 -3
- package/front_end/panels/emulation/DeviceModeToolbar.ts +2 -11
- package/front_end/panels/emulation/DeviceModeView.ts +234 -75
- package/front_end/panels/emulation/InspectedPagePlaceholder.ts +1 -1
- package/front_end/panels/emulation/deviceModeView.css +4 -21
- package/front_end/panels/emulation/emulation-meta.ts +4 -30
- package/front_end/panels/emulation/emulation.ts +0 -3
- package/front_end/panels/explain/components/ConsoleInsight.ts +11 -7
- package/front_end/panels/js_timeline/js_timeline-meta.ts +8 -8
- package/front_end/panels/layer_viewer/LayerDetailsView.ts +30 -30
- package/front_end/panels/layer_viewer/LayerTreeOutline.ts +6 -6
- package/front_end/panels/layer_viewer/LayerViewHost.ts +1 -1
- package/front_end/panels/layer_viewer/Layers3DView.ts +11 -11
- package/front_end/panels/layer_viewer/PaintProfilerView.ts +8 -8
- package/front_end/panels/layer_viewer/TransformController.ts +3 -3
- package/front_end/panels/layer_viewer/layer_viewer-meta.ts +11 -11
- package/front_end/panels/layers/LayersPanel.ts +2 -2
- package/front_end/panels/layers/layers-meta.ts +2 -2
- package/front_end/panels/lighthouse/LighthouseController.ts +3 -7
- package/front_end/panels/mobile_throttling/CPUThrottlingSelector.ts +313 -0
- package/front_end/panels/mobile_throttling/NetworkPanelIndicator.ts +0 -10
- package/front_end/panels/mobile_throttling/NetworkThrottlingSelector.ts +21 -10
- package/front_end/panels/mobile_throttling/ThrottlingManager.ts +1 -58
- package/front_end/panels/mobile_throttling/mobile_throttling.ts +2 -9
- package/front_end/panels/network/NetworkConfigView.ts +1 -71
- package/front_end/panels/network/networkConfigView.css +1 -2
- package/front_end/panels/profiler/HeapDetachedElementsDataGrid.ts +3 -3
- package/front_end/panels/profiler/HeapDetachedElementsView.ts +5 -5
- package/front_end/panels/profiler/HeapProfileView.ts +32 -32
- package/front_end/panels/profiler/HeapProfilerPanel.ts +2 -2
- package/front_end/panels/profiler/HeapSnapshotDataGrids.ts +33 -37
- package/front_end/panels/profiler/HeapSnapshotGridNodes.ts +26 -27
- package/front_end/panels/profiler/HeapSnapshotView.ts +48 -48
- package/front_end/panels/profiler/IsolateSelector.ts +10 -10
- package/front_end/panels/profiler/ModuleUIStrings.ts +25 -25
- package/front_end/panels/profiler/ProfileLauncherView.ts +6 -6
- package/front_end/panels/profiler/ProfilesPanel.ts +6 -6
- package/front_end/panels/profiler/WritableProfileHeader.ts +6 -6
- package/front_end/panels/profiler/profiler-meta.ts +7 -7
- package/front_end/panels/protocol_monitor/ProtocolMonitor.ts +7 -0
- package/front_end/panels/recorder/RecorderPanel.ts +1 -1
- package/front_end/panels/settings/AISettingsTab.ts +27 -23
- package/front_end/panels/settings/emulation/DevicesSettingsTab.ts +1 -2
- package/front_end/panels/timeline/TimelineFlameChartNetworkDataProvider.ts +12 -17
- package/front_end/panels/timeline/TimelinePanel.ts +20 -35
- package/front_end/panels/timeline/components/LiveMetricsView.ts +27 -6
- package/front_end/panels/timeline/components/NetworkTrackWidget.ts +1 -1
- package/front_end/panels/timeline/components/components.ts +0 -4
- package/front_end/panels/timeline/components/liveMetricsView.css +7 -0
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/third_party/source-map-scopes-codec/package/CONTRIBUTING.md +0 -0
- package/front_end/third_party/source-map-scopes-codec/package/LICENSE +0 -0
- package/front_end/third_party/source-map-scopes-codec/package/README.md +0 -0
- package/front_end/third_party/source-map-scopes-codec/package/_dist/src/builder/builder.d.ts +0 -0
- package/front_end/third_party/source-map-scopes-codec/package/_dist/src/builder/builder.d.ts.map +1 -1
- package/front_end/third_party/source-map-scopes-codec/package/_dist/src/builder/safe_builder.d.ts +0 -0
- package/front_end/third_party/source-map-scopes-codec/package/_dist/src/builder/safe_builder.d.ts.map +0 -0
- package/front_end/third_party/source-map-scopes-codec/package/_dist/src/decode/decode.d.ts +0 -0
- package/front_end/third_party/source-map-scopes-codec/package/_dist/src/decode/decode.d.ts.map +0 -0
- package/front_end/third_party/source-map-scopes-codec/package/_dist/src/encode/encode.d.ts +0 -0
- package/front_end/third_party/source-map-scopes-codec/package/_dist/src/encode/encode.d.ts.map +0 -0
- package/front_end/third_party/source-map-scopes-codec/package/_dist/src/mod.d.ts +0 -0
- package/front_end/third_party/source-map-scopes-codec/package/_dist/src/mod.d.ts.map +0 -0
- package/front_end/third_party/source-map-scopes-codec/package/_dist/src/scopes.d.ts +0 -0
- package/front_end/third_party/source-map-scopes-codec/package/_dist/src/scopes.d.ts.map +0 -0
- package/front_end/third_party/source-map-scopes-codec/package/deno.json +1 -1
- package/front_end/third_party/source-map-scopes-codec/package/package.json +1 -1
- package/front_end/third_party/source-map-scopes-codec/package/src/builder/builder.js +2 -0
- package/front_end/third_party/source-map-scopes-codec/package/src/builder/builder.js.map +1 -1
- package/front_end/third_party/source-map-scopes-codec/package/src/builder/builder.ts +2 -0
- package/front_end/third_party/source-map-scopes-codec/package/src/builder/safe_builder.js +0 -0
- package/front_end/third_party/source-map-scopes-codec/package/src/builder/safe_builder.js.map +0 -0
- package/front_end/third_party/source-map-scopes-codec/package/src/builder/safe_builder.ts +0 -0
- package/front_end/third_party/source-map-scopes-codec/package/src/codec.js +0 -0
- package/front_end/third_party/source-map-scopes-codec/package/src/codec.js.map +0 -0
- package/front_end/third_party/source-map-scopes-codec/package/src/codec.ts +0 -0
- package/front_end/third_party/source-map-scopes-codec/package/src/decode/decode.js +0 -0
- package/front_end/third_party/source-map-scopes-codec/package/src/decode/decode.js.map +0 -0
- package/front_end/third_party/source-map-scopes-codec/package/src/decode/decode.ts +0 -0
- package/front_end/third_party/source-map-scopes-codec/package/src/encode/encode.js +0 -0
- package/front_end/third_party/source-map-scopes-codec/package/src/encode/encode.js.map +0 -0
- package/front_end/third_party/source-map-scopes-codec/package/src/encode/encode.ts +0 -0
- package/front_end/third_party/source-map-scopes-codec/package/src/encode/encoder.js +0 -0
- package/front_end/third_party/source-map-scopes-codec/package/src/encode/encoder.js.map +0 -0
- package/front_end/third_party/source-map-scopes-codec/package/src/encode/encoder.ts +0 -0
- package/front_end/third_party/source-map-scopes-codec/package/src/mod.js +0 -0
- package/front_end/third_party/source-map-scopes-codec/package/src/mod.js.map +0 -0
- package/front_end/third_party/source-map-scopes-codec/package/src/mod.ts +0 -0
- package/front_end/third_party/source-map-scopes-codec/package/src/scopes.js +0 -0
- package/front_end/third_party/source-map-scopes-codec/package/src/scopes.js.map +0 -0
- package/front_end/third_party/source-map-scopes-codec/package/src/scopes.ts +0 -0
- package/front_end/third_party/source-map-scopes-codec/package/src/util.js +0 -0
- package/front_end/third_party/source-map-scopes-codec/package/src/util.js.map +0 -0
- package/front_end/third_party/source-map-scopes-codec/package/src/util.ts +0 -0
- package/front_end/third_party/source-map-scopes-codec/package/src/vlq.js +0 -0
- package/front_end/third_party/source-map-scopes-codec/package/src/vlq.js.map +0 -0
- package/front_end/third_party/source-map-scopes-codec/package/src/vlq.ts +0 -0
- package/front_end/ui/comments/CommentAnchorResolver.ts +132 -0
- package/front_end/ui/comments/comments.ts +9 -0
- package/front_end/ui/components/dialogs/ShortcutDialog.ts +2 -0
- package/front_end/ui/components/settings/SettingCheckbox.ts +4 -12
- package/front_end/ui/components/settings/settingCheckbox.css +0 -7
- package/front_end/ui/legacy/Treeoutline.ts +14 -14
- package/front_end/ui/legacy/UIUtils.ts +2 -47
- package/front_end/ui/legacy/Widget.ts +10 -2
- package/front_end/ui/legacy/components/data_grid/DataGridElement.ts +40 -0
- package/front_end/ui/legacy/components/settings_ui/SettingsUI.ts +1 -1
- package/front_end/ui/legacy/components/utils/Linkifier.ts +1 -0
- package/front_end/ui/lit/Directives.ts +80 -0
- package/front_end/ui/lit/lit.ts +1 -0
- package/front_end/ui/lit/render.ts +8 -0
- package/front_end/ui/settings/SettingUIRegistration.ts +4 -0
- package/front_end/ui/visual_logging/Debugging.ts +1 -5
- package/front_end/ui/visual_logging/KnownContextValues.ts +3 -0
- package/front_end/ui/visual_logging/LoggingConfig.ts +21 -0
- package/front_end/ui/visual_logging/visual_logging.ts +9 -0
- package/mcp/mcp.ts +1 -0
- package/package.json +1 -1
- package/front_end/panels/common/ThrottlingUtils.ts +0 -51
- package/front_end/panels/emulation/DeviceModeWrapper.ts +0 -248
- package/front_end/panels/mobile_throttling/MobileThrottlingSelector.ts +0 -92
- package/front_end/panels/timeline/components/CPUThrottlingSelector.ts +0 -235
- package/front_end/panels/timeline/components/NetworkThrottlingSelector.ts +0 -245
- package/front_end/panels/timeline/components/cpuThrottlingSelector.css +0 -30
- package/front_end/panels/timeline/components/networkThrottlingSelector.css +0 -24
|
@@ -35,40 +35,40 @@ const {widget, widgetRef} = UI.Widget;
|
|
|
35
35
|
|
|
36
36
|
const UIStrings = {
|
|
37
37
|
/**
|
|
38
|
-
* @description The reported total size used in the selected time frame of the allocation sampling profile
|
|
38
|
+
* @description The reported total size used in the selected time frame of the allocation sampling profile.
|
|
39
39
|
* @example {3 MB} PH1
|
|
40
40
|
*/
|
|
41
41
|
selectedSizeS: 'Selected size: {PH1}',
|
|
42
42
|
/**
|
|
43
|
-
* @description
|
|
43
|
+
* @description Column header that reports the size (in bytes) used for a particular part of the heap, excluding the size of child nodes.
|
|
44
44
|
*/
|
|
45
45
|
selfSizeBytes: 'Self size',
|
|
46
46
|
/**
|
|
47
|
-
* @description
|
|
47
|
+
* @description Column header that reports the total size (in bytes) used for a particular part of the heap.
|
|
48
48
|
*/
|
|
49
49
|
totalSizeBytes: 'Total size',
|
|
50
50
|
/**
|
|
51
|
-
* @description Button text to stop profiling the heap
|
|
51
|
+
* @description Button text to stop profiling the heap.
|
|
52
52
|
*/
|
|
53
53
|
stopHeapProfiling: 'Stop heap profiling',
|
|
54
54
|
/**
|
|
55
|
-
* @description Button text to start profiling the heap
|
|
55
|
+
* @description Button text to start profiling the heap.
|
|
56
56
|
*/
|
|
57
57
|
startHeapProfiling: 'Start heap profiling',
|
|
58
58
|
/**
|
|
59
|
-
* @description Progress update that the profiler is recording the contents of the heap
|
|
59
|
+
* @description Progress update that the profiler is recording the contents of the heap.
|
|
60
60
|
*/
|
|
61
61
|
recording: 'Recording…',
|
|
62
62
|
/**
|
|
63
|
-
* @description
|
|
63
|
+
* @description Tooltip and status text for the recording icon when the heap profiler is actively recording.
|
|
64
64
|
*/
|
|
65
65
|
heapProfilerIsRecording: 'Heap profiler is recording',
|
|
66
66
|
/**
|
|
67
|
-
* @description Progress update that the profiler is in the process of stopping its recording of the heap
|
|
67
|
+
* @description Progress update that the profiler is in the process of stopping its recording of the heap.
|
|
68
68
|
*/
|
|
69
69
|
stopping: 'Stopping…',
|
|
70
70
|
/**
|
|
71
|
-
* @description Sampling category to only profile allocations happening on the heap
|
|
71
|
+
* @description Sampling category to only profile allocations happening on the heap.
|
|
72
72
|
*/
|
|
73
73
|
allocationSampling: 'Allocation sampling',
|
|
74
74
|
/**
|
|
@@ -76,95 +76,95 @@ const UIStrings = {
|
|
|
76
76
|
*/
|
|
77
77
|
samplingProfiles: 'Sampling profiles',
|
|
78
78
|
/**
|
|
79
|
-
* @description Description
|
|
79
|
+
* @description Description for the allocation sampling profiling option in the Memory panel.
|
|
80
80
|
*/
|
|
81
81
|
recordMemoryAllocations:
|
|
82
82
|
'Approximate memory allocations by sampling long operations with minimal overhead and get a breakdown by JavaScript execution stack',
|
|
83
83
|
/**
|
|
84
|
-
* @description Name of a profile
|
|
84
|
+
* @description Name of a profile.
|
|
85
85
|
* @example {2} PH1
|
|
86
86
|
*/
|
|
87
87
|
profileD: 'Profile {PH1}',
|
|
88
88
|
/**
|
|
89
|
-
* @description Accessible text for the value in bytes in
|
|
89
|
+
* @description Accessible text for the value in bytes in the allocation view or coverage view.
|
|
90
90
|
* @example {12345} PH1
|
|
91
91
|
*/
|
|
92
92
|
sBytes: '{PH1} bytes',
|
|
93
93
|
/**
|
|
94
|
-
* @description
|
|
94
|
+
* @description Formatting template for displaying a percentage value in heap and CPU profile views.
|
|
95
95
|
* @example {21.33} PH1
|
|
96
96
|
*/
|
|
97
97
|
formatPercent: '{PH1} %',
|
|
98
98
|
/**
|
|
99
|
-
* @description The formatted size in kilobytes, abbreviated to kB
|
|
99
|
+
* @description The formatted size in kilobytes, abbreviated to kB.
|
|
100
100
|
* @example {1,021} PH1
|
|
101
101
|
*/
|
|
102
102
|
skb: '{PH1} kB',
|
|
103
103
|
/**
|
|
104
|
-
* @description Text for the name of something
|
|
104
|
+
* @description Text for the name of something.
|
|
105
105
|
*/
|
|
106
106
|
name: 'Name',
|
|
107
107
|
/**
|
|
108
|
-
* @description Tooltip
|
|
108
|
+
* @description Tooltip for a cell reporting the size used for a particular part of the heap, excluding the size of child nodes.
|
|
109
109
|
*/
|
|
110
110
|
selfSize: 'Self size',
|
|
111
111
|
/**
|
|
112
|
-
* @description Tooltip
|
|
112
|
+
* @description Tooltip for a cell reporting the total size used for a particular part of the heap.
|
|
113
113
|
*/
|
|
114
114
|
totalSize: 'Total size',
|
|
115
115
|
/**
|
|
116
|
-
* @description Text for web URLs
|
|
116
|
+
* @description Text for web URLs.
|
|
117
117
|
*/
|
|
118
118
|
url: 'URL',
|
|
119
119
|
/**
|
|
120
|
-
* @description Label for a checkbox in the
|
|
120
|
+
* @description Label for a checkbox in the Memory panel to enable sampling heap profiler timeline.
|
|
121
121
|
*/
|
|
122
122
|
samplingHeapProfilerTimeline: 'Sampling heap profiler timeline',
|
|
123
123
|
/**
|
|
124
|
-
* @description
|
|
124
|
+
* @description Tab title for an individual heap profile view in the Memory panel.
|
|
125
125
|
*/
|
|
126
126
|
profile: 'Profile',
|
|
127
127
|
/**
|
|
128
128
|
* @description Placeholder text in the search box of the JavaScript profiler tool. Users can search
|
|
129
|
-
*the results by the cost in milliseconds, the name of the function, or the file name.
|
|
129
|
+
* the results by the cost in milliseconds, the name of the function, or the file name.
|
|
130
130
|
*/
|
|
131
131
|
findByCostMsNameOrFile: 'Find by cost (>50ms), name or file',
|
|
132
132
|
/**
|
|
133
|
-
* @description Text for a programming function
|
|
133
|
+
* @description Text for a programming function.
|
|
134
134
|
*/
|
|
135
135
|
function: 'Function',
|
|
136
136
|
/**
|
|
137
|
-
* @description Title of the Profiler tool
|
|
137
|
+
* @description Title of the Profiler tool.
|
|
138
138
|
*/
|
|
139
139
|
profiler: 'Profiler',
|
|
140
140
|
/**
|
|
141
|
-
* @description Aria-label for profiles view combobox in
|
|
141
|
+
* @description Aria-label for profiles view combobox in Memory panel.
|
|
142
142
|
*/
|
|
143
143
|
profileViewMode: 'Profile view mode',
|
|
144
144
|
/**
|
|
145
|
-
* @description Tooltip text that appears when hovering over the
|
|
145
|
+
* @description Tooltip text that appears when hovering over the focus button in the heap profile view toolbar.
|
|
146
146
|
*/
|
|
147
147
|
focusSelectedFunction: 'Focus selected function',
|
|
148
148
|
/**
|
|
149
|
-
* @description Tooltip text that appears when hovering over the
|
|
149
|
+
* @description Tooltip text that appears when hovering over the exclude button in the heap profile view toolbar.
|
|
150
150
|
*/
|
|
151
151
|
excludeSelectedFunction: 'Exclude selected function',
|
|
152
152
|
/**
|
|
153
|
-
* @description Tooltip text that appears when hovering over the
|
|
153
|
+
* @description Tooltip text that appears when hovering over the restore button in the heap profile view toolbar.
|
|
154
154
|
*/
|
|
155
155
|
restoreAllFunctions: 'Restore all functions',
|
|
156
156
|
/**
|
|
157
|
-
* @description
|
|
157
|
+
* @description Option in the view mode dropdown to display the heap profile as a flame chart.
|
|
158
158
|
*/
|
|
159
159
|
chart: 'Chart',
|
|
160
160
|
/**
|
|
161
|
-
* @description
|
|
161
|
+
* @description Option in the view mode dropdown to display the heap profile as a bottom-up call tree.
|
|
162
162
|
*/
|
|
163
|
-
heavyBottomUp: 'Heavy (
|
|
163
|
+
heavyBottomUp: 'Heavy (bottom up)',
|
|
164
164
|
/**
|
|
165
|
-
* @description
|
|
165
|
+
* @description Option in the view mode dropdown to display the heap profile as a top-down call tree.
|
|
166
166
|
*/
|
|
167
|
-
treeTopDown: 'Tree (
|
|
167
|
+
treeTopDown: 'Tree (top down)',
|
|
168
168
|
|
|
169
169
|
/**
|
|
170
170
|
* @description Tooltip to alert developers that some parts of code in execution were not optimized.
|
|
@@ -11,9 +11,9 @@ import {ProfilesPanel} from './ProfilesPanel.js';
|
|
|
11
11
|
|
|
12
12
|
const UIStrings = {
|
|
13
13
|
/**
|
|
14
|
-
* @description
|
|
14
|
+
* @description Context menu item to reveal the selected object in the summary perspective.
|
|
15
15
|
*/
|
|
16
|
-
revealInSummaryView: 'Reveal in
|
|
16
|
+
revealInSummaryView: 'Reveal in summary view',
|
|
17
17
|
} as const;
|
|
18
18
|
const str_ = i18n.i18n.registerUIStrings('panels/profiler/HeapProfilerPanel.ts', UIStrings);
|
|
19
19
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
@@ -24,101 +24,97 @@ import type {DataDisplayDelegate} from './ProfileHeader.js';
|
|
|
24
24
|
|
|
25
25
|
const UIStrings = {
|
|
26
26
|
/**
|
|
27
|
-
* @description
|
|
27
|
+
* @description Tooltip for the distance column header in heap snapshot data grids.
|
|
28
28
|
*/
|
|
29
29
|
distanceFromWindowObject: 'Distance from window object',
|
|
30
30
|
/**
|
|
31
|
-
* @description
|
|
31
|
+
* @description Tooltip for the shallow size column header in heap snapshot data grids.
|
|
32
32
|
*/
|
|
33
33
|
sizeOfTheObjectItselfInBytes: 'Size of the object itself in bytes',
|
|
34
34
|
/**
|
|
35
|
-
* @description
|
|
35
|
+
* @description Tooltip for the retained size column header in heap snapshot data grids.
|
|
36
36
|
*/
|
|
37
37
|
sizeOfTheObjectPlusTheGraphIt: 'Size of the object plus the graph it retains in bytes',
|
|
38
38
|
/**
|
|
39
|
-
* @description
|
|
39
|
+
* @description Column header displaying JavaScript object names in heap snapshot data grids.
|
|
40
40
|
*/
|
|
41
41
|
object: 'Object',
|
|
42
42
|
/**
|
|
43
|
-
* @description
|
|
43
|
+
* @description Column header displaying distance from root window object in heap snapshot data grids.
|
|
44
44
|
*/
|
|
45
45
|
distance: 'Distance',
|
|
46
46
|
/**
|
|
47
|
-
* @description
|
|
47
|
+
* @description Column header displaying shallow size in heap snapshot data grids.
|
|
48
48
|
*/
|
|
49
|
-
shallowSize: 'Shallow
|
|
49
|
+
shallowSize: 'Shallow size',
|
|
50
50
|
/**
|
|
51
|
-
* @description
|
|
51
|
+
* @description Column header displaying retained size in heap snapshot data grids.
|
|
52
52
|
*/
|
|
53
|
-
retainedSize: 'Retained
|
|
53
|
+
retainedSize: 'Retained size',
|
|
54
54
|
/**
|
|
55
|
-
* @description Title for a section in the
|
|
55
|
+
* @description Title for a section in the heap snapshot view. This title is for a table which
|
|
56
56
|
* shows retaining relationships between JavaScript objects. One object retains another if it holds
|
|
57
57
|
* a reference to it, keeping it alive.
|
|
58
58
|
*/
|
|
59
|
-
heapSnapshotRetainment: 'Heap
|
|
59
|
+
heapSnapshotRetainment: 'Heap snapshot retainment',
|
|
60
60
|
/**
|
|
61
|
-
* @description
|
|
61
|
+
* @description Column header displaying JavaScript constructor names in heap snapshot data grids.
|
|
62
62
|
*/
|
|
63
63
|
constructorString: 'Constructor',
|
|
64
64
|
/**
|
|
65
|
-
* @description Data grid name for
|
|
65
|
+
* @description Data grid name for heap snapshot constructors data grids.
|
|
66
66
|
*/
|
|
67
|
-
heapSnapshotConstructors: 'Heap
|
|
67
|
+
heapSnapshotConstructors: 'Heap snapshot constructors',
|
|
68
68
|
/**
|
|
69
|
-
* @description Column header in
|
|
70
|
-
* column is number of new objects in snapshot #2 compared to snapshot #1.
|
|
69
|
+
* @description Column header in heap snapshot diff table displaying the number of new objects.
|
|
71
70
|
*/
|
|
72
71
|
New: '# New',
|
|
73
72
|
/**
|
|
74
|
-
* @description Column header in
|
|
75
|
-
* column is number of deleted objects in snapshot #2 compared to snapshot #1.
|
|
73
|
+
* @description Column header in heap snapshot diff table displaying the number of deleted objects.
|
|
76
74
|
*/
|
|
77
75
|
Deleted: '# Deleted',
|
|
78
76
|
/**
|
|
79
|
-
* @description Column header in
|
|
80
|
-
* column is the difference (delta) between the # New and # Deleted objects in the snapshot.
|
|
77
|
+
* @description Column header in heap snapshot diff table displaying net object count change.
|
|
81
78
|
*/
|
|
82
79
|
Delta: '# Delta',
|
|
83
80
|
/**
|
|
84
|
-
* @description
|
|
81
|
+
* @description Column header in heap snapshot diff table displaying total allocated size.
|
|
85
82
|
*/
|
|
86
|
-
allocSize: 'Alloc.
|
|
83
|
+
allocSize: 'Alloc. size',
|
|
87
84
|
/**
|
|
88
|
-
* @description
|
|
85
|
+
* @description Column header in heap snapshot diff table displaying total freed size.
|
|
89
86
|
*/
|
|
90
|
-
freedSize: 'Freed
|
|
87
|
+
freedSize: 'Freed size',
|
|
91
88
|
/**
|
|
92
|
-
* @description
|
|
93
|
-
* difference, so the whole string means 'difference in size'.
|
|
89
|
+
* @description Column header in heap snapshot diff table displaying difference in size between snapshots. 'Delta' means difference.
|
|
94
90
|
*/
|
|
95
|
-
sizeDelta: 'Size
|
|
91
|
+
sizeDelta: 'Size delta',
|
|
96
92
|
/**
|
|
97
|
-
* @description Data grid name for
|
|
93
|
+
* @description Data grid name for heap snapshot diff data grids.
|
|
98
94
|
*/
|
|
99
|
-
heapSnapshotDiff: 'Heap
|
|
95
|
+
heapSnapshotDiff: 'Heap snapshot diff',
|
|
100
96
|
/**
|
|
101
|
-
* @description
|
|
97
|
+
* @description Column header in allocation data grid displaying the number of live objects.
|
|
102
98
|
*/
|
|
103
|
-
liveCount: 'Live
|
|
99
|
+
liveCount: 'Live count',
|
|
104
100
|
/**
|
|
105
|
-
* @description
|
|
101
|
+
* @description Column header in allocation data grid displaying total allocation count.
|
|
106
102
|
*/
|
|
107
103
|
count: 'Count',
|
|
108
104
|
/**
|
|
109
|
-
* @description
|
|
105
|
+
* @description Column header in allocation data grid displaying total live size.
|
|
110
106
|
*/
|
|
111
|
-
liveSize: 'Live
|
|
107
|
+
liveSize: 'Live size',
|
|
112
108
|
/**
|
|
113
|
-
* @description Text for the size of something
|
|
109
|
+
* @description Text for the size of something.
|
|
114
110
|
*/
|
|
115
111
|
size: 'Size',
|
|
116
112
|
/**
|
|
117
|
-
* @description Text for a programming function
|
|
113
|
+
* @description Text for a programming function.
|
|
118
114
|
*/
|
|
119
115
|
function: 'Function',
|
|
120
116
|
/**
|
|
121
|
-
* @description
|
|
117
|
+
* @description Data grid name for allocation view in heap snapshots.
|
|
122
118
|
*/
|
|
123
119
|
allocation: 'Allocation',
|
|
124
120
|
} as const;
|
|
@@ -28,102 +28,101 @@ import type {DataDisplayDelegate} from './ProfileHeader.js';
|
|
|
28
28
|
|
|
29
29
|
const UIStrings = {
|
|
30
30
|
/**
|
|
31
|
-
* @description
|
|
31
|
+
* @description Accessible name template combining a numeric value and its percentage (e.g. "1,613,680, 44%").
|
|
32
32
|
* @example {1 613 680} PH1
|
|
33
33
|
* @example {44 %} PH2
|
|
34
34
|
*/
|
|
35
35
|
genericStringsTwoPlaceholders: '{PH1}, {PH2}',
|
|
36
36
|
/**
|
|
37
|
-
* @description
|
|
37
|
+
* @description Display text for internal array objects without a constructor name in heap snapshot trees.
|
|
38
38
|
*/
|
|
39
39
|
internalArray: '(internal array)[]',
|
|
40
40
|
/**
|
|
41
|
-
* @description
|
|
41
|
+
* @description Tooltip for an icon indicating that an object is reachable from the global window object.
|
|
42
42
|
*/
|
|
43
43
|
userObjectReachableFromWindow: 'User object reachable from window',
|
|
44
44
|
/**
|
|
45
|
-
* @description
|
|
45
|
+
* @description Tooltip for an icon indicating that a DOM node is detached from the DOM tree.
|
|
46
46
|
*/
|
|
47
47
|
detachedFromDomTree: 'Detached from DOM tree',
|
|
48
48
|
/**
|
|
49
|
-
* @description Text
|
|
49
|
+
* @description Text displayed when a preview for a heap snapshot object cannot be retrieved.
|
|
50
50
|
*/
|
|
51
|
-
previewIsNotAvailable: 'Preview
|
|
51
|
+
previewIsNotAvailable: 'Preview isn’t available',
|
|
52
52
|
/**
|
|
53
|
-
* @description
|
|
53
|
+
* @description Context menu item to reveal the selected object in the summary perspective.
|
|
54
54
|
*/
|
|
55
|
-
revealInSummaryView: 'Reveal in
|
|
55
|
+
revealInSummaryView: 'Reveal in summary view',
|
|
56
56
|
/**
|
|
57
|
-
* @description
|
|
57
|
+
* @description Title of the perspective showing objects grouped by constructor.
|
|
58
58
|
*/
|
|
59
59
|
summary: 'Summary',
|
|
60
60
|
/**
|
|
61
|
-
* @description
|
|
61
|
+
* @description Context menu item to reveal a specific object by name and snapshot ID in the summary perspective.
|
|
62
62
|
* @example {SomeClassConstructor} PH1
|
|
63
63
|
* @example {12345} PH2
|
|
64
64
|
*/
|
|
65
|
-
revealObjectSWithIdSInSummary: 'Reveal object \'\'{PH1}\'\' with id @{PH2} in
|
|
65
|
+
revealObjectSWithIdSInSummary: 'Reveal object \'\'{PH1}\'\' with id @{PH2} in summary view',
|
|
66
66
|
/**
|
|
67
|
-
* @description Text to store an HTML element or JavaScript variable or expression result as a global variable
|
|
67
|
+
* @description Text to store an HTML element or JavaScript variable or expression result as a global variable.
|
|
68
68
|
*/
|
|
69
69
|
storeAsGlobalVariable: 'Store as global variable',
|
|
70
70
|
/**
|
|
71
|
-
* @description
|
|
71
|
+
* @description Context menu item to ignore a reference in the retainers view.
|
|
72
72
|
*/
|
|
73
73
|
ignoreThisRetainer: 'Ignore this retainer',
|
|
74
74
|
/**
|
|
75
|
-
* @description Text to undo the "Ignore this retainer" action
|
|
75
|
+
* @description Text to undo the "Ignore this retainer" action.
|
|
76
76
|
*/
|
|
77
77
|
stopIgnoringThisRetainer: 'Stop ignoring this retainer',
|
|
78
78
|
/**
|
|
79
|
-
* @description Text indicating that a node has been ignored with the "Ignore this retainer" action
|
|
79
|
+
* @description Text indicating that a node has been ignored with the "Ignore this retainer" action.
|
|
80
80
|
*/
|
|
81
81
|
ignored: 'ignored',
|
|
82
82
|
/**
|
|
83
|
-
* @description
|
|
84
|
-
* element.
|
|
83
|
+
* @description Preposition used in object retaining paths to show containment relationships (e.g. "myProp in Object" or "HTMLDivElement in HTMLBodyElement").
|
|
85
84
|
*/
|
|
86
85
|
inElement: 'in',
|
|
87
86
|
/**
|
|
88
|
-
* @description A short summary of the text at https://developer.chrome.com/docs/devtools/memory-problems/heap-snapshots#compiled-code
|
|
87
|
+
* @description A short summary of the text at https://developer.chrome.com/docs/devtools/memory-problems/heap-snapshots#compiled-code.
|
|
89
88
|
*/
|
|
90
89
|
compiledCodeSummary: 'Internal data which V8 uses to run functions defined by JavaScript or WebAssembly.',
|
|
91
90
|
/**
|
|
92
|
-
* @description A short summary of the text at https://developer.chrome.com/docs/devtools/memory-problems/heap-snapshots#concatenated-string
|
|
91
|
+
* @description A short summary of the text at https://developer.chrome.com/docs/devtools/memory-problems/heap-snapshots#concatenated-string.
|
|
93
92
|
*/
|
|
94
93
|
concatenatedStringSummary: 'A string which represents the contents of two other strings joined together.',
|
|
95
94
|
/**
|
|
96
|
-
* @description A short summary of the text at https://developer.chrome.com/docs/devtools/memory-problems/heap-snapshots#system-context
|
|
95
|
+
* @description A short summary of the text at https://developer.chrome.com/docs/devtools/memory-problems/heap-snapshots#system-context.
|
|
97
96
|
*/
|
|
98
97
|
contextSummary:
|
|
99
98
|
'An internal object containing variables from a JavaScript scope which may be needed by a function created within that scope.',
|
|
100
99
|
/**
|
|
101
|
-
* @description A short description of the data type internal type DescriptorArray, which is described more fully at https://v8.dev/blog/fast-properties
|
|
100
|
+
* @description A short description of the data type internal type DescriptorArray, which is described more fully at https://v8.dev/blog/fast-properties.
|
|
102
101
|
*/
|
|
103
102
|
descriptorArraySummary: 'A list of the property names used by a JavaScript Object.',
|
|
104
103
|
/**
|
|
105
|
-
* @description A short summary of the text at https://developer.chrome.com/docs/devtools/memory-problems/heap-snapshots#array
|
|
104
|
+
* @description A short summary of the text at https://developer.chrome.com/docs/devtools/memory-problems/heap-snapshots#array.
|
|
106
105
|
*/
|
|
107
106
|
internalArraySummary: 'An internal array-like data structure (not a JavaScript Array).',
|
|
108
107
|
/**
|
|
109
|
-
* @description A short summary of the text at https://developer.chrome.com/docs/devtools/memory-problems/heap-snapshots#internal-node
|
|
108
|
+
* @description A short summary of the text at https://developer.chrome.com/docs/devtools/memory-problems/heap-snapshots#internal-node.
|
|
110
109
|
*/
|
|
111
110
|
internalNodeSummary: 'An object allocated by a component other than V8, such as C++ objects defined by Blink.',
|
|
112
111
|
/**
|
|
113
|
-
* @description A short description of the data type "system / Map" described at https://developer.chrome.com/docs/devtools/memory-problems/heap-snapshots#object-shape
|
|
112
|
+
* @description A short description of the data type "system / Map" described at https://developer.chrome.com/docs/devtools/memory-problems/heap-snapshots#object-shape.
|
|
114
113
|
*/
|
|
115
114
|
mapSummary: 'An internal object representing the shape of a JavaScript Object (not a JavaScript Map).',
|
|
116
115
|
/**
|
|
117
|
-
* @description A short summary of the "(object elements)[]" described at https://developer.chrome.com/docs/devtools/memory-problems/heap-snapshots#array
|
|
116
|
+
* @description A short summary of the "(object elements)[]" described at https://developer.chrome.com/docs/devtools/memory-problems/heap-snapshots#array.
|
|
118
117
|
*/
|
|
119
118
|
objectElementsSummary:
|
|
120
119
|
'An internal object which stores the indexed properties in a JavaScript Object, such as the contents of an Array.',
|
|
121
120
|
/**
|
|
122
|
-
* @description A short summary of the "(object properties)[]" described at https://developer.chrome.com/docs/devtools/memory-problems/heap-snapshots#array
|
|
121
|
+
* @description A short summary of the "(object properties)[]" described at https://developer.chrome.com/docs/devtools/memory-problems/heap-snapshots#array.
|
|
123
122
|
*/
|
|
124
123
|
objectPropertiesSummary: 'An internal object which stores the named properties in a JavaScript Object.',
|
|
125
124
|
/**
|
|
126
|
-
* @description A short summary of the text at https://developer.chrome.com/docs/devtools/memory-problems/heap-snapshots#sliced-string
|
|
125
|
+
* @description A short summary of the text at https://developer.chrome.com/docs/devtools/memory-problems/heap-snapshots#sliced-string.
|
|
127
126
|
*/
|
|
128
127
|
slicedStringSummary: 'A string which represents some of the characters from another string.',
|
|
129
128
|
} as const;
|