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.
Files changed (177) hide show
  1. package/.agents/skills/devtools-ux-writing-refactor/SKILL.md +26 -9
  2. package/front_end/core/common/ParsedURL.ts +5 -1
  3. package/front_end/core/common/SettingRegistration.ts +30 -34
  4. package/front_end/core/common/Settings.ts +4 -64
  5. package/front_end/core/host/UserMetrics.ts +127 -117
  6. package/front_end/core/protocol_client/PuppeteerDevToolsConnection.ts +42 -9
  7. package/front_end/core/root/Runtime.ts +14 -0
  8. package/front_end/core/sdk/NetworkManager.ts +0 -35
  9. package/front_end/core/sdk/SourceMap.ts +1 -19
  10. package/front_end/core/sdk/SourceMapManager.ts +75 -48
  11. package/front_end/core/sdk/SourceMapScopesInfo.ts +0 -62
  12. package/front_end/core/sdk/TargetManager.ts +18 -0
  13. package/front_end/devtools_compatibility.js +1 -1
  14. package/front_end/entrypoints/main/MainImpl.ts +1 -0
  15. package/front_end/foundation/Universe.ts +44 -29
  16. package/front_end/generated/InspectorBackendCommands.ts +4 -3
  17. package/front_end/generated/SupportedCSSProperties.ts +16 -1
  18. package/front_end/generated/protocol-mapping.d.ts +8 -0
  19. package/front_end/generated/protocol-proxy-api.d.ts +6 -0
  20. package/front_end/generated/protocol.ts +16 -2
  21. package/front_end/models/ai_assistance/AiSetting.ts +66 -3
  22. package/front_end/models/ai_assistance/agents/PerformanceAgent.ts +15 -5
  23. package/front_end/models/bindings/CompilerScriptMapping.ts +1 -1
  24. package/front_end/models/emulation/DeviceModeModel.ts +82 -102
  25. package/front_end/models/emulation/EmulatedDevices.ts +18 -66
  26. package/front_end/models/javascript_metadata/NativeFunctions.js +4 -4
  27. package/front_end/models/persistence/AutomaticFileSystemManager.ts +2 -2
  28. package/front_end/models/persistence/IsolatedFileSystemManager.ts +20 -29
  29. package/front_end/models/trace/ModelImpl.ts +5 -0
  30. package/front_end/models/trace/Processor.ts +5 -0
  31. package/front_end/models/trace/handlers/LayoutShiftsHandler.ts +7 -1
  32. package/front_end/models/trace/handlers/MetaHandler.ts +8 -4
  33. package/front_end/models/trace/handlers/PageLoadMetricsHandler.ts +11 -0
  34. package/front_end/models/workspace/FileManager.ts +13 -6
  35. package/front_end/panels/ai_assistance/AiAssistancePanel.ts +11 -10
  36. package/front_end/panels/ai_assistance/ai_assistance-meta.ts +3 -45
  37. package/front_end/panels/application/BackgroundServiceView.ts +42 -40
  38. package/front_end/panels/application/KeyValueStorageItemsView.ts +1 -0
  39. package/front_end/panels/application/WebMCPView.ts +13 -5
  40. package/front_end/panels/application/components/AdsView.ts +24 -1
  41. package/front_end/panels/application/components/adsView.css +27 -21
  42. package/front_end/panels/autofill/AutofillView.ts +12 -12
  43. package/front_end/panels/autofill/autofill-meta.ts +2 -2
  44. package/front_end/panels/common/ExtensionServer.ts +7 -1
  45. package/front_end/panels/common/common.ts +0 -1
  46. package/front_end/panels/console/ConsoleInsightTeaser.ts +7 -6
  47. package/front_end/panels/console/ConsoleViewMessage.ts +1 -1
  48. package/front_end/panels/elements/ClassesPaneWidget.ts +2 -2
  49. package/front_end/panels/elements/ElementsTreeElement.ts +602 -327
  50. package/front_end/panels/elements/ElementsTreeOutline.ts +1 -1
  51. package/front_end/panels/elements/StylesSidebarPane.ts +1 -1
  52. package/front_end/panels/elements/components/AdornerManager.ts +1 -0
  53. package/front_end/panels/emulation/AdvancedApp.ts +3 -3
  54. package/front_end/panels/emulation/DeviceModeToolbar.ts +2 -11
  55. package/front_end/panels/emulation/DeviceModeView.ts +234 -75
  56. package/front_end/panels/emulation/InspectedPagePlaceholder.ts +1 -1
  57. package/front_end/panels/emulation/deviceModeView.css +4 -21
  58. package/front_end/panels/emulation/emulation-meta.ts +4 -30
  59. package/front_end/panels/emulation/emulation.ts +0 -3
  60. package/front_end/panels/explain/components/ConsoleInsight.ts +11 -7
  61. package/front_end/panels/js_timeline/js_timeline-meta.ts +8 -8
  62. package/front_end/panels/layer_viewer/LayerDetailsView.ts +30 -30
  63. package/front_end/panels/layer_viewer/LayerTreeOutline.ts +6 -6
  64. package/front_end/panels/layer_viewer/LayerViewHost.ts +1 -1
  65. package/front_end/panels/layer_viewer/Layers3DView.ts +11 -11
  66. package/front_end/panels/layer_viewer/PaintProfilerView.ts +8 -8
  67. package/front_end/panels/layer_viewer/TransformController.ts +3 -3
  68. package/front_end/panels/layer_viewer/layer_viewer-meta.ts +11 -11
  69. package/front_end/panels/layers/LayersPanel.ts +2 -2
  70. package/front_end/panels/layers/layers-meta.ts +2 -2
  71. package/front_end/panels/lighthouse/LighthouseController.ts +3 -7
  72. package/front_end/panels/mobile_throttling/CPUThrottlingSelector.ts +313 -0
  73. package/front_end/panels/mobile_throttling/NetworkPanelIndicator.ts +0 -10
  74. package/front_end/panels/mobile_throttling/NetworkThrottlingSelector.ts +21 -10
  75. package/front_end/panels/mobile_throttling/ThrottlingManager.ts +1 -58
  76. package/front_end/panels/mobile_throttling/mobile_throttling.ts +2 -9
  77. package/front_end/panels/network/NetworkConfigView.ts +1 -71
  78. package/front_end/panels/network/networkConfigView.css +1 -2
  79. package/front_end/panels/profiler/HeapDetachedElementsDataGrid.ts +3 -3
  80. package/front_end/panels/profiler/HeapDetachedElementsView.ts +5 -5
  81. package/front_end/panels/profiler/HeapProfileView.ts +32 -32
  82. package/front_end/panels/profiler/HeapProfilerPanel.ts +2 -2
  83. package/front_end/panels/profiler/HeapSnapshotDataGrids.ts +33 -37
  84. package/front_end/panels/profiler/HeapSnapshotGridNodes.ts +26 -27
  85. package/front_end/panels/profiler/HeapSnapshotView.ts +48 -48
  86. package/front_end/panels/profiler/IsolateSelector.ts +10 -10
  87. package/front_end/panels/profiler/ModuleUIStrings.ts +25 -25
  88. package/front_end/panels/profiler/ProfileLauncherView.ts +6 -6
  89. package/front_end/panels/profiler/ProfilesPanel.ts +6 -6
  90. package/front_end/panels/profiler/WritableProfileHeader.ts +6 -6
  91. package/front_end/panels/profiler/profiler-meta.ts +7 -7
  92. package/front_end/panels/protocol_monitor/ProtocolMonitor.ts +7 -0
  93. package/front_end/panels/recorder/RecorderPanel.ts +1 -1
  94. package/front_end/panels/settings/AISettingsTab.ts +27 -23
  95. package/front_end/panels/settings/emulation/DevicesSettingsTab.ts +1 -2
  96. package/front_end/panels/timeline/TimelineFlameChartNetworkDataProvider.ts +12 -17
  97. package/front_end/panels/timeline/TimelinePanel.ts +20 -35
  98. package/front_end/panels/timeline/components/LiveMetricsView.ts +27 -6
  99. package/front_end/panels/timeline/components/NetworkTrackWidget.ts +1 -1
  100. package/front_end/panels/timeline/components/components.ts +0 -4
  101. package/front_end/panels/timeline/components/liveMetricsView.css +7 -0
  102. package/front_end/third_party/chromium/README.chromium +1 -1
  103. package/front_end/third_party/source-map-scopes-codec/package/CONTRIBUTING.md +0 -0
  104. package/front_end/third_party/source-map-scopes-codec/package/LICENSE +0 -0
  105. package/front_end/third_party/source-map-scopes-codec/package/README.md +0 -0
  106. package/front_end/third_party/source-map-scopes-codec/package/_dist/src/builder/builder.d.ts +0 -0
  107. package/front_end/third_party/source-map-scopes-codec/package/_dist/src/builder/builder.d.ts.map +1 -1
  108. package/front_end/third_party/source-map-scopes-codec/package/_dist/src/builder/safe_builder.d.ts +0 -0
  109. package/front_end/third_party/source-map-scopes-codec/package/_dist/src/builder/safe_builder.d.ts.map +0 -0
  110. package/front_end/third_party/source-map-scopes-codec/package/_dist/src/decode/decode.d.ts +0 -0
  111. package/front_end/third_party/source-map-scopes-codec/package/_dist/src/decode/decode.d.ts.map +0 -0
  112. package/front_end/third_party/source-map-scopes-codec/package/_dist/src/encode/encode.d.ts +0 -0
  113. package/front_end/third_party/source-map-scopes-codec/package/_dist/src/encode/encode.d.ts.map +0 -0
  114. package/front_end/third_party/source-map-scopes-codec/package/_dist/src/mod.d.ts +0 -0
  115. package/front_end/third_party/source-map-scopes-codec/package/_dist/src/mod.d.ts.map +0 -0
  116. package/front_end/third_party/source-map-scopes-codec/package/_dist/src/scopes.d.ts +0 -0
  117. package/front_end/third_party/source-map-scopes-codec/package/_dist/src/scopes.d.ts.map +0 -0
  118. package/front_end/third_party/source-map-scopes-codec/package/deno.json +1 -1
  119. package/front_end/third_party/source-map-scopes-codec/package/package.json +1 -1
  120. package/front_end/third_party/source-map-scopes-codec/package/src/builder/builder.js +2 -0
  121. package/front_end/third_party/source-map-scopes-codec/package/src/builder/builder.js.map +1 -1
  122. package/front_end/third_party/source-map-scopes-codec/package/src/builder/builder.ts +2 -0
  123. package/front_end/third_party/source-map-scopes-codec/package/src/builder/safe_builder.js +0 -0
  124. package/front_end/third_party/source-map-scopes-codec/package/src/builder/safe_builder.js.map +0 -0
  125. package/front_end/third_party/source-map-scopes-codec/package/src/builder/safe_builder.ts +0 -0
  126. package/front_end/third_party/source-map-scopes-codec/package/src/codec.js +0 -0
  127. package/front_end/third_party/source-map-scopes-codec/package/src/codec.js.map +0 -0
  128. package/front_end/third_party/source-map-scopes-codec/package/src/codec.ts +0 -0
  129. package/front_end/third_party/source-map-scopes-codec/package/src/decode/decode.js +0 -0
  130. package/front_end/third_party/source-map-scopes-codec/package/src/decode/decode.js.map +0 -0
  131. package/front_end/third_party/source-map-scopes-codec/package/src/decode/decode.ts +0 -0
  132. package/front_end/third_party/source-map-scopes-codec/package/src/encode/encode.js +0 -0
  133. package/front_end/third_party/source-map-scopes-codec/package/src/encode/encode.js.map +0 -0
  134. package/front_end/third_party/source-map-scopes-codec/package/src/encode/encode.ts +0 -0
  135. package/front_end/third_party/source-map-scopes-codec/package/src/encode/encoder.js +0 -0
  136. package/front_end/third_party/source-map-scopes-codec/package/src/encode/encoder.js.map +0 -0
  137. package/front_end/third_party/source-map-scopes-codec/package/src/encode/encoder.ts +0 -0
  138. package/front_end/third_party/source-map-scopes-codec/package/src/mod.js +0 -0
  139. package/front_end/third_party/source-map-scopes-codec/package/src/mod.js.map +0 -0
  140. package/front_end/third_party/source-map-scopes-codec/package/src/mod.ts +0 -0
  141. package/front_end/third_party/source-map-scopes-codec/package/src/scopes.js +0 -0
  142. package/front_end/third_party/source-map-scopes-codec/package/src/scopes.js.map +0 -0
  143. package/front_end/third_party/source-map-scopes-codec/package/src/scopes.ts +0 -0
  144. package/front_end/third_party/source-map-scopes-codec/package/src/util.js +0 -0
  145. package/front_end/third_party/source-map-scopes-codec/package/src/util.js.map +0 -0
  146. package/front_end/third_party/source-map-scopes-codec/package/src/util.ts +0 -0
  147. package/front_end/third_party/source-map-scopes-codec/package/src/vlq.js +0 -0
  148. package/front_end/third_party/source-map-scopes-codec/package/src/vlq.js.map +0 -0
  149. package/front_end/third_party/source-map-scopes-codec/package/src/vlq.ts +0 -0
  150. package/front_end/ui/comments/CommentAnchorResolver.ts +132 -0
  151. package/front_end/ui/comments/comments.ts +9 -0
  152. package/front_end/ui/components/dialogs/ShortcutDialog.ts +2 -0
  153. package/front_end/ui/components/settings/SettingCheckbox.ts +4 -12
  154. package/front_end/ui/components/settings/settingCheckbox.css +0 -7
  155. package/front_end/ui/legacy/Treeoutline.ts +14 -14
  156. package/front_end/ui/legacy/UIUtils.ts +2 -47
  157. package/front_end/ui/legacy/Widget.ts +10 -2
  158. package/front_end/ui/legacy/components/data_grid/DataGridElement.ts +40 -0
  159. package/front_end/ui/legacy/components/settings_ui/SettingsUI.ts +1 -1
  160. package/front_end/ui/legacy/components/utils/Linkifier.ts +1 -0
  161. package/front_end/ui/lit/Directives.ts +80 -0
  162. package/front_end/ui/lit/lit.ts +1 -0
  163. package/front_end/ui/lit/render.ts +8 -0
  164. package/front_end/ui/settings/SettingUIRegistration.ts +4 -0
  165. package/front_end/ui/visual_logging/Debugging.ts +1 -5
  166. package/front_end/ui/visual_logging/KnownContextValues.ts +3 -0
  167. package/front_end/ui/visual_logging/LoggingConfig.ts +21 -0
  168. package/front_end/ui/visual_logging/visual_logging.ts +9 -0
  169. package/mcp/mcp.ts +1 -0
  170. package/package.json +1 -1
  171. package/front_end/panels/common/ThrottlingUtils.ts +0 -51
  172. package/front_end/panels/emulation/DeviceModeWrapper.ts +0 -248
  173. package/front_end/panels/mobile_throttling/MobileThrottlingSelector.ts +0 -92
  174. package/front_end/panels/timeline/components/CPUThrottlingSelector.ts +0 -235
  175. package/front_end/panels/timeline/components/NetworkThrottlingSelector.ts +0 -245
  176. package/front_end/panels/timeline/components/cpuThrottlingSelector.css +0 -30
  177. 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 Name of column header that reports the size (in terms of bytes) used for a particular part of the heap, excluding the size of the children nodes of this part of the heap
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 Name of column header that reports the total size (in terms of bytes) used for a particular part of the heap
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 Icon title in Heap Profile View of a profiler tool
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 in Heap Profile View of a profiler tool
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 memory allocation or coverage view.
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 Text in CPUProfile View of a profiler tool
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 of a cell that reports the size used for a particular part of the heap, excluding the size of the children nodes of this part of the heap
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 of a cell that reports the total size used for a particular part of the heap
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 memory panel to enable sampling heap profiler timeline.
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 Text in Profile View of a profiler tool
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 memory tool
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 largeicon visibility button in the Profile View of a profiler tool
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 largeicon delete button in the Profile View of a profiler tool
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 largeicon refresh button in the Profile View of a profiler tool
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 Text in Profile View of a profiler tool
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 Text in Profile View of a profiler tool
161
+ * @description Option in the view mode dropdown to display the heap profile as a bottom-up call tree.
162
162
  */
