chrome-devtools-frontend 1.0.1672388 → 1.0.1674545
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 +3 -3
- package/front_end/core/common/SettingRegistration.ts +1 -26
- package/front_end/core/common/Settings.ts +4 -53
- 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 +7 -2
- 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/devtools_compatibility.js +1 -1
- package/front_end/generated/InspectorBackendCommands.ts +4 -3
- package/front_end/generated/{SupportedCSSProperties.js → SupportedCSSProperties.ts} +32 -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.snapshot.txt +1 -1
- package/front_end/models/ai_assistance/data_formatters/PerformanceInsightFormatter.ts +4 -3
- package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.snapshot.txt +1 -1
- package/front_end/models/bindings/CompilerScriptMapping.ts +1 -1
- package/front_end/models/emulation/DeviceModeModel.ts +25 -34
- package/front_end/models/emulation/EmulatedDevices.ts +1 -1
- package/front_end/models/javascript_metadata/NativeFunctions.js +4 -4
- package/front_end/models/trace/ModelImpl.ts +5 -0
- package/front_end/models/trace/Processor.ts +47 -10
- package/front_end/models/trace/handlers/LayoutShiftsHandler.ts +18 -19
- package/front_end/models/trace/handlers/MetaHandler.ts +46 -9
- package/front_end/models/trace/handlers/PageLoadMetricsHandler.ts +11 -0
- package/front_end/models/trace/insights/CLSCulprits.ts +1 -2
- package/front_end/models/trace/insights/CharacterSet.ts +1 -1
- package/front_end/models/trace/insights/Common.ts +21 -2
- package/front_end/models/trace/insights/DocumentLatency.ts +1 -1
- package/front_end/models/trace/insights/LCPBreakdown.ts +7 -6
- package/front_end/models/trace/insights/LCPDiscovery.ts +1 -1
- package/front_end/models/trace/insights/ModernHTTP.ts +7 -3
- package/front_end/models/trace/insights/NetworkDependencyTree.ts +1 -1
- package/front_end/models/trace/insights/RenderBlocking.ts +1 -1
- package/front_end/models/trace/insights/ThirdParties.ts +5 -2
- package/front_end/models/trace/insights/types.ts +11 -6
- package/front_end/models/trace/types/Configuration.ts +5 -0
- 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/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 +56 -5
- 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/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 +23 -10
- package/front_end/panels/mobile_throttling/mobile_throttling.ts +3 -0
- 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/recorder/RecorderPanel.ts +1 -1
- package/front_end/panels/settings/AISettingsTab.ts +27 -23
- package/front_end/panels/settings/emulation/DevicesSettingsTab.ts +463 -13
- package/front_end/panels/timeline/TimelineFlameChartNetworkDataProvider.ts +12 -17
- package/front_end/panels/timeline/TimelinePanel.ts +22 -35
- package/front_end/panels/timeline/components/CWVMetrics.ts +16 -3
- 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/cwvMetrics.css +4 -0
- package/front_end/panels/timeline/components/liveMetricsView.css +7 -17
- package/front_end/panels/timeline/components/metricValueStyles.css +17 -0
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/third_party/puppeteer/README.chromium +2 -2
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.d.ts +64 -15
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +65 -16
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.d.ts +50 -7
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/BidiOverCdp.d.ts +2 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/BidiOverCdp.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/BidiOverCdp.js +5 -5
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/BidiOverCdp.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Connection.d.ts +2 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Connection.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Connection.js +8 -6
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Connection.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Dialog.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Dialog.js +3 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Dialog.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Browser.js +16 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Connection.d.ts +5 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Connection.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Connection.js +11 -6
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Connection.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Dialog.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Dialog.js +5 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Dialog.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkManager.js +10 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/BrowserConnector.js +4 -3
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/Debug.d.ts +27 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/Debug.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/Debug.js +12 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/Debug.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/util.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/util.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/util.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/util.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ChromeLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ChromeLauncher.js +2 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ChromeLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ScreenRecorder.d.ts +2 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ScreenRecorder.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ScreenRecorder.js +5 -4
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ScreenRecorder.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/revisions.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/puppeteer/revisions.js +3 -3
- package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/types.d.ts +64 -15
- package/front_end/third_party/puppeteer/package/package.json +2 -2
- package/front_end/third_party/puppeteer/package/src/api/Page.ts +50 -7
- package/front_end/third_party/puppeteer/package/src/bidi/BidiOverCdp.ts +9 -7
- package/front_end/third_party/puppeteer/package/src/bidi/Connection.ts +9 -6
- package/front_end/third_party/puppeteer/package/src/bidi/Dialog.ts +4 -0
- package/front_end/third_party/puppeteer/package/src/cdp/Browser.ts +24 -1
- package/front_end/third_party/puppeteer/package/src/cdp/Connection.ts +11 -6
- package/front_end/third_party/puppeteer/package/src/cdp/Dialog.ts +7 -0
- package/front_end/third_party/puppeteer/package/src/cdp/NetworkManager.ts +11 -0
- package/front_end/third_party/puppeteer/package/src/common/BrowserConnector.ts +7 -3
- package/front_end/third_party/puppeteer/package/src/common/Debug.ts +30 -5
- package/front_end/third_party/puppeteer/package/src/common/util.ts +2 -2
- package/front_end/third_party/puppeteer/package/src/node/ChromeLauncher.ts +2 -0
- package/front_end/third_party/puppeteer/package/src/node/ScreenRecorder.ts +6 -4
- package/front_end/third_party/puppeteer/package/src/revisions.ts +3 -3
- package/front_end/third_party/puppeteer/package/src/util/version.ts +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/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/settings_ui/SettingsUI.ts +1 -1
- 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/visual_logging/KnownContextValues.ts +18 -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/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
- /package/front_end/core/host/{UserMetricsEnums.d.ts → UserMetricsEnums.ts} +0 -0
- /package/front_end/generated/{ARIAProperties.js → ARIAProperties.ts} +0 -0
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// Copyright 2016 The Chromium Authors
|
|
2
2
|
// Use of this source code is governed by a BSD-style license that can be
|
|
3
3
|
// found in the LICENSE file.
|
|
4
|
-
/* eslint-disable @devtools/no-lit-render-outside-of-view */
|
|
5
4
|
|
|
6
5
|
import type * as Common from '../../core/common/common.js';
|
|
7
6
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
@@ -11,12 +10,11 @@ import * as Trace from '../../models/trace/trace.js';
|
|
|
11
10
|
import * as PerfUI from '../../ui/legacy/components/perf_ui/perf_ui.js';
|
|
12
11
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
13
12
|
import * as ThemeSupport from '../../ui/legacy/theme_support/theme_support.js';
|
|
14
|
-
import
|
|
13
|
+
import * as Lit from '../../ui/lit/lit.js';
|
|
15
14
|
|
|
16
15
|
import * as TimelineComponents from './components/components.js';
|
|
17
16
|
import {initiatorsDataToDrawForNetwork} from './Initiators.js';
|
|
18
17
|
import {NetworkTrackAppender, type NetworkTrackEvent} from './NetworkTrackAppender.js';
|
|
19
|
-
import timelineFlamechartPopoverStyles from './timelineFlamechartPopover.css.js';
|
|
20
18
|
import {FlameChartStyle, Selection} from './TimelineFlameChartView.js';
|
|
21
19
|
import {
|
|
22
20
|
selectionFromEvent,
|
|
@@ -26,6 +24,8 @@ import {
|
|
|
26
24
|
} from './TimelineSelection.js';
|
|
27
25
|
import {buildPersistedConfig} from './TrackConfiguration.js';
|
|
28
26
|
|
|
27
|
+
const {html} = Lit;
|
|
28
|
+
|
|
29
29
|
export class TimelineFlameChartNetworkDataProvider implements PerfUI.FlameChart.FlameChartDataProvider {
|
|
30
30
|
#minimumBoundary = 0;
|
|
31
31
|
#timeSpan = 0;
|
|
@@ -396,23 +396,18 @@ export class TimelineFlameChartNetworkDataProvider implements PerfUI.FlameChart.
|
|
|
396
396
|
return this.#networkTrackAppender?.webSocketIdToLevel.has(levelIndex) || false;
|
|
397
397
|
}
|
|
398
398
|
|
|
399
|
-
preparePopoverElement(index: number):
|
|
399
|
+
preparePopoverElement(index: number): Lit.TemplateResult|null {
|
|
400
400
|
const event = this.#events[index];
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
const element = document.createElement('div');
|
|
404
|
-
const root = UI.UIUtils.createShadowRootWithCoreStyles(element, {cssFile: timelineFlamechartPopoverStyles});
|
|
405
|
-
// clang-format off
|
|
406
|
-
render(html`
|
|
407
|
-
<div class="timeline-flamechart-popover">
|
|
408
|
-
${TimelineComponents.NetworkRequestTooltip.NetworkRequestTooltip.createWidgetElement(
|
|
409
|
-
event, this.#entityMapper || undefined)}
|
|
410
|
-
</div>`, root);
|
|
411
|
-
// clang-format on
|
|
412
|
-
return element;
|
|
401
|
+
if (!event || !Trace.Types.Events.isSyntheticNetworkRequest(event)) {
|
|
402
|
+
return null;
|
|
413
403
|
}
|
|
414
404
|
|
|
415
|
-
return
|
|
405
|
+
return html`
|
|
406
|
+
<div class="timeline-flamechart-popover">
|
|
407
|
+
${
|
|
408
|
+
TimelineComponents.NetworkRequestTooltip.NetworkRequestTooltip.createWidgetElement(
|
|
409
|
+
event, this.#entityMapper || undefined)}
|
|
410
|
+
</div>`;
|
|
416
411
|
}
|
|
417
412
|
|
|
418
413
|
/**
|
|
@@ -46,7 +46,6 @@ import * as TextUtils from '../../core/text_utils/text_utils.js';
|
|
|
46
46
|
import * as Protocol from '../../generated/protocol.js';
|
|
47
47
|
import * as AiAssistanceModel from '../../models/ai_assistance/ai_assistance.js';
|
|
48
48
|
import * as Badges from '../../models/badges/badges.js';
|
|
49
|
-
import * as CrUXManager from '../../models/crux-manager/crux-manager.js';
|
|
50
49
|
import * as Trace from '../../models/trace/trace.js';
|
|
51
50
|
import * as SourceMapsResolver from '../../models/trace_source_maps_resolver/trace_source_maps_resolver.js';
|
|
52
51
|
import * as Workspace from '../../models/workspace/workspace.js';
|
|
@@ -60,7 +59,6 @@ import * as SettingsUI from '../../ui/legacy/components/settings_ui/settings_ui.
|
|
|
60
59
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
61
60
|
import * as ThemeSupport from '../../ui/legacy/theme_support/theme_support.js';
|
|
62
61
|
import * as VisualLogging from '../../ui/visual_logging/visual_logging.js';
|
|
63
|
-
import * as PanelsCommon from '../common/common.js';
|
|
64
62
|
import * as MobileThrottling from '../mobile_throttling/mobile_throttling.js';
|
|
65
63
|
|
|
66
64
|
import {ActiveFilters} from './ActiveFilters.js';
|
|
@@ -163,10 +161,6 @@ const UIStrings = {
|
|
|
163
161
|
* @description Text in Timeline Panel of the Performance panel
|
|
164
162
|
*/
|
|
165
163
|
cpu: 'CPU:',
|
|
166
|
-
/**
|
|
167
|
-
* @description Title of the 'Network conditions' tool in the bottom drawer
|
|
168
|
-
*/
|
|
169
|
-
networkConditions: 'Network conditions',
|
|
170
164
|
/**
|
|
171
165
|
* @description Text in Timeline Panel of the Performance panel
|
|
172
166
|
*/
|
|
@@ -439,8 +433,7 @@ export class TimelinePanel extends Common.ObjectWrapper.eventMixin<EventTypes, t
|
|
|
439
433
|
private loader?: TimelineLoader;
|
|
440
434
|
private showScreenshotsToolbarCheckbox?: UI.Toolbar.ToolbarItem;
|
|
441
435
|
private showMemoryToolbarCheckbox?: UI.Toolbar.ToolbarItem;
|
|
442
|
-
private
|
|
443
|
-
private cpuThrottlingSelect?: MobileThrottling.ThrottlingManager.CPUThrottlingSelectorWrapper;
|
|
436
|
+
private cpuThrottlingSelect?: MobileThrottling.CPUThrottlingSelector.CPUThrottlingSelector;
|
|
444
437
|
private fileSelectorElement?: HTMLInputElement;
|
|
445
438
|
private selection: TimelineSelection|null = null;
|
|
446
439
|
private traceLoadStart!: Trace.Types.Timing.Milli|null;
|
|
@@ -553,6 +546,9 @@ export class TimelinePanel extends Common.ObjectWrapper.eventMixin<EventTypes, t
|
|
|
553
546
|
|
|
554
547
|
this.#thirdPartyTracksSetting = TimelinePanel.extensionDataVisibilitySetting();
|
|
555
548
|
this.#thirdPartyTracksSetting.addChangeListener(this.#extensionDataVisibilityChanged, this);
|
|
549
|
+
Common.Settings.Settings.instance()
|
|
550
|
+
.moduleSetting('timeline-enable-soft-navigations')
|
|
551
|
+
.addChangeListener(this.#onModelConfigurationChanged, this);
|
|
556
552
|
|
|
557
553
|
const timelineToolbarContainer = this.element.createChild('div', 'timeline-toolbar-container');
|
|
558
554
|
timelineToolbarContainer.setAttribute('jslog', `${VisualLogging.toolbar()}`);
|
|
@@ -763,12 +759,21 @@ export class TimelinePanel extends Common.ObjectWrapper.eventMixin<EventTypes, t
|
|
|
763
759
|
timelinePanelInstance = undefined;
|
|
764
760
|
}
|
|
765
761
|
|
|
766
|
-
#
|
|
762
|
+
#getModelConfig(): Trace.Types.Configuration.Configuration {
|
|
767
763
|
const config = Trace.Types.Configuration.defaults();
|
|
768
764
|
config.showAllEvents = Common.Settings.Settings.instance().moduleSetting('timeline-show-all-events').get();
|
|
769
765
|
config.debugMode = Common.Settings.Settings.instance().moduleSetting('timeline-debug-mode').get() as boolean;
|
|
766
|
+
config.enableSoftNavigation =
|
|
767
|
+
Common.Settings.Settings.instance().moduleSetting('timeline-enable-soft-navigations').get() as boolean;
|
|
768
|
+
return config;
|
|
769
|
+
}
|
|
770
770
|
|
|
771
|
-
|
|
771
|
+
#onModelConfigurationChanged(): void {
|
|
772
|
+
this.#traceEngineModel.updateConfiguration(this.#getModelConfig());
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
#instantiateNewModel(): Trace.TraceModel.Model {
|
|
776
|
+
const traceEngineModel = Trace.TraceModel.Model.createWithAllHandlers(this.#getModelConfig());
|
|
772
777
|
|
|
773
778
|
traceEngineModel.addEventListener(Trace.TraceModel.ModelUpdateEvent.eventName, e => {
|
|
774
779
|
const updateEvent = e as Trace.TraceModel.ModelUpdateEvent;
|
|
@@ -804,26 +809,12 @@ export class TimelinePanel extends Common.ObjectWrapper.eventMixin<EventTypes, t
|
|
|
804
809
|
// Record the performance tool load time.
|
|
805
810
|
UI.UIUserMetrics.UIUserMetrics.instance().panelLoaded('timeline', 'DevTools.Launch.Timeline');
|
|
806
811
|
|
|
807
|
-
const cruxManager = CrUXManager.CrUXManager.instance();
|
|
808
|
-
cruxManager.addEventListener(CrUXManager.Events.FIELD_DATA_CHANGED, this.#onFieldDataChanged, this);
|
|
809
|
-
this.#onFieldDataChanged();
|
|
810
812
|
}
|
|
811
813
|
|
|
812
814
|
override willHide(): void {
|
|
813
815
|
super.willHide();
|
|
814
816
|
UI.Context.Context.instance().setFlavor(TimelinePanel, null);
|
|
815
817
|
this.#historyManager.cancelIfShowing();
|
|
816
|
-
|
|
817
|
-
const cruxManager = CrUXManager.CrUXManager.instance();
|
|
818
|
-
cruxManager.removeEventListener(CrUXManager.Events.FIELD_DATA_CHANGED, this.#onFieldDataChanged, this);
|
|
819
|
-
}
|
|
820
|
-
|
|
821
|
-
#onFieldDataChanged(): void {
|
|
822
|
-
const recs = PanelsCommon.ThrottlingUtils.getThrottlingRecommendations();
|
|
823
|
-
this.cpuThrottlingSelect?.updateRecommendedOption(recs.cpuOption);
|
|
824
|
-
if (this.networkThrottlingSelect) {
|
|
825
|
-
this.networkThrottlingSelect.recommendedConditions = recs.networkConditions;
|
|
826
|
-
}
|
|
827
818
|
}
|
|
828
819
|
|
|
829
820
|
loadFromEvents(events: Trace.Types.Events.Event[]): void {
|
|
@@ -1331,8 +1322,8 @@ export class TimelinePanel extends Common.ObjectWrapper.eventMixin<EventTypes, t
|
|
|
1331
1322
|
|
|
1332
1323
|
const cpuThrottlingPane = this.settingsPane.createChild('div');
|
|
1333
1324
|
cpuThrottlingPane.append(i18nString(UIStrings.cpu));
|
|
1334
|
-
this.cpuThrottlingSelect =
|
|
1335
|
-
|
|
1325
|
+
this.cpuThrottlingSelect =
|
|
1326
|
+
MobileThrottling.CPUThrottlingSelector.CPUThrottlingSelector.createForGlobalConditions(cpuThrottlingPane);
|
|
1336
1327
|
|
|
1337
1328
|
this.settingsPane.append(SettingsUI.SettingsUI.createSettingCheckbox(
|
|
1338
1329
|
this.captureSelectorStatsSetting.title(), this.captureSelectorStatsSetting,
|
|
@@ -1340,7 +1331,10 @@ export class TimelinePanel extends Common.ObjectWrapper.eventMixin<EventTypes, t
|
|
|
1340
1331
|
|
|
1341
1332
|
const networkThrottlingPane = this.settingsPane.createChild('div');
|
|
1342
1333
|
networkThrottlingPane.append(i18nString(UIStrings.network));
|
|
1343
|
-
|
|
1334
|
+
MobileThrottling.NetworkThrottlingSelector.NetworkThrottlingSelect.createForGlobalConditions(
|
|
1335
|
+
networkThrottlingPane,
|
|
1336
|
+
i18nString(UIStrings.network),
|
|
1337
|
+
);
|
|
1344
1338
|
|
|
1345
1339
|
this.settingsPane.append(SettingsUI.SettingsUI.createSettingCheckbox(
|
|
1346
1340
|
this.captureLayersAndPicturesSetting.title(), this.captureLayersAndPicturesSetting,
|
|
@@ -1391,14 +1385,6 @@ export class TimelinePanel extends Common.ObjectWrapper.eventMixin<EventTypes, t
|
|
|
1391
1385
|
this.updateSettingsPaneVisibility();
|
|
1392
1386
|
}
|
|
1393
1387
|
|
|
1394
|
-
private createNetworkConditionsSelectToolbarItem(): UI.Toolbar.ToolbarItem {
|
|
1395
|
-
const toolbarItem = new UI.Toolbar.ToolbarItem(document.createElement('div'));
|
|
1396
|
-
this.networkThrottlingSelect =
|
|
1397
|
-
MobileThrottling.NetworkThrottlingSelector.NetworkThrottlingSelect.createForGlobalConditions(
|
|
1398
|
-
toolbarItem.element, i18nString(UIStrings.networkConditions));
|
|
1399
|
-
return toolbarItem;
|
|
1400
|
-
}
|
|
1401
|
-
|
|
1402
1388
|
private prepareToLoadTimeline(): void {
|
|
1403
1389
|
console.assert(this.state === State.IDLE);
|
|
1404
1390
|
this.setState(State.LOADING);
|
|
@@ -2906,6 +2892,7 @@ export class TimelinePanel extends Common.ObjectWrapper.eventMixin<EventTypes, t
|
|
|
2906
2892
|
};
|
|
2907
2893
|
}
|
|
2908
2894
|
|
|
2895
|
+
this.#traceEngineModel.updateConfiguration(this.#getModelConfig());
|
|
2909
2896
|
await this.#traceEngineModel.parse(collectedEvents, config);
|
|
2910
2897
|
|
|
2911
2898
|
// Store all source maps on the trace metadata.
|
|
@@ -14,6 +14,7 @@ import * as VisualLogging from '../../../ui/visual_logging/visual_logging.js';
|
|
|
14
14
|
import cwvMetricsStyles from './cwvMetrics.css.js';
|
|
15
15
|
import {md} from './insights/Helpers.js';
|
|
16
16
|
import * as Insights from './insights/insights.js';
|
|
17
|
+
import metricValueStyles from './metricValueStyles.css.js';
|
|
17
18
|
import {isFieldWorseThanLocal, NumberWithUnit} from './Utils.js';
|
|
18
19
|
|
|
19
20
|
const {html} = Lit.StaticHtml;
|
|
@@ -204,6 +205,16 @@ const CWV_METRICS_VIEW: MetricsView = (input, _output, target) => {
|
|
|
204
205
|
const inpEl = renderMetricValue('INP', local?.inp?.value ?? null, local?.inp?.event ?? null);
|
|
205
206
|
const clsEl = renderMetricValue('CLS', local?.cls?.value ?? null, local?.cls?.worstClusterEvent ?? null);
|
|
206
207
|
|
|
208
|
+
const navigation = parsedTrace?.insights?.get(insightSetKey ?? '')?.navigation;
|
|
209
|
+
const isSoftNav = navigation && Trace.Types.Events.isSoftNavigationStart(navigation);
|
|
210
|
+
|
|
211
|
+
const softNavBadgeTemplate = isSoftNav ? html`
|
|
212
|
+
<div class="metrics-row soft-nav-badge-row">
|
|
213
|
+
<span class="badge">SOFT NAV</span>
|
|
214
|
+
</div>
|
|
215
|
+
` :
|
|
216
|
+
Lit.nothing;
|
|
217
|
+
|
|
207
218
|
const localMetricsTemplateResult = html`
|
|
208
219
|
<div class="metrics-row">
|
|
209
220
|
<span>${lcpEl}</span>
|
|
@@ -211,6 +222,7 @@ const CWV_METRICS_VIEW: MetricsView = (input, _output, target) => {
|
|
|
211
222
|
<span>${clsEl}</span>
|
|
212
223
|
<span class="row-label">Local</span>
|
|
213
224
|
</div>
|
|
225
|
+
${!field ? softNavBadgeTemplate : Lit.nothing}
|
|
214
226
|
${!field && input.skipBottomBorder ? Lit.nothing : html`<span class="row-border"></span>`}
|
|
215
227
|
`;
|
|
216
228
|
|
|
@@ -235,6 +247,7 @@ const CWV_METRICS_VIEW: MetricsView = (input, _output, target) => {
|
|
|
235
247
|
<span>${clsEl}</span>
|
|
236
248
|
<span class="row-label">${i18nString(UIStrings.fieldScoreLabel, {PH1: scope})}</span>
|
|
237
249
|
</div>
|
|
250
|
+
${softNavBadgeTemplate}
|
|
238
251
|
${input.skipBottomBorder ? Lit.nothing : html`<span class="row-border"></span>`}
|
|
239
252
|
`;
|
|
240
253
|
// clang-format on
|
|
@@ -271,13 +284,13 @@ const CWV_METRICS_VIEW: MetricsView = (input, _output, target) => {
|
|
|
271
284
|
${fieldMetricsTemplateResult}
|
|
272
285
|
</div>`;
|
|
273
286
|
|
|
274
|
-
Lit.render(
|
|
275
|
-
html`
|
|
287
|
+
Lit.render(html`
|
|
276
288
|
<style>${cwvMetricsStyles}</style>
|
|
289
|
+
<style>${metricValueStyles}</style>
|
|
277
290
|
${metricsTableEl}
|
|
278
291
|
${fieldIsDifferentEl}
|
|
279
292
|
`,
|
|
280
|
-
|
|
293
|
+
target);
|
|
281
294
|
};
|
|
282
295
|
|
|
283
296
|
export interface CWVMetricsData {
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
import '../../../ui/components/settings/settings.js';
|
|
6
6
|
import '../../../ui/kit/kit.js';
|
|
7
7
|
import './FieldSettingsDialog.js';
|
|
8
|
-
import './NetworkThrottlingSelector.js';
|
|
9
8
|
import '../../../ui/components/menus/menus.js';
|
|
10
9
|
import './MetricCard.js';
|
|
11
10
|
|
|
@@ -27,8 +26,8 @@ import * as UI from '../../../ui/legacy/legacy.js';
|
|
|
27
26
|
import * as Lit from '../../../ui/lit/lit.js';
|
|
28
27
|
import * as VisualLogging from '../../../ui/visual_logging/visual_logging.js';
|
|
29
28
|
import * as PanelsCommon from '../../common/common.js';
|
|
29
|
+
import * as MobileThrottling from '../../mobile_throttling/mobile_throttling.js';
|
|
30
30
|
|
|
31
|
-
import {CPUThrottlingSelector} from './CPUThrottlingSelector.js';
|
|
32
31
|
import {md} from './insights/Helpers.js';
|
|
33
32
|
import liveMetricsViewStyles from './liveMetricsView.css.js';
|
|
34
33
|
import type {MetricCardData} from './MetricCard.js';
|
|
@@ -186,6 +185,10 @@ const UIStrings = {
|
|
|
186
185
|
* @description Text label for a checkbox that controls if the network cache is disabled.
|
|
187
186
|
*/
|
|
188
187
|
disableNetworkCache: 'Disable network cache',
|
|
188
|
+
/**
|
|
189
|
+
* @description Text label for a selection box showing which CPU throttling option is applied.
|
|
190
|
+
*/
|
|
191
|
+
cpuThrottling: 'CPU:',
|
|
189
192
|
/**
|
|
190
193
|
* @description Text label for a link to the Largest Contentful Paint (LCP) related page element. This element represents the largest content on the page. "LCP" should not be translated.
|
|
191
194
|
*/
|
|
@@ -300,6 +303,14 @@ const UIStrings = {
|
|
|
300
303
|
* @description Description of a view that can be used to analyze the performance of a Node process as a timeline. "Node" is a product name and should not be translated.
|
|
301
304
|
*/
|
|
302
305
|
nodeClickToRecord: 'Record a performance timeline of the connected Node process.',
|
|
306
|
+
/**
|
|
307
|
+
* @description Text in Timeline Panel of the Performance panel for network throttling
|
|
308
|
+
*/
|
|
309
|
+
networkThrottling: 'Network:',
|
|
310
|
+
/**
|
|
311
|
+
* @description Text for why user should change a throttling setting.
|
|
312
|
+
*/
|
|
313
|
+
recommendedThrottlingReason: 'Consider changing setting to simulate real user environments',
|
|
303
314
|
} as const;
|
|
304
315
|
|
|
305
316
|
const str_ = i18n.i18n.registerUIStrings('panels/timeline/components/LiveMetricsView.ts', UIStrings);
|
|
@@ -619,8 +630,6 @@ function renderRecordingSettings(input: ViewInput): Lit.LitTemplate {
|
|
|
619
630
|
const deviceRec = getDeviceRec(input.cruxManager) || i18nString(UIStrings.notEnoughData);
|
|
620
631
|
const networkRec = getNetworkRecTitle(input.cruxManager) || i18nString(UIStrings.notEnoughData);
|
|
621
632
|
|
|
622
|
-
const recs = PanelsCommon.ThrottlingUtils.getThrottlingRecommendations();
|
|
623
|
-
|
|
624
633
|
// clang-format off
|
|
625
634
|
return html`
|
|
626
635
|
<h3 class="card-title">${i18nString(UIStrings.environmentSettings)}</h3>
|
|
@@ -632,10 +641,22 @@ function renderRecordingSettings(input: ViewInput): Lit.LitTemplate {
|
|
|
632
641
|
</ul>
|
|
633
642
|
` : nothing}
|
|
634
643
|
<div class="environment-option">
|
|
635
|
-
|
|
644
|
+
<label class="environment-option-label">
|
|
645
|
+
${i18nString(UIStrings.cpuThrottling)}
|
|
646
|
+
<select ${widget(MobileThrottling.CPUThrottlingSelector.CPUThrottlingSelector)}></select>
|
|
647
|
+
</label>
|
|
648
|
+
<devtools-icon title=${i18nString(UIStrings.recommendedThrottlingReason)} name="info"></devtools-icon>
|
|
636
649
|
</div>
|
|
637
650
|
<div class="environment-option">
|
|
638
|
-
<
|
|
651
|
+
<label class="environment-option-label">
|
|
652
|
+
${i18nString(UIStrings.networkThrottling)}
|
|
653
|
+
<select
|
|
654
|
+
${widget(MobileThrottling.NetworkThrottlingSelector.NetworkThrottlingSelect, {
|
|
655
|
+
bindToGlobalConditions: true,
|
|
656
|
+
})}
|
|
657
|
+
></select>
|
|
658
|
+
</label>
|
|
659
|
+
<devtools-icon title=${i18nString(UIStrings.recommendedThrottlingReason)} name="info"></devtools-icon>
|
|
639
660
|
</div>
|
|
640
661
|
<div class="environment-option">
|
|
641
662
|
<setting-checkbox
|
|
@@ -20,7 +20,7 @@ export interface NetworkDataProvider extends PerfUI.FlameChart.FlameChartDataPro
|
|
|
20
20
|
setModel(parsedTrace: Trace.TraceModel.ParsedTrace, entityMapper: Trace.EntityMapper.EntityMapper): void;
|
|
21
21
|
setWindowTimes(min: number, max: number): void;
|
|
22
22
|
timelineData(): PerfUI.FlameChart.FlameChartTimelineData;
|
|
23
|
-
preparePopoverElement(index: number):
|
|
23
|
+
preparePopoverElement(index: number): Lit.TemplateResult|null;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
export interface NetworkTrackWidgetData {
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
import * as Breadcrumbs from './Breadcrumbs.js';
|
|
6
6
|
import * as BreadcrumbsUI from './BreadcrumbsUI.js';
|
|
7
|
-
import * as CPUThrottlingSelector from './CPUThrottlingSelector.js';
|
|
8
7
|
import * as CWVMetrics from './CWVMetrics.js';
|
|
9
8
|
import * as DetailsView from './DetailsView.js';
|
|
10
9
|
import * as ExportTraceOptions from './ExportTraceOptions.js';
|
|
@@ -16,7 +15,6 @@ import * as LiveMetricsView from './LiveMetricsView.js';
|
|
|
16
15
|
import * as MetricCard from './MetricCard.js';
|
|
17
16
|
import * as NetworkRequestDetails from './NetworkRequestDetails.js';
|
|
18
17
|
import * as NetworkRequestTooltip from './NetworkRequestTooltip.js';
|
|
19
|
-
import * as NetworkThrottlingSelector from './NetworkThrottlingSelector.js';
|
|
20
18
|
import * as NetworkTrackWidget from './NetworkTrackWidget.js';
|
|
21
19
|
import * as OriginMap from './OriginMap.js';
|
|
22
20
|
import * as RelatedInsightChips from './RelatedInsightChips.js';
|
|
@@ -31,7 +29,6 @@ import * as Utils from './Utils.js';
|
|
|
31
29
|
export {
|
|
32
30
|
Breadcrumbs,
|
|
33
31
|
BreadcrumbsUI,
|
|
34
|
-
CPUThrottlingSelector,
|
|
35
32
|
CWVMetrics,
|
|
36
33
|
DetailsView,
|
|
37
34
|
ExportTraceOptions,
|
|
@@ -43,7 +40,6 @@ export {
|
|
|
43
40
|
MetricCard,
|
|
44
41
|
NetworkRequestDetails,
|
|
45
42
|
NetworkRequestTooltip,
|
|
46
|
-
NetworkThrottlingSelector,
|
|
47
43
|
NetworkTrackWidget,
|
|
48
44
|
OriginMap,
|
|
49
45
|
RelatedInsightChips,
|
|
@@ -313,6 +313,13 @@ devtools-link {
|
|
|
313
313
|
display: flex;
|
|
314
314
|
align-items: center;
|
|
315
315
|
margin-top: 8px;
|
|
316
|
+
gap: var(--sys-size-2);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.environment-option-label {
|
|
320
|
+
display: flex;
|
|
321
|
+
align-items: center;
|
|
322
|
+
gap: var(--sys-size-2);
|
|
316
323
|
}
|
|
317
324
|
|
|
318
325
|
.environment-recs-list {
|
|
@@ -405,20 +412,3 @@ devtools-link {
|
|
|
405
412
|
.section-header .section-title {
|
|
406
413
|
margin-bottom: 0;
|
|
407
414
|
}
|
|
408
|
-
|
|
409
|
-
.section-header .badge {
|
|
410
|
-
display: inline-flex;
|
|
411
|
-
align-items: center;
|
|
412
|
-
width: fit-content;
|
|
413
|
-
height: var(--sys-size-8);
|
|
414
|
-
line-height: var(--sys-size-8);
|
|
415
|
-
border-radius: var(--sys-shape-corner-extra-small);
|
|
416
|
-
padding: 0 var(--sys-size-3);
|
|
417
|
-
border: var(--sys-size-1) solid var(--sys-color-primary);
|
|
418
|
-
color: var(--sys-color-primary);
|
|
419
|
-
font-weight: var(--ref-typeface-weight-bold);
|
|
420
|
-
font-size: var(--sys-size-5);
|
|
421
|
-
text-align: center;
|
|
422
|
-
margin-top: var(--sys-size-5);
|
|
423
|
-
margin-bottom: var(--sys-size-5);
|
|
424
|
-
}
|
|
@@ -39,3 +39,20 @@
|
|
|
39
39
|
.metric-value.poor.dim {
|
|
40
40
|
color: var(--app-color-performance-bad-dim);
|
|
41
41
|
}
|
|
42
|
+
|
|
43
|
+
.badge {
|
|
44
|
+
display: inline-flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
justify-content: center;
|
|
47
|
+
width: fit-content;
|
|
48
|
+
height: var(--sys-size-8);
|
|
49
|
+
border-radius: var(--sys-shape-corner-extra-small);
|
|
50
|
+
padding: 0 var(--sys-size-3);
|
|
51
|
+
border: var(--sys-size-1) solid var(--sys-color-primary);
|
|
52
|
+
color: var(--sys-color-primary);
|
|
53
|
+
font-weight: var(--ref-typeface-weight-bold);
|
|
54
|
+
font-size: var(--sys-size-5);
|
|
55
|
+
text-align: center;
|
|
56
|
+
margin-top: var(--sys-size-5);
|
|
57
|
+
margin-bottom: var(--sys-size-5);
|
|
58
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Name: Dependencies sourced from the upstream `chromium` repository
|
|
2
2
|
URL: Internal
|
|
3
3
|
Version: N/A
|
|
4
|
-
Revision:
|
|
4
|
+
Revision: 1b1cf0f7236a27d60a4a348433bdd531893796c7
|
|
5
5
|
Update Mechanism: Manual (https://crbug.com/428069060)
|
|
6
6
|
License: BSD-3-Clause
|
|
7
7
|
License File: LICENSE
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Name: Puppeteer Core
|
|
2
2
|
Short Name: Puppeteer Core
|
|
3
3
|
URL: https://github.com/puppeteer/puppeteer/tree/main/packages/puppeteer-core
|
|
4
|
-
Version: 25.
|
|
4
|
+
Version: 25.5.0
|
|
5
5
|
License: Apache-2.0
|
|
6
6
|
License File: LICENSE
|
|
7
|
-
Revision:
|
|
7
|
+
Revision: f8d63c73c3d7c21a8b0f421411e7df8386195436
|
|
8
8
|
Security Critical: no
|
|
9
9
|
Shipped: yes
|
|
10
10
|
Update Mechanism: Autoroll
|
|
@@ -1275,14 +1275,6 @@ export declare const /**
|
|
|
1275
1275
|
*/
|
|
1276
1276
|
export declare class Connection extends EventEmitter<CDPSessionEvents> {
|
|
1277
1277
|
|
|
1278
|
-
constructor(
|
|
1279
|
-
url: string,
|
|
1280
|
-
transport: ConnectionTransport,
|
|
1281
|
-
delay?: number,
|
|
1282
|
-
timeout?: number,
|
|
1283
|
-
rawErrors?: boolean,
|
|
1284
|
-
idGenerator?: () => number,
|
|
1285
|
-
);
|
|
1286
1278
|
static fromSession(session: CDPSession): Connection | undefined;
|
|
1287
1279
|
get timeout(): number;
|
|
1288
1280
|
/**
|
|
@@ -5425,6 +5417,18 @@ export declare interface LocatorScrollOptions extends ActionOptions {
|
|
|
5425
5417
|
scrollLeft?: number;
|
|
5426
5418
|
}
|
|
5427
5419
|
|
|
5420
|
+
/**
|
|
5421
|
+
* @public
|
|
5422
|
+
* @experimental
|
|
5423
|
+
*/
|
|
5424
|
+
export declare type Logger = (prefix: string) => LoggerFunction | undefined;
|
|
5425
|
+
|
|
5426
|
+
/**
|
|
5427
|
+
* @public
|
|
5428
|
+
* @experimental
|
|
5429
|
+
*/
|
|
5430
|
+
export declare type LoggerFunction = (...args: unknown[]) => void;
|
|
5431
|
+
|
|
5428
5432
|
/**
|
|
5429
5433
|
* @public
|
|
5430
5434
|
*/
|
|
@@ -5466,18 +5470,58 @@ export declare interface MediaFeature {
|
|
|
5466
5470
|
* @public
|
|
5467
5471
|
*/
|
|
5468
5472
|
export declare interface Metrics {
|
|
5473
|
+
/**
|
|
5474
|
+
* The timestamp when the metrics sample was taken, in monotonic time
|
|
5475
|
+
* (seconds since an arbitrary point in the past).
|
|
5476
|
+
*/
|
|
5469
5477
|
Timestamp?: number;
|
|
5478
|
+
/**
|
|
5479
|
+
* Number of documents in the page.
|
|
5480
|
+
*/
|
|
5470
5481
|
Documents?: number;
|
|
5482
|
+
/**
|
|
5483
|
+
* Number of frames in the page.
|
|
5484
|
+
*/
|
|
5471
5485
|
Frames?: number;
|
|
5486
|
+
/**
|
|
5487
|
+
* Number of events in the page.
|
|
5488
|
+
*/
|
|
5472
5489
|
JSEventListeners?: number;
|
|
5490
|
+
/**
|
|
5491
|
+
* Number of DOM nodes in the page.
|
|
5492
|
+
*/
|
|
5473
5493
|
Nodes?: number;
|
|
5494
|
+
/**
|
|
5495
|
+
* Total number of full or partial page layouts.
|
|
5496
|
+
*/
|
|
5474
5497
|
LayoutCount?: number;
|
|
5498
|
+
/**
|
|
5499
|
+
* Total number of page style recalculations.
|
|
5500
|
+
*/
|
|
5475
5501
|
RecalcStyleCount?: number;
|
|
5502
|
+
/**
|
|
5503
|
+
* Combined duration of all page layouts, in seconds.
|
|
5504
|
+
*/
|
|
5476
5505
|
LayoutDuration?: number;
|
|
5506
|
+
/**
|
|
5507
|
+
* Combined duration of all page style recalculations, in seconds.
|
|
5508
|
+
*/
|
|
5477
5509
|
RecalcStyleDuration?: number;
|
|
5510
|
+
/**
|
|
5511
|
+
* Combined duration of JavaScript execution, in seconds.
|
|
5512
|
+
*/
|
|
5478
5513
|
ScriptDuration?: number;
|
|
5514
|
+
/**
|
|
5515
|
+
* Combined duration of all tasks performed by the browser, in seconds.
|
|
5516
|
+
*/
|
|
5479
5517
|
TaskDuration?: number;
|
|
5518
|
+
/**
|
|
5519
|
+
* Used JavaScript heap size, in bytes.
|
|
5520
|
+
*/
|
|
5480
5521
|
JSHeapUsedSize?: number;
|
|
5522
|
+
/**
|
|
5523
|
+
* Total JavaScript heap size, in bytes.
|
|
5524
|
+
*/
|
|
5481
5525
|
JSHeapTotalSize?: number;
|
|
5482
5526
|
}
|
|
5483
5527
|
|
|
@@ -6642,7 +6686,8 @@ export declare abstract class Page extends EventEmitter<PageEvents> {
|
|
|
6642
6686
|
*
|
|
6643
6687
|
* @returns
|
|
6644
6688
|
*
|
|
6645
|
-
* - `Timestamp` : The timestamp when the metrics sample was taken
|
|
6689
|
+
* - `Timestamp` : The timestamp when the metrics sample was taken, in
|
|
6690
|
+
* monotonic time (seconds).
|
|
6646
6691
|
*
|
|
6647
6692
|
* - `Documents` : Number of documents in the page.
|
|
6648
6693
|
*
|
|
@@ -6656,18 +6701,20 @@ export declare abstract class Page extends EventEmitter<PageEvents> {
|
|
|
6656
6701
|
*
|
|
6657
6702
|
* - `RecalcStyleCount` : Total number of page style recalculations.
|
|
6658
6703
|
*
|
|
6659
|
-
* - `LayoutDuration` : Combined durations of all page layouts.
|
|
6704
|
+
* - `LayoutDuration` : Combined durations of all page layouts, in seconds.
|
|
6660
6705
|
*
|
|
6661
6706
|
* - `RecalcStyleDuration` : Combined duration of all page style
|
|
6662
|
-
* recalculations.
|
|
6707
|
+
* recalculations, in seconds.
|
|
6663
6708
|
*
|
|
6664
|
-
* - `ScriptDuration` : Combined duration of JavaScript execution
|
|
6709
|
+
* - `ScriptDuration` : Combined duration of JavaScript execution, in
|
|
6710
|
+
* seconds.
|
|
6665
6711
|
*
|
|
6666
|
-
* - `TaskDuration` : Combined duration of all tasks performed by the
|
|
6712
|
+
* - `TaskDuration` : Combined duration of all tasks performed by the
|
|
6713
|
+
* browser, in seconds.
|
|
6667
6714
|
*
|
|
6668
|
-
* - `JSHeapUsedSize` : Used JavaScript heap size.
|
|
6715
|
+
* - `JSHeapUsedSize` : Used JavaScript heap size, in bytes.
|
|
6669
6716
|
*
|
|
6670
|
-
* - `JSHeapTotalSize` : Total JavaScript heap size.
|
|
6717
|
+
* - `JSHeapTotalSize` : Total JavaScript heap size, in bytes.
|
|
6671
6718
|
*
|
|
6672
6719
|
* @remarks
|
|
6673
6720
|
* All timestamps are in monotonic time: monotonically increasing time
|
|
@@ -8432,6 +8479,8 @@ declare namespace Puppeteer_2 {
|
|
|
8432
8479
|
CookieData,
|
|
8433
8480
|
DeleteCookiesRequest,
|
|
8434
8481
|
CustomQueryHandler,
|
|
8482
|
+
LoggerFunction,
|
|
8483
|
+
Logger,
|
|
8435
8484
|
Device,
|
|
8436
8485
|
EventType,
|
|
8437
8486
|
Handler,
|