@paulirish/trace_engine 0.0.65 → 0.0.67-beta.0
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/README.md +19 -17
- package/analyze-trace.mjs +6 -144
- package/core/common/Base64.d.ts +12 -0
- package/core/common/CharacterIdMap.d.ts +5 -0
- package/core/common/Color.d.ts +357 -0
- package/core/common/ColorConverter.d.ts +26 -0
- package/core/common/ColorUtils.d.ts +45 -0
- package/core/common/Console.d.ts +54 -0
- package/core/common/Debouncer.d.ts +8 -0
- package/core/common/EventTarget.d.ts +22 -0
- package/core/common/Gzip.d.ts +23 -0
- package/core/common/JavaScriptMetaData.d.ts +20 -0
- package/core/common/Lazy.d.ts +4 -0
- package/core/common/MapWithDefault.d.ts +9 -0
- package/core/common/Mutex.d.ts +13 -0
- package/core/common/Object.d.ts +20 -0
- package/core/common/ParsedURL.d.ts +87 -0
- package/core/common/Progress.d.ts +47 -0
- package/core/common/ResolverBase.d.ts +29 -0
- package/core/common/ResourceType.d.ts +52 -0
- package/core/common/ReturnToPanel.d.ts +10 -0
- package/core/common/Revealer.d.ts +66 -0
- package/core/common/Runnable.d.ts +14 -0
- package/core/common/SegmentedRange.d.ts +14 -0
- package/core/common/SettingRegistration.d.ts +136 -0
- package/core/common/Settings.d.ts +226 -0
- package/core/common/SimpleHistoryManager.d.ts +20 -0
- package/core/common/Srcset.d.ts +16 -0
- package/core/common/StringOutputStream.d.ts +10 -0
- package/core/common/TextDictionary.d.ts +11 -0
- package/core/common/Throttler.d.ts +12 -0
- package/core/common/Trie.d.ts +24 -0
- package/core/common/VersionController.d.ts +85 -0
- package/core/common/common.d.ts +33 -1
- package/core/host/AidaClient.d.ts +73 -0
- package/core/host/AidaClientTypes.d.ts +355 -0
- package/core/host/AidaGcaTranslation.d.ts +10 -0
- package/core/host/DispatchHttpRequestClient.d.ts +14 -0
- package/core/host/GcaClient.d.ts +14 -0
- package/core/host/GcaTypes.d.ts +411 -0
- package/core/host/GdpClient.d.ts +84 -0
- package/core/host/InspectorFrontendHost.d.ts +29 -0
- package/core/host/InspectorFrontendHostAPI.d.ts +425 -0
- package/core/host/InspectorFrontendHostStub.d.ts +151 -0
- package/core/host/Platform.d.ts +11 -0
- package/core/host/ResourceLoader.d.ts +15 -0
- package/core/host/UserMetrics.d.ts +116 -0
- package/core/host/UserMetricsEnums.d.ts +883 -0
- package/core/host/host.d.ts +13 -1
- package/core/i18n/ByteUtilities.d.ts +11 -0
- package/core/i18n/DevToolsLocale.d.ts +41 -0
- package/core/i18n/NumberFormatter.d.ts +11 -0
- package/core/i18n/i18n.d.ts +10 -0
- package/core/i18n/i18nImpl.d.ts +64 -0
- package/core/i18n/i18nTypes.d.ts +5 -0
- package/core/i18n/locales.d.ts +15 -0
- package/core/i18n/time-utilities.d.ts +16 -0
- package/core/platform/ArrayUtilities.d.ts +5 -0
- package/core/platform/HostRuntime.d.ts +1 -0
- package/core/platform/Size.d.ts +12 -0
- package/core/platform/StringUtilities.d.ts +28 -0
- package/core/platform/TypescriptUtilities.d.ts +0 -6
- package/core/platform/api/HostRuntime.d.ts +25 -0
- package/core/platform/platform.d.ts +2 -1
- package/core/protocol_client/CDPConnection.d.ts +77 -0
- package/core/protocol_client/ConnectionTransport.d.ts +9 -0
- package/core/protocol_client/DevToolsCDPConnection.d.ts +16 -0
- package/core/protocol_client/InspectorBackend.d.ts +223 -0
- package/core/protocol_client/protocol_client.d.ts +5 -0
- package/core/root/DevToolsContext.d.ts +34 -0
- package/core/root/ExperimentNames.d.ts +8 -0
- package/core/root/Runtime.d.ts +351 -0
- package/core/root/root.d.ts +4 -1
- package/core/sdk/AccessibilityModel.d.ts +76 -0
- package/core/sdk/AnimationModel.d.ts +161 -0
- package/core/sdk/AutofillModel.d.ts +23 -0
- package/core/sdk/CPUProfilerModel.d.ts +46 -0
- package/core/sdk/CPUThrottlingManager.d.ts +47 -0
- package/core/sdk/CSSContainerQuery.d.ts +42 -0
- package/core/sdk/CSSFontFace.d.ts +10 -0
- package/core/sdk/CSSLayer.d.ts +9 -0
- package/core/sdk/CSSLocation.d.ts +14 -0
- package/core/sdk/CSSMatchedStyles.d.ts +138 -0
- package/core/sdk/CSSMedia.d.ts +36 -0
- package/core/sdk/CSSMetadata.d.ts +87 -0
- package/core/sdk/CSSModel.d.ts +180 -0
- package/core/sdk/CSSNavigation.d.ts +10 -0
- package/core/sdk/CSSProperty.d.ts +53 -0
- package/core/sdk/CSSPropertyParser.d.ts +131 -0
- package/core/sdk/CSSPropertyParserMatchers.d.ts +442 -0
- package/core/sdk/CSSQuery.d.ts +22 -0
- package/core/sdk/CSSRule.d.ts +132 -0
- package/core/sdk/CSSScope.d.ts +9 -0
- package/core/sdk/CSSStartingStyle.d.ts +9 -0
- package/core/sdk/CSSStyleDeclaration.d.ts +38 -0
- package/core/sdk/CSSStyleSheetHeader.d.ts +53 -0
- package/core/sdk/CSSSupports.d.ts +10 -0
- package/core/sdk/CategorizedBreakpoint.d.ts +42 -0
- package/core/sdk/ChildTargetManager.d.ts +40 -0
- package/core/sdk/CompilerSourceMappingContentProvider.d.ts +12 -0
- package/core/sdk/Connections.d.ts +36 -0
- package/core/sdk/ConsoleModel.d.ts +127 -0
- package/core/sdk/ConsoleModelTypes.d.ts +6 -0
- package/core/sdk/Cookie.d.ts +68 -0
- package/core/sdk/CookieModel.d.ts +31 -0
- package/core/sdk/CookieParser.d.ts +14 -0
- package/core/sdk/CrashReportContextModel.d.ts +8 -0
- package/core/sdk/DOMDebuggerModel.d.ts +127 -0
- package/core/sdk/DOMModel.d.ts +436 -0
- package/core/sdk/DOMStorageModel.d.ts +79 -0
- package/core/sdk/DebuggerModel.d.ts +272 -0
- package/core/sdk/EmulationModel.d.ts +95 -0
- package/core/sdk/EnhancedTracesParser.d.ts +105 -0
- package/core/sdk/EventBreakpointsModel.d.ts +66 -0
- package/core/sdk/FrameAssociated.d.ts +6 -0
- package/core/sdk/FrameManager.d.ts +68 -0
- package/core/sdk/HeapProfilerModel.d.ts +75 -0
- package/core/sdk/HttpReasonPhraseStrings.d.ts +5 -0
- package/core/sdk/IOModel.d.ts +10 -0
- package/core/sdk/IsolateManager.d.ts +53 -0
- package/core/sdk/IssuesModel.d.ts +28 -0
- package/core/sdk/LayerTreeBase.d.ts +70 -0
- package/core/sdk/LogModel.d.ts +20 -0
- package/core/sdk/NetworkManager.d.ts +418 -0
- package/core/sdk/NetworkRequest.d.ts +469 -0
- package/core/sdk/NetworkRequestAccess.d.ts +91 -0
- package/core/sdk/OverlayColorGenerator.d.ts +14 -0
- package/core/sdk/OverlayModel.d.ts +186 -0
- package/core/sdk/OverlayPersistentHighlighter.d.ts +116 -0
- package/core/sdk/PageFunctions.d.ts +22 -0
- package/core/sdk/PageLoad.d.ts +14 -0
- package/core/sdk/PageResourceLoader.d.ts +111 -0
- package/core/sdk/PaintProfiler.d.ts +43 -0
- package/core/sdk/PerformanceMetricsModel.d.ts +12 -0
- package/core/sdk/PreloadingModel.d.ts +146 -0
- package/core/sdk/RehydratingConnection.d.ts +73 -0
- package/core/sdk/RehydratingObject.d.ts +59 -0
- package/core/sdk/RemoteObject.d.ts +210 -0
- package/core/sdk/Resource.d.ts +36 -0
- package/core/sdk/ResourceTreeModel.d.ts +278 -0
- package/core/sdk/RuntimeModel.d.ts +163 -0
- package/core/sdk/SDKModel.d.ts +30 -0
- package/core/sdk/SDKSettings.d.ts +53 -0
- package/core/sdk/ScopeTreeCache.d.ts +21 -0
- package/core/sdk/ScreenCaptureModel.d.ts +69 -0
- package/core/sdk/Script.d.ts +134 -0
- package/core/sdk/SecurityOrigin.d.ts +108 -0
- package/core/sdk/SecurityOriginManager.d.ts +23 -0
- package/core/sdk/ServerSentEvents.d.ts +18 -0
- package/core/sdk/ServerSentEventsProtocol.d.ts +18 -0
- package/core/sdk/ServerTiming.d.ts +24 -0
- package/core/sdk/ServiceWorkerCacheModel.d.ts +71 -0
- package/core/sdk/ServiceWorkerManager.d.ts +125 -0
- package/core/sdk/SourceMap.d.ts +197 -0
- package/core/sdk/SourceMapCache.d.ts +12 -0
- package/core/sdk/SourceMapFunctionRanges.d.ts +26 -0
- package/core/sdk/SourceMapManager.d.ts +46 -0
- package/core/sdk/SourceMapRangeMappings.d.ts +15 -0
- package/core/sdk/SourceMapScopeChainEntry.d.ts +23 -0
- package/core/sdk/SourceMapScopesInfo.d.ts +109 -0
- package/core/sdk/StorageBucketsModel.d.ts +48 -0
- package/core/sdk/StorageKeyManager.d.ts +38 -0
- package/core/sdk/Target.d.ts +79 -0
- package/core/sdk/TargetManager.d.ts +92 -0
- package/core/sdk/TraceObject.d.ts +43 -0
- package/core/sdk/WebAuthnModel.d.ts +29 -0
- package/core/sdk/sdk.d.ts +97 -1
- package/core/text_utils/CodeMirrorUtils.d.ts +3 -0
- package/core/text_utils/ContentData.d.ts +94 -0
- package/core/text_utils/ContentProvider.d.ts +42 -0
- package/core/text_utils/StaticContentProvider.d.ts +13 -0
- package/core/text_utils/StreamingContentData.d.ts +49 -0
- package/core/text_utils/Text.d.ts +19 -0
- package/core/text_utils/TextCursor.d.ts +9 -0
- package/core/text_utils/TextRange.d.ts +81 -0
- package/core/text_utils/TextUtils.d.ts +97 -0
- package/core/text_utils/WasmDisassembly.d.ts +29 -0
- package/core/text_utils/text_utils.d.ts +11 -0
- package/entrypoints/formatter_actions/formatter_actions.d.ts +48 -0
- package/generated/InspectorBackendCommands.d.ts +14 -0
- package/generated/SupportedCSSProperties.d.ts +18 -0
- package/generated/protocol-mapping.d.ts +5930 -0
- package/generated/protocol-proxy-api.d.ts +5396 -0
- package/generated/protocol.d.ts +736 -685
- package/index.js +6 -0
- package/locales/af.json +80 -62
- package/locales/am.json +363 -345
- package/locales/ar.json +364 -346
- package/locales/as.json +362 -344
- package/locales/az.json +353 -335
- package/locales/be.json +363 -345
- package/locales/bg.json +363 -345
- package/locales/bn.json +363 -345
- package/locales/bs.json +259 -241
- package/locales/ca.json +295 -277
- package/locales/cs.json +348 -330
- package/locales/cy.json +139 -121
- package/locales/da.json +222 -204
- package/locales/de.json +234 -216
- package/locales/el.json +348 -330
- package/locales/en-GB.json +36 -18
- package/locales/es-419.json +290 -272
- package/locales/es.json +292 -274
- package/locales/et.json +251 -233
- package/locales/eu.json +29 -11
- package/locales/fa.json +363 -345
- package/locales/fi.json +295 -277
- package/locales/fil.json +29 -11
- package/locales/fr-CA.json +320 -302
- package/locales/fr.json +317 -299
- package/locales/gl.json +276 -258
- package/locales/gu.json +364 -346
- package/locales/he.json +364 -346
- package/locales/hi.json +348 -330
- package/locales/hr.json +250 -232
- package/locales/hu.json +354 -336
- package/locales/hy.json +363 -345
- package/locales/id.json +27 -9
- package/locales/is.json +317 -299
- package/locales/it.json +154 -136
- package/locales/ja.json +363 -345
- package/locales/ka.json +364 -346
- package/locales/kk.json +364 -346
- package/locales/km.json +363 -345
- package/locales/kn.json +364 -346
- package/locales/ko.json +363 -345
- package/locales/ky.json +362 -344
- package/locales/lo.json +364 -346
- package/locales/lt.json +331 -313
- package/locales/lv.json +331 -313
- package/locales/mk.json +364 -346
- package/locales/ml.json +363 -345
- package/locales/mn.json +363 -345
- package/locales/mr.json +363 -345
- package/locales/ms.json +27 -9
- package/locales/my.json +362 -344
- package/locales/ne.json +348 -330
- package/locales/nl.json +84 -66
- package/locales/no.json +188 -170
- package/locales/or.json +363 -345
- package/locales/pa.json +363 -345
- package/locales/pl.json +322 -304
- package/locales/pt-PT.json +284 -266
- package/locales/pt.json +283 -265
- package/locales/ro.json +318 -300
- package/locales/ru.json +363 -345
- package/locales/si.json +364 -346
- package/locales/sk.json +345 -327
- package/locales/sl.json +231 -213
- package/locales/sq.json +329 -311
- package/locales/sr-Latn.json +267 -249
- package/locales/sr.json +364 -346
- package/locales/sv.json +296 -278
- package/locales/sw.json +35 -17
- package/locales/ta.json +364 -346
- package/locales/te.json +362 -344
- package/locales/th.json +364 -346
- package/locales/tr.json +337 -319
- package/locales/uk.json +363 -345
- package/locales/ur.json +364 -346
- package/locales/uz.json +175 -157
- package/locales/vi.json +364 -346
- package/locales/zh-HK.json +364 -346
- package/locales/zh-TW.json +363 -345
- package/locales/zh.json +363 -345
- package/locales/zu.json +35 -17
- package/models/crux-manager/CrUXManager.d.ts +107 -0
- package/models/crux-manager/crux-manager.d.ts +1 -0
- package/models/emulation/DeviceModeModel.d.ts +156 -0
- package/models/emulation/EmulatedDevices.d.ts +148 -0
- package/models/emulation/emulation.d.ts +3 -0
- package/models/formatter/FormatterWorkerPool.d.ts +58 -0
- package/models/formatter/ScriptFormatter.d.ts +11 -0
- package/models/formatter/formatter.d.ts +3 -0
- package/models/trace/ModelImpl.d.ts +2 -6
- package/models/trace/Processor.d.ts +2 -6
- package/models/trace/extras/StackTraceForEvent.d.ts +1 -1
- package/models/trace/extras/extras.d.ts +2 -7
- package/models/trace/handlers/FramesHandler.d.ts +1 -2
- package/models/trace/handlers/LayoutShiftsHandler.d.ts +2 -2
- package/models/trace/handlers/MetaHandler.d.ts +2 -3
- package/models/trace/handlers/ModelHandlers.d.ts +0 -1
- package/models/trace/handlers/PageLoadMetricsHandler.d.ts +2 -0
- package/models/trace/handlers/ScriptsHandler.d.ts +2 -2
- package/models/trace/handlers/Threads.d.ts +1 -3
- package/models/trace/handlers/UserTimingsHandler.d.ts +1 -1
- package/models/trace/helpers/Network.d.ts +3 -1
- package/models/trace/helpers/SyntheticEvents.d.ts +7 -0
- package/models/trace/insights/CLSCulprits.d.ts +6 -3
- package/models/trace/insights/Cache.d.ts +2 -1
- package/models/trace/insights/CharacterSet.d.ts +5 -4
- package/models/trace/insights/Common.d.ts +4 -4
- package/models/trace/insights/DOMSize.d.ts +4 -3
- package/models/trace/insights/DocumentLatency.d.ts +2 -1
- package/models/trace/insights/DuplicatedJavaScript.d.ts +9 -4
- package/models/trace/insights/FontDisplay.d.ts +11 -5
- package/models/trace/insights/ForcedReflow.d.ts +6 -6
- package/models/trace/insights/INPBreakdown.d.ts +5 -5
- package/models/trace/insights/ImageDelivery.d.ts +7 -7
- package/models/trace/insights/LCPBreakdown.d.ts +4 -3
- package/models/trace/insights/LCPDiscovery.d.ts +7 -6
- package/models/trace/insights/LegacyJavaScript.d.ts +9 -4
- package/models/trace/insights/ModernHTTP.d.ts +6 -6
- package/models/trace/insights/NetworkDependencyTree.d.ts +18 -96
- package/models/trace/insights/RenderBlocking.d.ts +4 -3
- package/models/trace/insights/SlowCSSSelector.d.ts +10 -9
- package/models/trace/insights/ThirdParties.d.ts +17 -8
- package/models/trace/insights/Viewport.d.ts +6 -4
- package/models/trace/insights/types.d.ts +10 -7
- package/models/trace/lantern/lantern.js +6 -8
- package/models/trace/lantern/simulation/Constants.d.ts +29 -28
- package/models/trace/trace.js +529 -18
- package/models/trace/types/Configuration.d.ts +12 -1
- package/models/trace/types/File.d.ts +6 -5
- package/models/trace/types/Overlays.d.ts +13 -3
- package/models/trace/types/Timing.js +6 -14
- package/models/trace/types/TraceEvents.d.ts +48 -18
- package/models/trace/types/TraceEvents.js +187 -884
- package/models/trace/types/types.js +6 -8
- package/package.json +30 -9
- package/third_party/codemirror.next/codemirror.next.d.ts +9196 -0
- package/third_party/i18n/i18n-impl.d.ts +25 -0
- package/third_party/i18n/i18n.d.ts +3 -0
- package/third_party/i18n/localized-string-set.d.ts +49 -0
- package/third_party/intl-messageformat/intl-messageformat.d.ts +1 -0
- package/third_party/legacy-javascript/legacy-javascript.d.ts +2 -1
- package/third_party/legacy-javascript/lib/legacy-javascript.d.ts +18 -0
- package/third_party/source-map-scopes-codec/package/src/builder/builder.d.ts +67 -0
- package/third_party/source-map-scopes-codec/package/src/builder/safe_builder.d.ts +38 -0
- package/third_party/source-map-scopes-codec/package/src/codec.d.ts +48 -0
- package/third_party/source-map-scopes-codec/package/src/decode/decode.d.ts +31 -0
- package/third_party/source-map-scopes-codec/package/src/encode/encode.d.ts +8 -0
- package/third_party/source-map-scopes-codec/package/src/encode/encoder.d.ts +6 -0
- package/third_party/source-map-scopes-codec/package/src/mod.d.ts +5 -0
- package/third_party/source-map-scopes-codec/package/src/scopes.d.ts +168 -0
- package/third_party/source-map-scopes-codec/package/src/util.d.ts +5 -0
- package/third_party/source-map-scopes-codec/package/src/vlq.d.ts +14 -0
- package/third_party/source-map-scopes-codec/source-map-scopes-codec.d.ts +1 -0
- package/third_party/third-party-web/lib/nostats-subset.d.ts +2 -0
- package/third_party/third-party-web/package/lib/index.d.ts +34 -0
- package/third_party/third-party-web/package/lib/subsets/nostats.d.ts +1 -0
- package/third_party/third-party-web/third-party-web.d.ts +2 -1
- package/.tmp/tsbuildinfo/analyze-inspector-issues.d.mts +0 -13
- package/.tmp/tsbuildinfo/analyze-inspector-issues.d.mts.map +0 -1
- package/.tmp/tsbuildinfo/analyze-trace.d.mts +0 -17
- package/.tmp/tsbuildinfo/analyze-trace.d.mts.map +0 -1
- package/.tmp/tsbuildinfo/models/trace/extras/polyfills.d.ts +0 -4
- package/.tmp/tsbuildinfo/models/trace/extras/polyfills.d.ts.map +0 -1
- package/.tmp/tsbuildinfo/test/test-trace-engine.d.mts +0 -2
- package/.tmp/tsbuildinfo/test/test-trace-engine.d.mts.map +0 -1
- package/.tmp/tsbuildinfo/third_party/third-party-web/third-party-web.d.ts +0 -3
- package/.tmp/tsbuildinfo/third_party/third-party-web/third-party-web.d.ts.map +0 -1
- package/.tmp/tsbuildinfo/tsconfig.tsbuildinfo +0 -1
- package/analyze-inspector-issues.mjs +0 -60
- package/core/common/common.js +0 -1
- package/core/host/host.js +0 -1
- package/core/platform/ArrayUtilities.js +0 -210
- package/core/platform/ArrayUtilities.js.map +0 -1
- package/core/platform/Brand.js +0 -5
- package/core/platform/Brand.js.map +0 -1
- package/core/platform/Constructor.js +0 -5
- package/core/platform/Constructor.js.map +0 -1
- package/core/platform/DateUtilities.js +0 -14
- package/core/platform/DateUtilities.js.map +0 -1
- package/core/platform/DevToolsPath.js +0 -28
- package/core/platform/DevToolsPath.js.map +0 -1
- package/core/platform/HostRuntime.js +0 -31
- package/core/platform/HostRuntime.js.map +0 -1
- package/core/platform/KeyboardUtilities.js +0 -22
- package/core/platform/KeyboardUtilities.js.map +0 -1
- package/core/platform/MapUtilities.js +0 -80
- package/core/platform/MapUtilities.js.map +0 -1
- package/core/platform/MimeType.js +0 -144
- package/core/platform/MimeType.js.map +0 -1
- package/core/platform/NumberUtilities.js +0 -73
- package/core/platform/NumberUtilities.js.map +0 -1
- package/core/platform/StringUtilities.js +0 -594
- package/core/platform/StringUtilities.js.map +0 -1
- package/core/platform/Timing.js +0 -10
- package/core/platform/Timing.js.map +0 -1
- package/core/platform/TypedArrayUtilities.js +0 -158
- package/core/platform/TypedArrayUtilities.js.map +0 -1
- package/core/platform/TypescriptUtilities.js +0 -25
- package/core/platform/TypescriptUtilities.js.map +0 -1
- package/core/platform/UIString.js +0 -5
- package/core/platform/UIString.js.map +0 -1
- package/core/platform/UserVisibleError.js +0 -23
- package/core/platform/UserVisibleError.js.map +0 -1
- package/core/platform/api/HostRuntime.js +0 -5
- package/core/platform/api/HostRuntime.js.map +0 -1
- package/core/platform/api/api-tsconfig.json +0 -43
- package/core/platform/api/api.js +0 -6
- package/core/platform/api/api.js.map +0 -1
- package/core/platform/api/api_node_typecheck-tsconfig.json +0 -48
- package/core/platform/api/bundle-tsconfig.json +0 -1
- package/core/platform/api/devtools_entrypoint-bundle-typescript-tsconfig.json +0 -48
- package/core/platform/browser/HostRuntime.js +0 -75
- package/core/platform/browser/HostRuntime.js.map +0 -1
- package/core/platform/browser/browser-tsconfig.json +0 -48
- package/core/platform/browser/browser.js +0 -6
- package/core/platform/browser/browser.js.map +0 -1
- package/core/platform/browser/bundle-tsconfig.json +0 -1
- package/core/platform/browser/devtools_entrypoint-bundle-typescript-tsconfig.json +0 -48
- package/core/platform/bundle-tsconfig.json +0 -1
- package/core/platform/devtools_entrypoint-bundle-typescript-tsconfig.json +0 -48
- package/core/platform/node/HostRuntime.js +0 -82
- package/core/platform/node/HostRuntime.js.map +0 -1
- package/core/platform/node/bundle-tsconfig.json +0 -1
- package/core/platform/node/devtools_entrypoint-bundle-typescript-tsconfig.json +0 -48
- package/core/platform/node/node-tsconfig.json +0 -52
- package/core/platform/node/node.js +0 -6
- package/core/platform/node/node.js.map +0 -1
- package/core/platform/platform-tsconfig.json +0 -69
- package/core/platform/platform.js +0 -27
- package/core/platform/platform.js.map +0 -1
- package/core/platform/platform_node_typecheck-tsconfig.json +0 -74
- package/core/root/root.js +0 -1
- package/core/sdk/sdk.js +0 -1
- package/generated/protocol.js +0 -5
- package/locales/en-US.json +0 -1046
- package/locales/en-XL.json +0 -1046
- package/models/cpu_profile/CPUProfileDataModel.js +0 -517
- package/models/cpu_profile/CPUProfileDataModel.js.map +0 -1
- package/models/cpu_profile/ProfileTreeModel.js +0 -90
- package/models/cpu_profile/ProfileTreeModel.js.map +0 -1
- package/models/cpu_profile/bundle-tsconfig.json +0 -1
- package/models/cpu_profile/cpu_profile-tsconfig.json +0 -52
- package/models/cpu_profile/cpu_profile.js +0 -7
- package/models/cpu_profile/cpu_profile.js.map +0 -1
- package/models/cpu_profile/devtools_entrypoint-bundle-typescript-tsconfig.json +0 -48
- package/models/issues_manager/CheckFormsIssuesTrigger.d.ts +0 -1
- package/models/issues_manager/CheckFormsIssuesTrigger.js +0 -1
- package/models/issues_manager/ContrastCheckTrigger.d.ts +0 -1
- package/models/issues_manager/ContrastCheckTrigger.js +0 -1
- package/models/issues_manager/DeprecationIssue.d.ts +0 -1
- package/models/issues_manager/DeprecationIssue.js +0 -1
- package/models/issues_manager/IssueResolver.d.ts +0 -1
- package/models/issues_manager/IssueResolver.js +0 -1
- package/models/issues_manager/RelatedIssue.d.ts +0 -1
- package/models/issues_manager/RelatedIssue.js +0 -1
- package/models/issues_manager/SourceFrameIssuesManager.d.ts +0 -1
- package/models/issues_manager/SourceFrameIssuesManager.js +0 -1
- package/models/trace/EntityMapper.js +0 -133
- package/models/trace/EntityMapper.js.map +0 -1
- package/models/trace/EventsSerializer.js +0 -90
- package/models/trace/EventsSerializer.js.map +0 -1
- package/models/trace/LanternComputationData.js +0 -367
- package/models/trace/LanternComputationData.js.map +0 -1
- package/models/trace/LegacyTracingModel.d.ts +0 -1
- package/models/trace/LegacyTracingModel.js +0 -1
- package/models/trace/ModelImpl.js +0 -170
- package/models/trace/ModelImpl.js.map +0 -1
- package/models/trace/Name.js +0 -115
- package/models/trace/Name.js.map +0 -1
- package/models/trace/Processor.js +0 -556
- package/models/trace/Processor.js.map +0 -1
- package/models/trace/Styles.js +0 -824
- package/models/trace/Styles.js.map +0 -1
- package/models/trace/TracingManager.d.ts +0 -1
- package/models/trace/TracingManager.js +0 -1
- package/models/trace/bundle-tsconfig.json +0 -1
- package/models/trace/devtools_entrypoint-bundle-typescript-tsconfig.json +0 -66
- package/models/trace/extras/FilmStrip.js +0 -45
- package/models/trace/extras/FilmStrip.js.map +0 -1
- package/models/trace/extras/Initiators.js +0 -47
- package/models/trace/extras/Initiators.js.map +0 -1
- package/models/trace/extras/MainThreadActivity.js +0 -77
- package/models/trace/extras/MainThreadActivity.js.map +0 -1
- package/models/trace/extras/ScriptDuplication.js +0 -163
- package/models/trace/extras/ScriptDuplication.js.map +0 -1
- package/models/trace/extras/StackTraceForEvent.js +0 -192
- package/models/trace/extras/StackTraceForEvent.js.map +0 -1
- package/models/trace/extras/ThirdParties.js +0 -119
- package/models/trace/extras/ThirdParties.js.map +0 -1
- package/models/trace/extras/TraceFilter.js +0 -51
- package/models/trace/extras/TraceFilter.js.map +0 -1
- package/models/trace/extras/TraceTree.js +0 -621
- package/models/trace/extras/TraceTree.js.map +0 -1
- package/models/trace/extras/bundle-tsconfig.json +0 -1
- package/models/trace/extras/devtools_entrypoint-bundle-typescript-tsconfig.json +0 -48
- package/models/trace/extras/extras-tsconfig.json +0 -70
- package/models/trace/extras/extras.js +0 -13
- package/models/trace/extras/extras.js.map +0 -1
- package/models/trace/handlers/AnimationFramesHandler.js +0 -110
- package/models/trace/handlers/AnimationFramesHandler.js.map +0 -1
- package/models/trace/handlers/AnimationHandler.js +0 -27
- package/models/trace/handlers/AnimationHandler.js.map +0 -1
- package/models/trace/handlers/AsyncJSCallsHandler.js +0 -188
- package/models/trace/handlers/AsyncJSCallsHandler.js.map +0 -1
- package/models/trace/handlers/AuctionWorkletsHandler.d.ts +0 -8
- package/models/trace/handlers/AuctionWorkletsHandler.js +0 -163
- package/models/trace/handlers/AuctionWorkletsHandler.js.map +0 -1
- package/models/trace/handlers/DOMStatsHandler.js +0 -22
- package/models/trace/handlers/DOMStatsHandler.js.map +0 -1
- package/models/trace/handlers/ExtensionTraceDataHandler.js +0 -264
- package/models/trace/handlers/ExtensionTraceDataHandler.js.map +0 -1
- package/models/trace/handlers/FlowsHandler.js +0 -149
- package/models/trace/handlers/FlowsHandler.js.map +0 -1
- package/models/trace/handlers/FramesHandler.js +0 -492
- package/models/trace/handlers/FramesHandler.js.map +0 -1
- package/models/trace/handlers/GPUHandler.js +0 -36
- package/models/trace/handlers/GPUHandler.js.map +0 -1
- package/models/trace/handlers/ImagePaintingHandler.js +0 -148
- package/models/trace/handlers/ImagePaintingHandler.js.map +0 -1
- package/models/trace/handlers/InitiatorsHandler.js +0 -181
- package/models/trace/handlers/InitiatorsHandler.js.map +0 -1
- package/models/trace/handlers/InvalidationsHandler.js +0 -127
- package/models/trace/handlers/InvalidationsHandler.js.map +0 -1
- package/models/trace/handlers/LargestImagePaintHandler.js +0 -86
- package/models/trace/handlers/LargestImagePaintHandler.js.map +0 -1
- package/models/trace/handlers/LargestTextPaintHandler.js +0 -28
- package/models/trace/handlers/LargestTextPaintHandler.js.map +0 -1
- package/models/trace/handlers/LayerTreeHandler.js +0 -104
- package/models/trace/handlers/LayerTreeHandler.js.map +0 -1
- package/models/trace/handlers/LayoutShiftsHandler.js +0 -458
- package/models/trace/handlers/LayoutShiftsHandler.js.map +0 -1
- package/models/trace/handlers/MemoryHandler.js +0 -22
- package/models/trace/handlers/MemoryHandler.js.map +0 -1
- package/models/trace/handlers/MetaHandler.js +0 -411
- package/models/trace/handlers/MetaHandler.js.map +0 -1
- package/models/trace/handlers/ModelHandlers.js +0 -34
- package/models/trace/handlers/ModelHandlers.js.map +0 -1
- package/models/trace/handlers/NetworkRequestsHandler.js +0 -576
- package/models/trace/handlers/NetworkRequestsHandler.js.map +0 -1
- package/models/trace/handlers/PageFramesHandler.js +0 -43
- package/models/trace/handlers/PageFramesHandler.js.map +0 -1
- package/models/trace/handlers/PageLoadMetricsHandler.js +0 -423
- package/models/trace/handlers/PageLoadMetricsHandler.js.map +0 -1
- package/models/trace/handlers/RendererHandler.js +0 -347
- package/models/trace/handlers/RendererHandler.js.map +0 -1
- package/models/trace/handlers/SamplesHandler.js +0 -261
- package/models/trace/handlers/SamplesHandler.js.map +0 -1
- package/models/trace/handlers/ScreenshotsHandler.js +0 -98
- package/models/trace/handlers/ScreenshotsHandler.js.map +0 -1
- package/models/trace/handlers/ScriptsHandler.js +0 -286
- package/models/trace/handlers/ScriptsHandler.js.map +0 -1
- package/models/trace/handlers/SelectorStatsHandler.js +0 -72
- package/models/trace/handlers/SelectorStatsHandler.js.map +0 -1
- package/models/trace/handlers/Threads.js +0 -112
- package/models/trace/handlers/Threads.js.map +0 -1
- package/models/trace/handlers/UserInteractionsHandler.js +0 -319
- package/models/trace/handlers/UserInteractionsHandler.js.map +0 -1
- package/models/trace/handlers/UserTimingsHandler.js +0 -184
- package/models/trace/handlers/UserTimingsHandler.js.map +0 -1
- package/models/trace/handlers/WarningsHandler.js +0 -135
- package/models/trace/handlers/WarningsHandler.js.map +0 -1
- package/models/trace/handlers/WorkersHandler.js +0 -34
- package/models/trace/handlers/WorkersHandler.js.map +0 -1
- package/models/trace/handlers/bundle-tsconfig.json +0 -1
- package/models/trace/handlers/devtools_entrypoint-bundle-typescript-tsconfig.json +0 -48
- package/models/trace/handlers/handlers-tsconfig.json +0 -102
- package/models/trace/handlers/handlers.js +0 -8
- package/models/trace/handlers/handlers.js.map +0 -1
- package/models/trace/handlers/helpers.js +0 -164
- package/models/trace/handlers/helpers.js.map +0 -1
- package/models/trace/handlers/types.js +0 -2
- package/models/trace/handlers/types.js.map +0 -1
- package/models/trace/helpers/Extensions.js +0 -42
- package/models/trace/helpers/Extensions.js.map +0 -1
- package/models/trace/helpers/Network.js +0 -103
- package/models/trace/helpers/Network.js.map +0 -1
- package/models/trace/helpers/SamplesIntegrator.js +0 -496
- package/models/trace/helpers/SamplesIntegrator.js.map +0 -1
- package/models/trace/helpers/SyntheticEvents.js +0 -75
- package/models/trace/helpers/SyntheticEvents.js.map +0 -1
- package/models/trace/helpers/Timing.js +0 -194
- package/models/trace/helpers/Timing.js.map +0 -1
- package/models/trace/helpers/Trace.js +0 -817
- package/models/trace/helpers/Trace.js.map +0 -1
- package/models/trace/helpers/TreeHelpers.js +0 -255
- package/models/trace/helpers/TreeHelpers.js.map +0 -1
- package/models/trace/helpers/bundle-tsconfig.json +0 -1
- package/models/trace/helpers/devtools_entrypoint-bundle-typescript-tsconfig.json +0 -48
- package/models/trace/helpers/helpers-tsconfig.json +0 -69
- package/models/trace/helpers/helpers.js +0 -11
- package/models/trace/helpers/helpers.js.map +0 -1
- package/models/trace/insights/CLSCulprits.js +0 -518
- package/models/trace/insights/CLSCulprits.js.map +0 -1
- package/models/trace/insights/Cache.js +0 -210
- package/models/trace/insights/Cache.js.map +0 -1
- package/models/trace/insights/CharacterSet.js +0 -132
- package/models/trace/insights/CharacterSet.js.map +0 -1
- package/models/trace/insights/Common.js +0 -348
- package/models/trace/insights/Common.js.map +0 -1
- package/models/trace/insights/DOMSize.js +0 -182
- package/models/trace/insights/DOMSize.js.map +0 -1
- package/models/trace/insights/DocumentLatency.js +0 -259
- package/models/trace/insights/DocumentLatency.js.map +0 -1
- package/models/trace/insights/DuplicatedJavaScript.js +0 -95
- package/models/trace/insights/DuplicatedJavaScript.js.map +0 -1
- package/models/trace/insights/FontDisplay.js +0 -87
- package/models/trace/insights/FontDisplay.js.map +0 -1
- package/models/trace/insights/ForcedReflow.js +0 -162
- package/models/trace/insights/ForcedReflow.js.map +0 -1
- package/models/trace/insights/INPBreakdown.js +0 -130
- package/models/trace/insights/INPBreakdown.js.map +0 -1
- package/models/trace/insights/ImageDelivery.js +0 -264
- package/models/trace/insights/ImageDelivery.js.map +0 -1
- package/models/trace/insights/LCPBreakdown.js +0 -200
- package/models/trace/insights/LCPBreakdown.js.map +0 -1
- package/models/trace/insights/LCPDiscovery.js +0 -190
- package/models/trace/insights/LCPDiscovery.js.map +0 -1
- package/models/trace/insights/LegacyJavaScript.js +0 -95
- package/models/trace/insights/LegacyJavaScript.js.map +0 -1
- package/models/trace/insights/Models.js +0 -23
- package/models/trace/insights/Models.js.map +0 -1
- package/models/trace/insights/ModernHTTP.js +0 -201
- package/models/trace/insights/ModernHTTP.js.map +0 -1
- package/models/trace/insights/NetworkDependencyTree.js +0 -968
- package/models/trace/insights/NetworkDependencyTree.js.map +0 -1
- package/models/trace/insights/RenderBlocking.js +0 -193
- package/models/trace/insights/RenderBlocking.js.map +0 -1
- package/models/trace/insights/SlowCSSSelector.js +0 -137
- package/models/trace/insights/SlowCSSSelector.js.map +0 -1
- package/models/trace/insights/Statistics.js +0 -93
- package/models/trace/insights/Statistics.js.map +0 -1
- package/models/trace/insights/ThirdParties.js +0 -99
- package/models/trace/insights/ThirdParties.js.map +0 -1
- package/models/trace/insights/Viewport.js +0 -103
- package/models/trace/insights/Viewport.js.map +0 -1
- package/models/trace/insights/bundle-tsconfig.json +0 -1
- package/models/trace/insights/devtools_entrypoint-bundle-typescript-tsconfig.json +0 -48
- package/models/trace/insights/insights-tsconfig.json +0 -103
- package/models/trace/insights/insights.js +0 -10
- package/models/trace/insights/insights.js.map +0 -1
- package/models/trace/insights/types.js +0 -41
- package/models/trace/insights/types.js.map +0 -1
- package/models/trace/lantern/bundle-tsconfig.json +0 -1
- package/models/trace/lantern/core/LanternError.js +0 -7
- package/models/trace/lantern/core/LanternError.js.map +0 -1
- package/models/trace/lantern/core/NetworkAnalyzer.js +0 -484
- package/models/trace/lantern/core/NetworkAnalyzer.js.map +0 -1
- package/models/trace/lantern/core/bundle-tsconfig.json +0 -1
- package/models/trace/lantern/core/core-tsconfig.json +0 -49
- package/models/trace/lantern/core/core.js +0 -6
- package/models/trace/lantern/core/core.js.map +0 -1
- package/models/trace/lantern/core/devtools_entrypoint-bundle-typescript-tsconfig.json +0 -48
- package/models/trace/lantern/devtools_entrypoint-bundle-typescript-tsconfig.json +0 -60
- package/models/trace/lantern/graph/BaseNode.js +0 -277
- package/models/trace/lantern/graph/BaseNode.js.map +0 -1
- package/models/trace/lantern/graph/CPUNode.js +0 -64
- package/models/trace/lantern/graph/CPUNode.js.map +0 -1
- package/models/trace/lantern/graph/NetworkNode.js +0 -83
- package/models/trace/lantern/graph/NetworkNode.js.map +0 -1
- package/models/trace/lantern/graph/PageDependencyGraph.js +0 -552
- package/models/trace/lantern/graph/PageDependencyGraph.js.map +0 -1
- package/models/trace/lantern/graph/bundle-tsconfig.json +0 -1
- package/models/trace/lantern/graph/devtools_entrypoint-bundle-typescript-tsconfig.json +0 -48
- package/models/trace/lantern/graph/graph-tsconfig.json +0 -54
- package/models/trace/lantern/graph/graph.js +0 -8
- package/models/trace/lantern/graph/graph.js.map +0 -1
- package/models/trace/lantern/lantern.js.map +0 -1
- package/models/trace/lantern/metrics/FirstContentfulPaint.js +0 -137
- package/models/trace/lantern/metrics/FirstContentfulPaint.js.map +0 -1
- package/models/trace/lantern/metrics/Interactive.js +0 -68
- package/models/trace/lantern/metrics/Interactive.js.map +0 -1
- package/models/trace/lantern/metrics/LargestContentfulPaint.js +0 -69
- package/models/trace/lantern/metrics/LargestContentfulPaint.js.map +0 -1
- package/models/trace/lantern/metrics/MaxPotentialFID.js +0 -49
- package/models/trace/lantern/metrics/MaxPotentialFID.js.map +0 -1
- package/models/trace/lantern/metrics/Metric.js +0 -69
- package/models/trace/lantern/metrics/Metric.js.map +0 -1
- package/models/trace/lantern/metrics/SpeedIndex.js +0 -102
- package/models/trace/lantern/metrics/SpeedIndex.js.map +0 -1
- package/models/trace/lantern/metrics/TBTUtils.js +0 -65
- package/models/trace/lantern/metrics/TBTUtils.js.map +0 -1
- package/models/trace/lantern/metrics/TotalBlockingTime.js +0 -79
- package/models/trace/lantern/metrics/TotalBlockingTime.js.map +0 -1
- package/models/trace/lantern/metrics/bundle-tsconfig.json +0 -1
- package/models/trace/lantern/metrics/devtools_entrypoint-bundle-typescript-tsconfig.json +0 -48
- package/models/trace/lantern/metrics/metrics-tsconfig.json +0 -64
- package/models/trace/lantern/metrics/metrics.js +0 -12
- package/models/trace/lantern/metrics/metrics.js.map +0 -1
- package/models/trace/lantern/simulation/ConnectionPool.js +0 -116
- package/models/trace/lantern/simulation/ConnectionPool.js.map +0 -1
- package/models/trace/lantern/simulation/Constants.js +0 -43
- package/models/trace/lantern/simulation/Constants.js.map +0 -1
- package/models/trace/lantern/simulation/DNSCache.js +0 -48
- package/models/trace/lantern/simulation/DNSCache.js.map +0 -1
- package/models/trace/lantern/simulation/SimulationTimingMap.js +0 -135
- package/models/trace/lantern/simulation/SimulationTimingMap.js.map +0 -1
- package/models/trace/lantern/simulation/Simulator.js +0 -451
- package/models/trace/lantern/simulation/Simulator.js.map +0 -1
- package/models/trace/lantern/simulation/TCPConnection.js +0 -155
- package/models/trace/lantern/simulation/TCPConnection.js.map +0 -1
- package/models/trace/lantern/simulation/bundle-tsconfig.json +0 -1
- package/models/trace/lantern/simulation/devtools_entrypoint-bundle-typescript-tsconfig.json +0 -48
- package/models/trace/lantern/simulation/simulation-tsconfig.json +0 -59
- package/models/trace/lantern/simulation/simulation.js +0 -10
- package/models/trace/lantern/simulation/simulation.js.map +0 -1
- package/models/trace/lantern/types/Lantern.js +0 -25
- package/models/trace/lantern/types/Lantern.js.map +0 -1
- package/models/trace/lantern/types/bundle-tsconfig.json +0 -1
- package/models/trace/lantern/types/devtools_entrypoint-bundle-typescript-tsconfig.json +0 -48
- package/models/trace/lantern/types/types-tsconfig.json +0 -48
- package/models/trace/lantern/types/types.js +0 -5
- package/models/trace/lantern/types/types.js.map +0 -1
- package/models/trace/trace-tsconfig.json +0 -78
- package/models/trace/trace.js.map +0 -1
- package/models/trace/types/Configuration.js +0 -18
- package/models/trace/types/Configuration.js.map +0 -1
- package/models/trace/types/Extensions.js +0 -38
- package/models/trace/types/Extensions.js.map +0 -1
- package/models/trace/types/File.js +0 -82
- package/models/trace/types/File.js.map +0 -1
- package/models/trace/types/Overlays.js +0 -5
- package/models/trace/types/Overlays.js.map +0 -1
- package/models/trace/types/Timing.js.map +0 -1
- package/models/trace/types/TraceEvents.js.map +0 -1
- package/models/trace/types/bundle-tsconfig.json +0 -1
- package/models/trace/types/devtools_entrypoint-bundle-typescript-tsconfig.json +0 -48
- package/models/trace/types/types-tsconfig.json +0 -65
- package/models/trace/types/types.js.map +0 -1
- package/test/invalid-animation-events.json.gz +0 -0
- package/test/test-trace-engine.mjs +0 -191
- package/third_party/legacy-javascript/legacy-javascript.js +0 -1
- package/third_party/marked/marked.d.ts +0 -1
- package/third_party/marked/marked.js +0 -1
- package/third_party/third-party-web/third-party-web.js +0 -1
- package/tsconfig.json +0 -29
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as Common from '../../core/common/common.js';
|
|
2
|
+
export interface FormattedContent {
|
|
3
|
+
formattedContent: string;
|
|
4
|
+
formattedMapping: FormatterSourceMapping;
|
|
5
|
+
}
|
|
6
|
+
export declare function format(settings: Common.Settings.Settings, contentType: Common.ResourceType.ResourceType, mimeType: string, content: string, indent?: string): Promise<FormattedContent>;
|
|
7
|
+
export declare function formatScriptContent(settings: Common.Settings.Settings, mimeType: string, content: string, indent?: string): Promise<FormattedContent>;
|
|
8
|
+
export interface FormatterSourceMapping {
|
|
9
|
+
originalToFormatted(lineNumber: number, columnNumber?: number): number[];
|
|
10
|
+
formattedToOriginal(lineNumber: number, columnNumber?: number): number[];
|
|
11
|
+
}
|
|
@@ -22,6 +22,7 @@ export declare class Model extends EventTarget {
|
|
|
22
22
|
*/
|
|
23
23
|
static createWithSubsetOfHandlers(traceHandlers: Partial<Handlers.Types.Handlers>, config?: Types.Configuration.Configuration): Model;
|
|
24
24
|
constructor(handlers: Handlers.Types.Handlers, config?: Types.Configuration.Configuration);
|
|
25
|
+
updateConfiguration(config: Types.Configuration.Configuration): void;
|
|
25
26
|
/**
|
|
26
27
|
* Parses an array of trace events into a structured object containing all the
|
|
27
28
|
* information parsed by the trace handlers.
|
|
@@ -74,7 +75,7 @@ export type ParsedTrace = Types.File.TraceFile & {
|
|
|
74
75
|
insights: Insights.Types.TraceInsightSets | null;
|
|
75
76
|
syntheticEventsManager: Helpers.SyntheticEvents.SyntheticEventsManager;
|
|
76
77
|
};
|
|
77
|
-
export declare
|
|
78
|
+
export declare enum ModelUpdateType {
|
|
78
79
|
COMPLETE = "COMPLETE",
|
|
79
80
|
PROGRESS_UPDATE = "PROGRESS_UPDATE"
|
|
80
81
|
}
|
|
@@ -95,9 +96,4 @@ export declare class ModelUpdateEvent extends Event {
|
|
|
95
96
|
static readonly eventName = "modelupdate";
|
|
96
97
|
constructor(data: ModelUpdateEventData);
|
|
97
98
|
}
|
|
98
|
-
declare global {
|
|
99
|
-
interface HTMLElementEventMap {
|
|
100
|
-
[ModelUpdateEvent.eventName]: ModelUpdateEvent;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
99
|
export declare function isModelUpdateDataComplete(eventData: ModelUpdateEventData): eventData is ModelUpdateEventComplete;
|
|
@@ -5,12 +5,7 @@ import * as Types from './types/types.js';
|
|
|
5
5
|
export declare class TraceParseProgressEvent extends Event {
|
|
6
6
|
data: Model.TraceParseEventProgressData;
|
|
7
7
|
static readonly eventName = "traceparseprogress";
|
|
8
|
-
constructor(data: Model.TraceParseEventProgressData, init?:
|
|
9
|
-
}
|
|
10
|
-
declare global {
|
|
11
|
-
interface HTMLElementEventMap {
|
|
12
|
-
[TraceParseProgressEvent.eventName]: TraceParseProgressEvent;
|
|
13
|
-
}
|
|
8
|
+
constructor(data: Model.TraceParseEventProgressData, init?: ConstructorParameters<typeof Event>[1]);
|
|
14
9
|
}
|
|
15
10
|
export declare class TraceProcessor extends EventTarget {
|
|
16
11
|
#private;
|
|
@@ -20,6 +15,7 @@ export declare class TraceProcessor extends EventTarget {
|
|
|
20
15
|
*/
|
|
21
16
|
static getInsightRunners(): Insights.Types.InsightModelsType;
|
|
22
17
|
constructor(traceHandlers: Partial<Handlers.Types.Handlers>, modelConfiguration?: Types.Configuration.Configuration);
|
|
18
|
+
updateConfiguration(config: Types.Configuration.Configuration): void;
|
|
23
19
|
reset(): void;
|
|
24
20
|
parse(traceEvents: readonly Types.Events.Event[], options: Types.Configuration.ParseOptions): Promise<void>;
|
|
25
21
|
get data(): Handlers.Types.HandlerData | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as Protocol from '../../../generated/protocol.js';
|
|
2
2
|
import type * as Handlers from '../handlers/handlers.js';
|
|
3
3
|
import * as Types from '../types/types.js';
|
|
4
|
-
export declare const stackTraceForEventInTrace: Map<
|
|
4
|
+
export declare const stackTraceForEventInTrace: Map<Handlers.Types.HandlerData, Map<Types.Events.Event, Protocol.Runtime.StackTrace>>;
|
|
5
5
|
export declare function clearCacheForTrace(data: Handlers.Types.HandlerData): void;
|
|
6
6
|
/**
|
|
7
7
|
* This util builds a stack trace that includes async calls for a given
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
// Copyright 2025 The Chromium Authors. All rights reserved.
|
|
4
|
-
// Use of this source code is governed by a BSD-style license that can be
|
|
5
|
-
// found in the LICENSE file.
|
|
6
|
-
|
|
7
|
-
// Exclude the parts of extras.ts that have painful dependencies. Include these cuz they don't and are needed.
|
|
1
|
+
export * as FilmStrip from './FilmStrip.js';
|
|
8
2
|
export * as Initiators from './Initiators.js';
|
|
3
|
+
export * as MainThreadActivity from './MainThreadActivity.js';
|
|
9
4
|
export * as ScriptDuplication from './ScriptDuplication.js';
|
|
10
5
|
export * as StackTraceForEvent from './StackTraceForEvent.js';
|
|
11
6
|
export * as ThirdParties from './ThirdParties.js';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as Types from '../types/types.js';
|
|
2
|
-
import { type AuctionWorkletsData } from './AuctionWorkletsHandler.js';
|
|
3
2
|
import { type LayerTreeData } from './LayerTreeHandler.js';
|
|
4
3
|
import { type MetaHandlerData } from './MetaHandler.js';
|
|
5
4
|
import { type RendererHandlerData } from './RendererHandler.js';
|
|
@@ -15,7 +14,7 @@ export declare function data(): FramesData;
|
|
|
15
14
|
export declare function deps(): HandlerName[];
|
|
16
15
|
export declare class TimelineFrameModel {
|
|
17
16
|
#private;
|
|
18
|
-
constructor(allEvents: readonly Types.Events.Event[], rendererData: RendererHandlerData,
|
|
17
|
+
constructor(allEvents: readonly Types.Events.Event[], rendererData: RendererHandlerData, metaData: MetaHandlerData, layerTreeData: LayerTreeData);
|
|
19
18
|
framesById(): Readonly<Record<number, TimelineFrame | undefined>>;
|
|
20
19
|
frames(): TimelineFrame[];
|
|
21
20
|
}
|
|
@@ -2,9 +2,8 @@ import type * as Protocol from '../../../generated/protocol.js';
|
|
|
2
2
|
import * as Types from '../types/types.js';
|
|
3
3
|
import { ScoreClassification } from './PageLoadMetricsHandler.js';
|
|
4
4
|
import type { HandlerName } from './types.js';
|
|
5
|
-
interface LayoutShiftsData {
|
|
5
|
+
export interface LayoutShiftsData {
|
|
6
6
|
clusters: readonly Types.Events.SyntheticLayoutShiftCluster[];
|
|
7
|
-
clustersByNavigationId: Map<Types.Events.NavigationId, Types.Events.SyntheticLayoutShiftCluster[]>;
|
|
8
7
|
sessionMaxScore: number;
|
|
9
8
|
clsWindowID: number;
|
|
10
9
|
prePaintEvents: readonly Types.Events.PrePaint[];
|
|
@@ -44,6 +43,7 @@ interface ScoreRecord {
|
|
|
44
43
|
score: number;
|
|
45
44
|
}
|
|
46
45
|
export declare function reset(): void;
|
|
46
|
+
export declare function handleUserConfig(userConfig: Types.Configuration.Configuration): void;
|
|
47
47
|
export declare function handleEvent(event: Types.Events.Event): void;
|
|
48
48
|
export declare function finalize(): Promise<void>;
|
|
49
49
|
export declare function data(): LayoutShiftsData;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import * as Types from '../types/types.js';
|
|
2
2
|
import type { FinalizeOptions } from './types.js';
|
|
3
|
+
export declare function handleUserConfig(userConfig: Types.Configuration.Configuration): void;
|
|
3
4
|
export declare function reset(): void;
|
|
4
5
|
export declare function handleEvent(event: Types.Events.Event): void;
|
|
5
6
|
export declare function finalize(options?: FinalizeOptions): Promise<void>;
|
|
6
7
|
export interface MetaHandlerData {
|
|
7
|
-
config:
|
|
8
|
-
showAllEvents: boolean;
|
|
9
|
-
};
|
|
8
|
+
config: Types.Configuration.Configuration;
|
|
10
9
|
traceIsGeneric: boolean;
|
|
11
10
|
traceBounds: Types.Timing.TraceWindowMicro;
|
|
12
11
|
browserProcessId: Types.Events.ProcessID;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export * as AnimationFrames from './AnimationFramesHandler.js';
|
|
2
2
|
export * as Animations from './AnimationHandler.js';
|
|
3
3
|
export * as AsyncJSCalls from './AsyncJSCallsHandler.js';
|
|
4
|
-
export * as AuctionWorklets from './AuctionWorkletsHandler.js';
|
|
5
4
|
export * as DOMStats from './DOMStatsHandler.js';
|
|
6
5
|
export * as ExtensionTraceData from './ExtensionTraceDataHandler.js';
|
|
7
6
|
export * as Flows from './FlowsHandler.js';
|
|
@@ -2,6 +2,7 @@ import * as Types from '../types/types.js';
|
|
|
2
2
|
import type { HandlerName } from './types.js';
|
|
3
3
|
type AnyNavigationStart = Types.Events.NavigationStart | Types.Events.SoftNavigationStart;
|
|
4
4
|
export declare function reset(): void;
|
|
5
|
+
export declare function handleUserConfig(userConfig: Types.Configuration.Configuration): void;
|
|
5
6
|
export declare function handleEvent(event: Types.Events.Event): void;
|
|
6
7
|
export declare function getFrameIdForPageLoadEvent(event: Types.Events.PageLoadEvent): string;
|
|
7
8
|
/**
|
|
@@ -68,6 +69,7 @@ export declare enum MetricName {
|
|
|
68
69
|
CLS = "CLS",
|
|
69
70
|
NAV = "Nav",
|
|
70
71
|
SOFT_NAV = "Nav*",
|
|
72
|
+
SOFT_FCP = "FCP*",
|
|
71
73
|
SOFT_LCP = "LCP*"
|
|
72
74
|
}
|
|
73
75
|
export interface MetricScore {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type * as SDK from '../../../core/sdk/sdk.js';
|
|
2
2
|
import type * as Protocol from '../../../generated/protocol.js';
|
|
3
3
|
import * as Types from '../types/types.js';
|
|
4
4
|
import type { FinalizeOptions, HandlerName } from './types.js';
|
|
@@ -22,7 +22,7 @@ export interface Script {
|
|
|
22
22
|
sourceMapUrl?: string;
|
|
23
23
|
/** If true, the source map url was a data URL, so it got removed from the trace event. */
|
|
24
24
|
sourceMapUrlElided?: boolean;
|
|
25
|
-
sourceMap?:
|
|
25
|
+
sourceMap?: SDK.SourceMap.SourceMap;
|
|
26
26
|
request?: Types.Events.SyntheticNetworkRequest;
|
|
27
27
|
/** Lazily generated - use getScriptGeneratedSizes to access. */
|
|
28
28
|
sizes?: GeneratedFileSizes;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type * as Helpers from '../helpers/helpers.js';
|
|
2
2
|
import type * as Types from '../types/types.js';
|
|
3
|
-
import type { AuctionWorkletsData } from './AuctionWorkletsHandler.js';
|
|
4
3
|
import type * as Renderer from './RendererHandler.js';
|
|
5
4
|
import type { HandlerData } from './types.js';
|
|
6
5
|
export interface ThreadData {
|
|
@@ -17,12 +16,11 @@ export declare enum ThreadType {
|
|
|
17
16
|
MAIN_THREAD = "MAIN_THREAD",
|
|
18
17
|
WORKER = "WORKER",
|
|
19
18
|
RASTERIZER = "RASTERIZER",
|
|
20
|
-
AUCTION_WORKLET = "AUCTION_WORKLET",
|
|
21
19
|
OTHER = "OTHER",
|
|
22
20
|
CPU_PROFILE = "CPU_PROFILE",
|
|
23
21
|
THREAD_POOL = "THREAD_POOL"
|
|
24
22
|
}
|
|
25
|
-
export declare function threadsInRenderer(rendererData: Renderer.RendererHandlerData
|
|
23
|
+
export declare function threadsInRenderer(rendererData: Renderer.RendererHandlerData): readonly ThreadData[];
|
|
26
24
|
/**
|
|
27
25
|
* Given trace parsed data, this helper will return a high level array of
|
|
28
26
|
* ThreadData. This is useful because it allows you to get a list of threads
|
|
@@ -48,7 +48,7 @@ export declare function reset(): void;
|
|
|
48
48
|
* the second event is the parent of the first. Hence the switch.
|
|
49
49
|
*
|
|
50
50
|
*/
|
|
51
|
-
export declare function userTimingComparator<T extends Types.Events.SyntheticEventPair | Types.Events.ConsoleTimeStamp>(a: T, b: T,
|
|
51
|
+
export declare function userTimingComparator<T extends Types.Events.SyntheticEventPair | Types.Events.ConsoleTimeStamp>(a: T, b: T, originalIndex: ReadonlyMap<T, number>): number;
|
|
52
52
|
export declare function handleEvent(event: Types.Events.Event): void;
|
|
53
53
|
export declare function finalize(): Promise<void>;
|
|
54
54
|
export declare function data(): UserTimingsData;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as Protocol from '../../../generated/protocol.js';
|
|
2
|
-
import type
|
|
2
|
+
import type * as Types from '../types/types.js';
|
|
3
|
+
type SyntheticNetworkRequest = Types.Events.SyntheticNetworkRequest;
|
|
3
4
|
export declare function isSyntheticNetworkRequestEventRenderBlocking(event: SyntheticNetworkRequest): boolean;
|
|
4
5
|
export declare function isSyntheticNetworkRequestHighPriority(event: SyntheticNetworkRequest): boolean;
|
|
5
6
|
export interface CacheControl {
|
|
@@ -24,3 +25,4 @@ export declare function parseCacheControl(header: string | null): CacheControl |
|
|
|
24
25
|
* https://github.com/GoogleChrome/lighthouse/pull/11766#discussion_r582340683
|
|
25
26
|
*/
|
|
26
27
|
export declare function isSyntheticNetworkRequestLocalhost(event: SyntheticNetworkRequest): boolean;
|
|
28
|
+
export {};
|
|
@@ -7,6 +7,13 @@ export declare class SyntheticEventsManager {
|
|
|
7
7
|
static reset(): void;
|
|
8
8
|
static registerSyntheticEvent<T extends Types.Events.SyntheticBased>(syntheticEvent: Omit<T, '_tag'>): T;
|
|
9
9
|
private constructor();
|
|
10
|
+
/**
|
|
11
|
+
* Clears the transient raw event index map.
|
|
12
|
+
* During trace parsing, this map provides O(1) lookups for registering synthetic events.
|
|
13
|
+
* Once parsing is complete, queries look up synthetic events exclusively by index in
|
|
14
|
+
* `#syntheticTraces`, so this map is discarded to reclaim memory.
|
|
15
|
+
*/
|
|
16
|
+
clearRegistrationIndex(): void;
|
|
10
17
|
syntheticEventForRawEventIndex(rawEventIndex: number): Types.Events.SyntheticBased;
|
|
11
18
|
getSyntheticTraces(): Types.Events.SyntheticBased[];
|
|
12
19
|
getRawTraceEvents(): readonly Types.Events.Event[];
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
import * as i18n from '../../../core/i18n/i18n.js';
|
|
1
2
|
import * as Platform from '../../../core/platform/platform.js';
|
|
2
3
|
import type * as Protocol from '../../../generated/protocol.js';
|
|
3
4
|
import * as Handlers from '../handlers/handlers.js';
|
|
4
5
|
import * as Types from '../types/types.js';
|
|
5
6
|
import { type InsightModel, type InsightSetContext } from './types.js';
|
|
6
7
|
export declare const UIStrings: {
|
|
7
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* @description Title of an insight that provides details about why elements shift/move on the page. The causes for these shifts are referred to as culprits ("reasons").
|
|
10
|
+
*/
|
|
8
11
|
readonly title: "Layout shift culprits";
|
|
9
12
|
/**
|
|
10
13
|
* @description Description of a DevTools insight that identifies the reasons that elements shift on the page.
|
|
@@ -49,11 +52,11 @@ export declare const UIStrings: {
|
|
|
49
52
|
*/
|
|
50
53
|
readonly noLayoutShifts: "No layout shifts";
|
|
51
54
|
/**
|
|
52
|
-
* @description Text status when
|
|
55
|
+
* @description Text status when no layout shift culprits or root causes were found.
|
|
53
56
|
*/
|
|
54
57
|
readonly noCulprits: "Could not detect any layout shift culprits";
|
|
55
58
|
};
|
|
56
|
-
export declare const i18nString:
|
|
59
|
+
export declare const i18nString: i18n.LocalizeString;
|
|
57
60
|
export type CLSCulpritsInsightModel = InsightModel<typeof UIStrings, {
|
|
58
61
|
animationFailures: readonly NoncompositedAnimationFailure[];
|
|
59
62
|
shifts: Map<Types.Events.SyntheticLayoutShift, LayoutShiftRootCausesData>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as i18n from '../../../core/i18n/i18n.js';
|
|
1
2
|
import type * as Handlers from '../handlers/handlers.js';
|
|
2
3
|
import * as Helpers from '../helpers/helpers.js';
|
|
3
4
|
import type * as Types from '../types/types.js';
|
|
@@ -29,7 +30,7 @@ export declare const UIStrings: {
|
|
|
29
30
|
*/
|
|
30
31
|
readonly others: "{PH1} others";
|
|
31
32
|
};
|
|
32
|
-
export declare const i18nString:
|
|
33
|
+
export declare const i18nString: i18n.LocalizeString;
|
|
33
34
|
export type CacheInsightModel = InsightModel<typeof UIStrings, {
|
|
34
35
|
requests: Array<{
|
|
35
36
|
request: Types.Events.SyntheticNetworkRequest;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as i18n from '../../../core/i18n/i18n.js';
|
|
1
2
|
import type * as Handlers from '../handlers/handlers.js';
|
|
2
3
|
import type * as Types from '../types/types.js';
|
|
3
4
|
import { type Checklist, type InsightModel, type InsightSetContext } from './types.js';
|
|
@@ -17,7 +18,7 @@ export declare const UIStrings: {
|
|
|
17
18
|
/**
|
|
18
19
|
* @description Text to tell the user that the charset is NOT declared in the Content-Type HTTP response header.
|
|
19
20
|
*/
|
|
20
|
-
readonly failedHttpHeader: "
|
|
21
|
+
readonly failedHttpHeader: "Doesn’t declare charset in HTTP header";
|
|
21
22
|
/**
|
|
22
23
|
* @description Text to tell the user that a meta charset tag was found in the first 1024 bytes of the HTML.
|
|
23
24
|
*/
|
|
@@ -29,13 +30,13 @@ export declare const UIStrings: {
|
|
|
29
30
|
/**
|
|
30
31
|
* @description Text to tell the user that no meta charset tag was found in the HTML.
|
|
31
32
|
*/
|
|
32
|
-
readonly failedMetaCharsetMissing: "
|
|
33
|
+
readonly failedMetaCharsetMissing: "Doesn’t declare charset using a meta tag";
|
|
33
34
|
/**
|
|
34
35
|
* @description Text to tell the user that trace data did not include the Blink signal for meta charset.
|
|
35
36
|
*/
|
|
36
|
-
readonly failedMetaCharsetUnknown: "
|
|
37
|
+
readonly failedMetaCharsetUnknown: "Couldn’t determine meta charset declaration from trace";
|
|
37
38
|
};
|
|
38
|
-
export declare const i18nString:
|
|
39
|
+
export declare const i18nString: i18n.LocalizeString;
|
|
39
40
|
export type CharacterSetInsightModel = InsightModel<typeof UIStrings, {
|
|
40
41
|
data?: {
|
|
41
42
|
hasHttpCharset: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Protocol from '../../../generated/protocol.js';
|
|
2
|
-
|
|
2
|
+
import type * as CrUXManager from '../../crux-manager/crux-manager.js';
|
|
3
3
|
import type * as Handlers from '../handlers/handlers.js';
|
|
4
4
|
import * as Types from '../types/types.js';
|
|
5
5
|
import { InsightKeys, type InsightModel, type InsightModels, type InsightSet, type InsightSetContext, type MetricSavings } from './types.js';
|
|
@@ -22,11 +22,11 @@ export declare function evaluateINPMetricScore(value: Types.Timing.Milli): numbe
|
|
|
22
22
|
export declare function evaluateCLSMetricScore(value: number): number;
|
|
23
23
|
export interface CrUXFieldMetricTimingResult {
|
|
24
24
|
value: Types.Timing.Micro;
|
|
25
|
-
pageScope:
|
|
25
|
+
pageScope: CrUXManager.PageScope;
|
|
26
26
|
}
|
|
27
27
|
export interface CrUXFieldMetricNumberResult {
|
|
28
28
|
value: number;
|
|
29
|
-
pageScope:
|
|
29
|
+
pageScope: CrUXManager.PageScope;
|
|
30
30
|
}
|
|
31
31
|
export interface CrUXFieldMetricResults {
|
|
32
32
|
fcp: CrUXFieldMetricTimingResult | null;
|
|
@@ -40,7 +40,7 @@ export interface CrUXFieldMetricResults {
|
|
|
40
40
|
renderDelay: CrUXFieldMetricTimingResult | null;
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
|
-
export declare function getFieldMetricsForInsightSet(insightSet: InsightSet, metadata: Types.File.MetaData | null, scope?:
|
|
43
|
+
export declare function getFieldMetricsForInsightSet(insightSet: InsightSet, metadata: Types.File.MetaData | null, scope?: CrUXManager.Scope | null): CrUXFieldMetricResults | null;
|
|
44
44
|
export declare function calculateMetricWeightsForSorting(insightSet: InsightSet, metadata: Types.File.MetaData | null): {
|
|
45
45
|
lcp: number;
|
|
46
46
|
inp: number;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import type * as Common from '../../../core/common/common.js';
|
|
2
|
+
import * as i18n from '../../../core/i18n/i18n.js';
|
|
2
3
|
import * as Handlers from '../handlers/handlers.js';
|
|
3
4
|
import * as Types from '../types/types.js';
|
|
4
5
|
import { type InsightModel, type InsightSetContext } from './types.js';
|
|
@@ -28,7 +29,7 @@ export declare const UIStrings: {
|
|
|
28
29
|
*/
|
|
29
30
|
readonly totalElements: "Total elements";
|
|
30
31
|
/**
|
|
31
|
-
* @description Label for a value representing the maximum depth of the Document Object Model (DOM). "DOM" is
|
|
32
|
+
* @description Label for a value representing the maximum depth of the Document Object Model (DOM). "DOM" is an acronym and should not be translated.
|
|
32
33
|
*/
|
|
33
34
|
readonly maxDOMDepth: "DOM depth";
|
|
34
35
|
/**
|
|
@@ -54,7 +55,7 @@ export declare const UIStrings: {
|
|
|
54
55
|
*/
|
|
55
56
|
readonly largeStyleRecalc: "Style recalculation ({PH1} elements)";
|
|
56
57
|
};
|
|
57
|
-
export declare const i18nString:
|
|
58
|
+
export declare const i18nString: i18n.LocalizeString;
|
|
58
59
|
export type DOMSizeInsightModel = InsightModel<typeof UIStrings, {
|
|
59
60
|
largeLayoutUpdates: Types.Events.Layout[];
|
|
60
61
|
largeStyleRecalcs: Types.Events.RecalcStyle[];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as i18n from '../../../core/i18n/i18n.js';
|
|
1
2
|
import type * as Handlers from '../handlers/handlers.js';
|
|
2
3
|
import * as Types from '../types/types.js';
|
|
3
4
|
import { type Checklist, type InsightModel, type InsightSetContext } from './types.js';
|
|
@@ -51,7 +52,7 @@ export declare const UIStrings: {
|
|
|
51
52
|
*/
|
|
52
53
|
readonly uncompressedDownload: "Uncompressed download";
|
|
53
54
|
};
|
|
54
|
-
export declare const i18nString:
|
|
55
|
+
export declare const i18nString: i18n.LocalizeString;
|
|
55
56
|
export declare function isDocumentLatencyInsight(x: InsightModel): x is DocumentLatencyInsightModel;
|
|
56
57
|
export type DocumentLatencyInsightModel = InsightModel<typeof UIStrings, {
|
|
57
58
|
data?: {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as i18n from '../../../core/i18n/i18n.js';
|
|
1
2
|
import * as Extras from '../extras/extras.js';
|
|
2
3
|
import type * as Handlers from '../handlers/handlers.js';
|
|
3
4
|
import type * as Types from '../types/types.js';
|
|
@@ -10,17 +11,21 @@ export declare const UIStrings: {
|
|
|
10
11
|
/**
|
|
11
12
|
* @description Description of an insight that identifies multiple copies of the same JavaScript sources, and recommends removing the duplication.
|
|
12
13
|
*/
|
|
13
|
-
readonly description: "Remove large, [duplicate JavaScript modules](https://developer.chrome.com/docs/performance/insights/duplicated-javascript) from bundles to reduce unnecessary bytes consumed by network activity
|
|
14
|
-
/**
|
|
14
|
+
readonly description: "Remove large, [duplicate JavaScript modules](https://developer.chrome.com/docs/performance/insights/duplicated-javascript) from bundles to reduce unnecessary bytes consumed by network activity";
|
|
15
|
+
/**
|
|
16
|
+
* @description Label for a column in a data table; entries will be the locations of JavaScript or CSS code, e.g. the name of a JavaScript package or module.
|
|
17
|
+
*/
|
|
15
18
|
readonly columnSource: "Source";
|
|
16
|
-
/**
|
|
19
|
+
/**
|
|
20
|
+
* @description Label for a column in a data table; entries will be the number of wasted bytes due to duplication of a web resource.
|
|
21
|
+
*/
|
|
17
22
|
readonly columnDuplicatedBytes: "Duplicated bytes";
|
|
18
23
|
/**
|
|
19
24
|
* @description Message shown when no duplicated JavaScript is found.
|
|
20
25
|
*/
|
|
21
26
|
readonly noDuplicatedJavaScript: "No duplicated JavaScript found";
|
|
22
27
|
};
|
|
23
|
-
export declare const i18nString:
|
|
28
|
+
export declare const i18nString: i18n.LocalizeString;
|
|
24
29
|
export type DuplicatedJavaScriptInsightModel = InsightModel<typeof UIStrings, {
|
|
25
30
|
duplication: Extras.ScriptDuplication.ScriptDuplication;
|
|
26
31
|
duplicationGroupedByNodeModules: Extras.ScriptDuplication.ScriptDuplication;
|
|
@@ -1,24 +1,30 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as i18n from '../../../core/i18n/i18n.js';
|
|
2
2
|
import type * as Handlers from '../handlers/handlers.js';
|
|
3
3
|
import * as Types from '../types/types.js';
|
|
4
4
|
import { type InsightModel, type InsightSetContext } from './types.js';
|
|
5
5
|
export declare const UIStrings: {
|
|
6
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* @description Title of an insight that provides details about the fonts used on the page, and the value of their `font-display` properties.
|
|
8
|
+
*/
|
|
7
9
|
readonly title: "Font display";
|
|
8
10
|
/**
|
|
9
11
|
* @description Text to tell the user about the font-display CSS feature to help improve a the UX of a page.
|
|
10
12
|
*/
|
|
11
13
|
readonly description: "Consider setting [`font-display`](https://developer.chrome.com/docs/performance/insights/font-display) to `swap` or `optional` to ensure text is consistently visible. `swap` can be further optimized to mitigate layout shifts with [font metric overrides](https://developer.chrome.com/blog/font-fallbacks).";
|
|
12
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* @description Column for a font loaded by the page to render text.
|
|
16
|
+
*/
|
|
13
17
|
readonly fontColumn: "Font";
|
|
14
|
-
/**
|
|
18
|
+
/**
|
|
19
|
+
* @description Column for the amount of time wasted.
|
|
20
|
+
*/
|
|
15
21
|
readonly wastedTimeColumn: "Wasted time";
|
|
16
22
|
/**
|
|
17
23
|
* @description Message shown when no fonts with suboptimal font-display are found.
|
|
18
24
|
*/
|
|
19
25
|
readonly noFonts: "No fonts with suboptimal font-display found";
|
|
20
26
|
};
|
|
21
|
-
export declare const i18nString:
|
|
27
|
+
export declare const i18nString: i18n.LocalizeString;
|
|
22
28
|
export interface RemoteFont {
|
|
23
29
|
name?: string;
|
|
24
30
|
request: Types.Events.SyntheticNetworkRequest;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as i18n from '../../../core/i18n/i18n.js';
|
|
2
2
|
import type * as Protocol from '../../../generated/protocol.js';
|
|
3
3
|
import type * as Handlers from '../handlers/handlers.js';
|
|
4
4
|
import * as Types from '../types/types.js';
|
|
@@ -13,15 +13,15 @@ export declare const UIStrings: {
|
|
|
13
13
|
*/
|
|
14
14
|
readonly description: "A forced reflow occurs when JavaScript queries geometric properties (such as `offsetWidth`) after styles have been invalidated by a change to the DOM state. This can result in poor performance. Learn more about [forced reflows](https://developer.chrome.com/docs/performance/insights/forced-reflow) and possible mitigations.";
|
|
15
15
|
/**
|
|
16
|
-
* @description Title of a list to provide related stack trace data
|
|
16
|
+
* @description Title of a list to provide related stack trace data.
|
|
17
17
|
*/
|
|
18
18
|
readonly reflowCallFrames: "Call frames that trigger reflow";
|
|
19
19
|
/**
|
|
20
|
-
* @description Text to describe the top time-consuming function call
|
|
20
|
+
* @description Text to describe the top time-consuming function call.
|
|
21
21
|
*/
|
|
22
22
|
readonly topTimeConsumingFunctionCall: "Top function call";
|
|
23
23
|
/**
|
|
24
|
-
* @description Text to describe the total reflow time
|
|
24
|
+
* @description Text to describe the total reflow time.
|
|
25
25
|
*/
|
|
26
26
|
readonly totalReflowTime: "Total reflow time";
|
|
27
27
|
/**
|
|
@@ -29,11 +29,11 @@ export declare const UIStrings: {
|
|
|
29
29
|
*/
|
|
30
30
|
readonly unattributed: "[unattributed]";
|
|
31
31
|
/**
|
|
32
|
-
* @description Text for the name of anonymous functions
|
|
32
|
+
* @description Text for the name of anonymous functions.
|
|
33
33
|
*/
|
|
34
34
|
readonly anonymous: "(anonymous)";
|
|
35
35
|
};
|
|
36
|
-
export declare const i18nString:
|
|
36
|
+
export declare const i18nString: i18n.LocalizeString;
|
|
37
37
|
export type ForcedReflowInsightModel = InsightModel<typeof UIStrings, {
|
|
38
38
|
topLevelFunctionCallData: ForcedReflowAggregatedData | undefined;
|
|
39
39
|
aggregatedBottomUpData: BottomUpCallStack[];
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import * as i18n from '../../../core/i18n/i18n.js';
|
|
1
2
|
import * as Handlers from '../handlers/handlers.js';
|
|
2
|
-
import type { SyntheticInteractionPair } from '../types/TraceEvents.js';
|
|
3
3
|
import type * as Types from '../types/types.js';
|
|
4
4
|
import { type InsightModel, type InsightSetContext } from './types.js';
|
|
5
5
|
export declare const UIStrings: {
|
|
6
6
|
/**
|
|
7
7
|
* @description Text to tell the user about the longest user interaction.
|
|
8
8
|
*/
|
|
9
|
-
readonly description: "Start investigating [how to improve INP](https://developer.chrome.com/docs/performance/insights/inp-breakdown) by looking at the longest subpart
|
|
9
|
+
readonly description: "Start investigating [how to improve INP](https://developer.chrome.com/docs/performance/insights/inp-breakdown) by looking at the longest subpart";
|
|
10
10
|
/**
|
|
11
11
|
* @description Title for the performance insight "INP breakdown", which shows a breakdown of INP by subparts / sections.
|
|
12
12
|
*/
|
|
@@ -36,10 +36,10 @@ export declare const UIStrings: {
|
|
|
36
36
|
*/
|
|
37
37
|
readonly noInteractions: "No interactions detected";
|
|
38
38
|
};
|
|
39
|
-
export declare const i18nString:
|
|
39
|
+
export declare const i18nString: i18n.LocalizeString;
|
|
40
40
|
export type INPBreakdownInsightModel = InsightModel<typeof UIStrings, {
|
|
41
|
-
longestInteractionEvent?: SyntheticInteractionPair;
|
|
42
|
-
highPercentileInteractionEvent?: SyntheticInteractionPair;
|
|
41
|
+
longestInteractionEvent?: Types.Events.SyntheticInteractionPair;
|
|
42
|
+
highPercentileInteractionEvent?: Types.Events.SyntheticInteractionPair;
|
|
43
43
|
}>;
|
|
44
44
|
export declare function isINPBreakdownInsight(insight: InsightModel): insight is INPBreakdownInsightModel;
|
|
45
45
|
export declare function generateInsight(data: Handlers.Types.HandlerData, context: InsightSetContext): INPBreakdownInsightModel;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as i18n from '../../../core/i18n/i18n.js';
|
|
2
2
|
import type * as Handlers from '../handlers/handlers.js';
|
|
3
3
|
import type * as Types from '../types/types.js';
|
|
4
4
|
import { type InsightModel, type InsightSetContext } from './types.js';
|
|
@@ -10,19 +10,19 @@ export declare const UIStrings: {
|
|
|
10
10
|
/**
|
|
11
11
|
* @description Description of an insight that recommends ways to reduce the size of images downloaded and used on the page.
|
|
12
12
|
*/
|
|
13
|
-
readonly description: "Reducing the download time of images can improve the perceived load time of the page and LCP. [Learn more about optimizing image size](https://developer.chrome.com/docs/performance/insights/image-delivery)";
|
|
13
|
+
readonly description: "Reducing the download time of images can improve the perceived load time of the page and LCP. [Learn more about optimizing image size](https://developer.chrome.com/docs/performance/insights/image-delivery).";
|
|
14
14
|
/**
|
|
15
15
|
* @description Message displayed in a chip explaining that an image file size is large for the # of pixels it has and recommends possible adjustments to improve the image size.
|
|
16
16
|
*/
|
|
17
|
-
readonly useCompression: "Increasing the image compression factor could improve this image
|
|
17
|
+
readonly useCompression: "Increasing the image compression factor could improve this image’s download size";
|
|
18
18
|
/**
|
|
19
19
|
* @description Message displayed in a chip explaining that an image file size is large for the # of pixels it has and recommends possible adjustments to improve the image size.
|
|
20
20
|
*/
|
|
21
|
-
readonly useModernFormat: "Using a modern image format (WebP, AVIF) or increasing the image compression could improve this image
|
|
21
|
+
readonly useModernFormat: "Using a modern image format (WebP, AVIF) or increasing the image compression could improve this image’s download size";
|
|
22
22
|
/**
|
|
23
23
|
* @description Message displayed in a chip advising the user to use video formats instead of GIFs because videos generally have smaller file sizes.
|
|
24
24
|
*/
|
|
25
|
-
readonly useVideoFormat: "Using video formats instead of GIFs can improve the download size of animated content
|
|
25
|
+
readonly useVideoFormat: "Using video formats instead of GIFs can improve the download size of animated content";
|
|
26
26
|
/**
|
|
27
27
|
* @description Message displayed in a chip explaining that an image was displayed on the page with dimensions much smaller than the image file dimensions.
|
|
28
28
|
* @example {1000x500} PH1
|
|
@@ -39,7 +39,7 @@ export declare const UIStrings: {
|
|
|
39
39
|
*/
|
|
40
40
|
readonly others: "{PH1} others";
|
|
41
41
|
/**
|
|
42
|
-
* @description Text status indicating that no potential optimizations were found for any image file
|
|
42
|
+
* @description Text status indicating that no potential optimizations were found for any image file.
|
|
43
43
|
*/
|
|
44
44
|
readonly noOptimizableImages: "No optimizable images";
|
|
45
45
|
/**
|
|
@@ -49,7 +49,7 @@ export declare const UIStrings: {
|
|
|
49
49
|
*/
|
|
50
50
|
readonly estimatedSavings: "{PH1} (Est {PH2})";
|
|
51
51
|
};
|
|
52
|
-
export declare const i18nString:
|
|
52
|
+
export declare const i18nString: i18n.LocalizeString;
|
|
53
53
|
export declare enum ImageOptimizationType {
|
|
54
54
|
ADJUST_COMPRESSION = "ADJUST_COMPRESSION",
|
|
55
55
|
MODERN_FORMAT_OR_COMPRESSION = "MODERN_FORMAT_OR_COMPRESSION",
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import type * as Common from '../../../core/common/common.js';
|
|
2
|
+
import * as i18n from '../../../core/i18n/i18n.js';
|
|
2
3
|
import * as Handlers from '../handlers/handlers.js';
|
|
3
4
|
import * as Types from '../types/types.js';
|
|
4
5
|
import { type InsightModel, type InsightSetContext } from './types.js';
|
|
@@ -41,11 +42,11 @@ export declare const UIStrings: {
|
|
|
41
42
|
*/
|
|
42
43
|
readonly fieldDuration: "Field p75";
|
|
43
44
|
/**
|
|
44
|
-
* @description Text status indicating that the
|
|
45
|
+
* @description Text status indicating that the Largest Contentful Paint (LCP) metric timing was not found. "LCP" is an acronym and should not be translated.
|
|
45
46
|
*/
|
|
46
47
|
readonly noLcp: "No LCP detected";
|
|
47
48
|
};
|
|
48
|
-
export declare const i18nString:
|
|
49
|
+
export declare const i18nString: i18n.LocalizeString;
|
|
49
50
|
/** A TraceWindow plus its UIString. **/
|
|
50
51
|
export type Subpart = Types.Timing.TraceWindowMicro & {
|
|
51
52
|
label: {i18nId: string, values: Record<string, string|number>, formattedDefault: string};
|