163
- heavyBottomUp: 'Heavy (Bottom Up)',
163
+ heavyBottomUp: 'Heavy (bottom up)',
164
164
  /**
165
- * @description Text for selecting different profile views in the JS profiler tool. This option is a tree view.
165
+ * @description Option in the view mode dropdown to display the heap profile as a top-down call tree.
166
166
  */
167
- treeTopDown: 'Tree (Top Down)',
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 A context menu item in the Heap Profiler Panel of a profiler tool
14
+ * @description Context menu item to reveal the selected object in the summary perspective.
15
15
  */
16
- revealInSummaryView: 'Reveal in Summary view',
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 Text in Heap Snapshot Data Grids of a profiler tool
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 Text in Heap Snapshot Data Grids of a profiler tool
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 Text in Heap Snapshot Data Grids of a profiler tool
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 Text in Heap Snapshot Data Grids of a profiler tool
39
+ * @description Column header displaying JavaScript object names in heap snapshot data grids.
40
40
  */
41
41
  object: 'Object',
42
42
  /**
43
- * @description Text in Heap Snapshot Data Grids of a profiler tool
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 Text in Heap Snapshot Data Grids of a profiler tool. Shallow size is the size of just this node, not including children/retained size.
47
+ * @description Column header displaying shallow size in heap snapshot data grids.
48
48
  */
49
- shallowSize: 'Shallow Size',
49
+ shallowSize: 'Shallow size',
50
50
  /**
51
- * @description Text in Heap Snapshot Data Grids of a profiler tool
51
+ * @description Column header displaying retained size in heap snapshot data grids.
52
52
  */
53
- retainedSize: 'Retained Size',
53
+ retainedSize: 'Retained size',
54
54
  /**
55
- * @description Title for a section in the Heap Snapshot view. This title is for a table which
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 Snapshot Retainment',
59
+ heapSnapshotRetainment: 'Heap snapshot retainment',
60
60
  /**
61
- * @description Text in Heap Snapshot Data Grids of a profiler tool
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 Heap Snapshot Constructors data grids
65
+ * @description Data grid name for heap snapshot constructors data grids.
66
66
  */
67
- heapSnapshotConstructors: 'Heap Snapshot Constructors',
67
+ heapSnapshotConstructors: 'Heap snapshot constructors',
68
68
  /**
69
- * @description Column header in a table displaying the diff between two Heap Snapshots. This
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 a table displaying the diff between two Heap Snapshots. This
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 a table displaying the diff between two Heap Snapshots. This
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 Text in Heap Snapshot Data Grids of a profiler tool
81
+ * @description Column header in heap snapshot diff table displaying total allocated size.
85
82
  */
86
- allocSize: 'Alloc. Size',
83
+ allocSize: 'Alloc. size',
87
84
  /**
88
- * @description Text in Heap Snapshot Data Grids of a profiler tool
85
+ * @description Column header in heap snapshot diff table displaying total freed size.
89
86
  */
90
- freedSize: 'Freed Size',
87
+ freedSize: 'Freed size',
91
88
  /**
92
- * @description Title of a column in a table in the Heap Snapshot tool. 'Delta' here means
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 Delta',
91
+ sizeDelta: 'Size delta',
96
92
  /**
97
- * @description Data grid name for Heap Snapshot Diff data grids
93
+ * @description Data grid name for heap snapshot diff data grids.
98
94
  */
99
- heapSnapshotDiff: 'Heap Snapshot Diff',
95
+ heapSnapshotDiff: 'Heap snapshot diff',
100
96
  /**
101
- * @description Text in Heap Snapshot Data Grids of a profiler tool
97
+ * @description Column header in allocation data grid displaying the number of live objects.
102
98
  */
103
- liveCount: 'Live Count',
99
+ liveCount: 'Live count',
104
100
  /**
105
- * @description Text in Heap Snapshot Data Grids of a profiler tool
101
+ * @description Column header in allocation data grid displaying total allocation count.
106
102
  */
107
103
  count: 'Count',
108
104
  /**
109
- * @description Text in Heap Snapshot Data Grids of a profiler tool
105
+ * @description Column header in allocation data grid displaying total live size.
110
106
  */
111
- liveSize: 'Live Size',
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 Text in Heap Snapshot View of a profiler tool
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 Generic text with two placeholders separated by a comma
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 Text in Heap Snapshot Grid Nodes of a profiler tool
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 Text in Heap Snapshot Grid Nodes of a profiler tool
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 Text in Heap Snapshot Grid Nodes of a profiler tool
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 in Heap Snapshot Grid Nodes of a profiler tool
49
+ * @description Text displayed when a preview for a heap snapshot object cannot be retrieved.
50
50
  */
51
- previewIsNotAvailable: 'Preview is not available',
51
+ previewIsNotAvailable: 'Preview isn’t available',
52
52
  /**
53
- * @description A context menu item in the Heap Profiler Panel of a profiler tool
53
+ * @description Context menu item to reveal the selected object in the summary perspective.
54
54
  */
55
- revealInSummaryView: 'Reveal in Summary view',
55
+ revealInSummaryView: 'Reveal in summary view',
56
56
  /**
57
- * @description Text for the summary view
57
+ * @description Title of the perspective showing objects grouped by constructor.
58
58
  */
59
59
  summary: 'Summary',
60
60
  /**
61
- * @description A context menu item in the Heap Profiler Panel of a profiler tool
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 Summary view',
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 Text to ignore an object shown in the Retainers pane
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 Text in Heap Snapshot Grid Nodes of a profiler tool that indicates an element contained in another
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;