devtools-tracing 1.1.0 → 1.2.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/.claude/settings.local.json +14 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +28854 -0
- package/package.json +10 -8
- package/generate.ts +0 -649
- package/index.ts +0 -17
- package/lib/extension-api/ExtensionAPI.d.ts +0 -357
- package/lib/front_end/core/common/App.ts +0 -7
- package/lib/front_end/core/common/AppProvider.ts +0 -32
- package/lib/front_end/core/common/Base64.ts +0 -47
- package/lib/front_end/core/common/CharacterIdMap.ts +0 -30
- package/lib/front_end/core/common/Color.ts +0 -2506
- package/lib/front_end/core/common/ColorConverter.ts +0 -402
- package/lib/front_end/core/common/ColorUtils.ts +0 -252
- package/lib/front_end/core/common/Console.ts +0 -114
- package/lib/front_end/core/common/Debouncer.ts +0 -15
- package/lib/front_end/core/common/EventTarget.ts +0 -52
- package/lib/front_end/core/common/Gzip.ts +0 -74
- package/lib/front_end/core/common/JavaScriptMetaData.ts +0 -29
- package/lib/front_end/core/common/Lazy.ts +0 -31
- package/lib/front_end/core/common/Linkifier.ts +0 -55
- package/lib/front_end/core/common/MapWithDefault.ts +0 -26
- package/lib/front_end/core/common/Mutex.ts +0 -55
- package/lib/front_end/core/common/Object.ts +0 -145
- package/lib/front_end/core/common/ParsedURL.ts +0 -554
- package/lib/front_end/core/common/Progress.ts +0 -180
- package/lib/front_end/core/common/QueryParamHandler.ts +0 -7
- package/lib/front_end/core/common/ResolverBase.ts +0 -85
- package/lib/front_end/core/common/ResourceType.ts +0 -588
- package/lib/front_end/core/common/ReturnToPanel.ts +0 -17
- package/lib/front_end/core/common/Revealer.ts +0 -192
- package/lib/front_end/core/common/Runnable.ts +0 -41
- package/lib/front_end/core/common/SegmentedRange.ts +0 -87
- package/lib/front_end/core/common/SettingRegistration.ts +0 -339
- package/lib/front_end/core/common/Settings.ts +0 -1497
- package/lib/front_end/core/common/SimpleHistoryManager.ts +0 -124
- package/lib/front_end/core/common/StringOutputStream.ts +0 -26
- package/lib/front_end/core/common/TextDictionary.ts +0 -48
- package/lib/front_end/core/common/Throttler.ts +0 -99
- package/lib/front_end/core/common/Trie.ts +0 -152
- package/lib/front_end/core/common/Worker.ts +0 -60
- package/lib/front_end/core/common/common.ts +0 -81
- package/lib/front_end/core/host/AidaClient.ts +0 -733
- package/lib/front_end/core/host/GdpClient.ts +0 -316
- package/lib/front_end/core/host/InspectorFrontendHost.ts +0 -648
- package/lib/front_end/core/host/InspectorFrontendHostAPI.ts +0 -551
- package/lib/front_end/core/host/Platform.ts +0 -76
- package/lib/front_end/core/host/ResourceLoader.ts +0 -282
- package/lib/front_end/core/host/UserMetrics.ts +0 -1230
- package/lib/front_end/core/host/host.ts +0 -23
- package/lib/front_end/core/i18n/ByteUtilities.ts +0 -82
- package/lib/front_end/core/i18n/DevToolsLocale.ts +0 -87
- package/lib/front_end/core/i18n/NumberFormatter.ts +0 -82
- package/lib/front_end/core/i18n/i18n.ts +0 -17
- package/lib/front_end/core/i18n/i18nImpl.ts +0 -204
- package/lib/front_end/core/i18n/i18nTypes.ts +0 -10
- package/lib/front_end/core/i18n/locales.js +0 -14
- package/lib/front_end/core/i18n/time-utilities.ts +0 -174
- package/lib/front_end/core/platform/ArrayUtilities.ts +0 -271
- package/lib/front_end/core/platform/Brand.ts +0 -23
- package/lib/front_end/core/platform/Constructor.ts +0 -10
- package/lib/front_end/core/platform/DOMUtilities.ts +0 -138
- package/lib/front_end/core/platform/DateUtilities.ts +0 -15
- package/lib/front_end/core/platform/DevToolsPath.ts +0 -53
- package/lib/front_end/core/platform/KeyboardUtilities.ts +0 -38
- package/lib/front_end/core/platform/MapUtilities.ts +0 -95
- package/lib/front_end/core/platform/MimeType.ts +0 -175
- package/lib/front_end/core/platform/NumberUtilities.ts +0 -80
- package/lib/front_end/core/platform/StringUtilities.ts +0 -588
- package/lib/front_end/core/platform/Timing.ts +0 -17
- package/lib/front_end/core/platform/TypedArrayUtilities.ts +0 -189
- package/lib/front_end/core/platform/TypescriptUtilities.ts +0 -86
- package/lib/front_end/core/platform/UIString.ts +0 -39
- package/lib/front_end/core/platform/UserVisibleError.ts +0 -28
- package/lib/front_end/core/platform/platform.ts +0 -45
- package/lib/front_end/core/protocol_client/ConnectionTransport.ts +0 -26
- package/lib/front_end/core/protocol_client/InspectorBackend.ts +0 -1050
- package/lib/front_end/core/protocol_client/NodeURL.ts +0 -42
- package/lib/front_end/core/protocol_client/protocol_client.ts +0 -13
- package/lib/front_end/core/root/Runtime.ts +0 -609
- package/lib/front_end/core/root/root.ts +0 -6
- package/lib/front_end/core/sdk/AccessibilityModel.ts +0 -353
- package/lib/front_end/core/sdk/AnimationModel.ts +0 -1041
- package/lib/front_end/core/sdk/AutofillModel.ts +0 -184
- package/lib/front_end/core/sdk/CPUProfilerModel.ts +0 -148
- package/lib/front_end/core/sdk/CPUThrottlingManager.ts +0 -282
- package/lib/front_end/core/sdk/CSSContainerQuery.ts +0 -139
- package/lib/front_end/core/sdk/CSSFontFace.ts +0 -40
- package/lib/front_end/core/sdk/CSSLayer.ts +0 -30
- package/lib/front_end/core/sdk/CSSMatchedStyles.ts +0 -1646
- package/lib/front_end/core/sdk/CSSMedia.ts +0 -121
- package/lib/front_end/core/sdk/CSSMetadata.ts +0 -1647
- package/lib/front_end/core/sdk/CSSModel.ts +0 -1128
- package/lib/front_end/core/sdk/CSSProperty.ts +0 -384
- package/lib/front_end/core/sdk/CSSPropertyParser.ts +0 -681
- package/lib/front_end/core/sdk/CSSPropertyParserMatchers.ts +0 -1395
- package/lib/front_end/core/sdk/CSSQuery.ts +0 -72
- package/lib/front_end/core/sdk/CSSRule.ts +0 -465
- package/lib/front_end/core/sdk/CSSScope.ts +0 -30
- package/lib/front_end/core/sdk/CSSStartingStyle.ts +0 -29
- package/lib/front_end/core/sdk/CSSStyleDeclaration.ts +0 -313
- package/lib/front_end/core/sdk/CSSStyleSheetHeader.ts +0 -196
- package/lib/front_end/core/sdk/CSSSupports.ts +0 -33
- package/lib/front_end/core/sdk/CategorizedBreakpoint.ts +0 -64
- package/lib/front_end/core/sdk/ChildTargetManager.ts +0 -314
- package/lib/front_end/core/sdk/CompilerSourceMappingContentProvider.ts +0 -62
- package/lib/front_end/core/sdk/Connections.ts +0 -293
- package/lib/front_end/core/sdk/ConsoleModel.ts +0 -808
- package/lib/front_end/core/sdk/ConsoleModelTypes.ts +0 -15
- package/lib/front_end/core/sdk/Cookie.ts +0 -319
- package/lib/front_end/core/sdk/CookieModel.ts +0 -239
- package/lib/front_end/core/sdk/CookieParser.ts +0 -185
- package/lib/front_end/core/sdk/DOMDebuggerModel.ts +0 -787
- package/lib/front_end/core/sdk/DOMModel.ts +0 -1961
- package/lib/front_end/core/sdk/DebuggerModel.ts +0 -1605
- package/lib/front_end/core/sdk/EmulationModel.ts +0 -648
- package/lib/front_end/core/sdk/EnhancedTracesParser.ts +0 -515
- package/lib/front_end/core/sdk/EventBreakpointsModel.ts +0 -183
- package/lib/front_end/core/sdk/FrameAssociated.ts +0 -11
- package/lib/front_end/core/sdk/FrameManager.ts +0 -259
- package/lib/front_end/core/sdk/HeapProfilerModel.ts +0 -225
- package/lib/front_end/core/sdk/HttpReasonPhraseStrings.ts +0 -77
- package/lib/front_end/core/sdk/IOModel.ts +0 -91
- package/lib/front_end/core/sdk/IsolateManager.ts +0 -257
- package/lib/front_end/core/sdk/IssuesModel.ts +0 -70
- package/lib/front_end/core/sdk/LayerTreeBase.ts +0 -169
- package/lib/front_end/core/sdk/LogModel.ts +0 -56
- package/lib/front_end/core/sdk/NetworkManager.ts +0 -2823
- package/lib/front_end/core/sdk/NetworkRequest.ts +0 -2253
- package/lib/front_end/core/sdk/OverlayColorGenerator.ts +0 -52
- package/lib/front_end/core/sdk/OverlayModel.ts +0 -1011
- package/lib/front_end/core/sdk/OverlayPersistentHighlighter.ts +0 -522
- package/lib/front_end/core/sdk/PageLoad.ts +0 -35
- package/lib/front_end/core/sdk/PageResourceLoader.ts +0 -435
- package/lib/front_end/core/sdk/PaintProfiler.ts +0 -110
- package/lib/front_end/core/sdk/PerformanceMetricsModel.ts +0 -84
- package/lib/front_end/core/sdk/PreloadingModel.ts +0 -863
- package/lib/front_end/core/sdk/RehydratingConnection.ts +0 -386
- package/lib/front_end/core/sdk/RehydratingObject.ts +0 -66
- package/lib/front_end/core/sdk/RemoteObject.ts +0 -1160
- package/lib/front_end/core/sdk/Resource.ts +0 -232
- package/lib/front_end/core/sdk/ResourceTreeModel.ts +0 -1160
- package/lib/front_end/core/sdk/RuntimeModel.ts +0 -732
- package/lib/front_end/core/sdk/SDKModel.ts +0 -65
- package/lib/front_end/core/sdk/ScopeTreeCache.ts +0 -45
- package/lib/front_end/core/sdk/ScreenCaptureModel.ts +0 -255
- package/lib/front_end/core/sdk/Script.ts +0 -534
- package/lib/front_end/core/sdk/SecurityOriginManager.ts +0 -76
- package/lib/front_end/core/sdk/ServerSentEvents.ts +0 -80
- package/lib/front_end/core/sdk/ServerSentEventsProtocol.ts +0 -122
- package/lib/front_end/core/sdk/ServerTiming.ts +0 -260
- package/lib/front_end/core/sdk/ServiceWorkerCacheModel.ts +0 -377
- package/lib/front_end/core/sdk/ServiceWorkerManager.ts +0 -605
- package/lib/front_end/core/sdk/SourceMap.ts +0 -867
- package/lib/front_end/core/sdk/SourceMapCache.ts +0 -54
- package/lib/front_end/core/sdk/SourceMapFunctionRanges.ts +0 -156
- package/lib/front_end/core/sdk/SourceMapManager.ts +0 -239
- package/lib/front_end/core/sdk/SourceMapScopeChainEntry.ts +0 -189
- package/lib/front_end/core/sdk/SourceMapScopesInfo.ts +0 -508
- package/lib/front_end/core/sdk/StorageBucketsModel.ts +0 -204
- package/lib/front_end/core/sdk/StorageKeyManager.ts +0 -98
- package/lib/front_end/core/sdk/Target.ts +0 -332
- package/lib/front_end/core/sdk/TargetManager.ts +0 -453
- package/lib/front_end/core/sdk/TraceObject.ts +0 -61
- package/lib/front_end/core/sdk/WebAuthnModel.ts +0 -104
- package/lib/front_end/core/sdk/sdk.ts +0 -174
- package/lib/front_end/entrypoints/formatter_worker/FormatterActions.ts +0 -59
- package/lib/front_end/generated/InspectorBackendCommands.js +0 -1617
- package/lib/front_end/generated/SupportedCSSProperties.js +0 -7512
- package/lib/front_end/generated/protocol-proxy-api.d.ts +0 -5022
- package/lib/front_end/generated/protocol.ts +0 -22014
- package/lib/front_end/models/bindings/CSSWorkspaceBinding.ts +0 -318
- package/lib/front_end/models/bindings/CompilerScriptMapping.ts +0 -536
- package/lib/front_end/models/bindings/ContentProviderBasedProject.ts +0 -187
- package/lib/front_end/models/bindings/DebuggerLanguagePlugins.ts +0 -1197
- package/lib/front_end/models/bindings/DebuggerWorkspaceBinding.ts +0 -733
- package/lib/front_end/models/bindings/DefaultScriptMapping.ts +0 -141
- package/lib/front_end/models/bindings/FileUtils.ts +0 -228
- package/lib/front_end/models/bindings/LiveLocation.ts +0 -81
- package/lib/front_end/models/bindings/NetworkProject.ts +0 -157
- package/lib/front_end/models/bindings/PresentationConsoleMessageHelper.ts +0 -312
- package/lib/front_end/models/bindings/ResourceMapping.ts +0 -539
- package/lib/front_end/models/bindings/ResourceScriptMapping.ts +0 -491
- package/lib/front_end/models/bindings/ResourceUtils.ts +0 -103
- package/lib/front_end/models/bindings/SASSSourceMapping.ts +0 -222
- package/lib/front_end/models/bindings/StylesSourceMapping.ts +0 -316
- package/lib/front_end/models/bindings/TempFile.ts +0 -67
- package/lib/front_end/models/bindings/bindings.ts +0 -39
- package/lib/front_end/models/cpu_profile/CPUProfileDataModel.ts +0 -571
- package/lib/front_end/models/cpu_profile/ProfileTreeModel.ts +0 -103
- package/lib/front_end/models/cpu_profile/cpu_profile.ts +0 -11
- package/lib/front_end/models/formatter/FormatterWorkerPool.ts +0 -219
- package/lib/front_end/models/formatter/ScriptFormatter.ts +0 -112
- package/lib/front_end/models/formatter/formatter.ts +0 -8
- package/lib/front_end/models/source_map_scopes/NamesResolver.ts +0 -765
- package/lib/front_end/models/source_map_scopes/ScopeChainModel.ts +0 -84
- package/lib/front_end/models/source_map_scopes/source_map_scopes.ts +0 -11
- package/lib/front_end/models/stack_trace/StackTrace.ts +0 -53
- package/lib/front_end/models/stack_trace/StackTraceImpl.ts +0 -85
- package/lib/front_end/models/stack_trace/StackTraceModel.ts +0 -128
- package/lib/front_end/models/stack_trace/Trie.ts +0 -163
- package/lib/front_end/models/stack_trace/stack_trace.ts +0 -9
- package/lib/front_end/models/stack_trace/stack_trace_impl.ts +0 -13
- package/lib/front_end/models/text_utils/CodeMirrorUtils.ts +0 -37
- package/lib/front_end/models/text_utils/ContentData.ts +0 -199
- package/lib/front_end/models/text_utils/ContentProvider.ts +0 -68
- package/lib/front_end/models/text_utils/StaticContentProvider.ts +0 -49
- package/lib/front_end/models/text_utils/StreamingContentData.ts +0 -108
- package/lib/front_end/models/text_utils/Text.ts +0 -90
- package/lib/front_end/models/text_utils/TextCursor.ts +0 -44
- package/lib/front_end/models/text_utils/TextRange.ts +0 -266
- package/lib/front_end/models/text_utils/TextUtils.ts +0 -401
- package/lib/front_end/models/text_utils/WasmDisassembly.ts +0 -87
- package/lib/front_end/models/text_utils/text_utils.ts +0 -27
- package/lib/front_end/models/trace/EntityMapper.ts +0 -141
- package/lib/front_end/models/trace/EventsSerializer.ts +0 -101
- package/lib/front_end/models/trace/LanternComputationData.ts +0 -438
- package/lib/front_end/models/trace/ModelImpl.ts +0 -236
- package/lib/front_end/models/trace/Name.ts +0 -136
- package/lib/front_end/models/trace/Processor.ts +0 -652
- package/lib/front_end/models/trace/Styles.ts +0 -1138
- package/lib/front_end/models/trace/extras/FilmStrip.ts +0 -78
- package/lib/front_end/models/trace/extras/MainThreadActivity.ts +0 -86
- package/lib/front_end/models/trace/extras/ScriptDuplication.ts +0 -236
- package/lib/front_end/models/trace/extras/StackTraceForEvent.ts +0 -203
- package/lib/front_end/models/trace/extras/ThirdParties.ts +0 -164
- package/lib/front_end/models/trace/extras/TraceFilter.ts +0 -62
- package/lib/front_end/models/trace/extras/TraceTree.ts +0 -701
- package/lib/front_end/models/trace/extras/extras.ts +0 -11
- package/lib/front_end/models/trace/handlers/AnimationFramesHandler.ts +0 -128
- package/lib/front_end/models/trace/handlers/AnimationHandler.ts +0 -36
- package/lib/front_end/models/trace/handlers/AsyncJSCallsHandler.ts +0 -239
- package/lib/front_end/models/trace/handlers/AuctionWorkletsHandler.ts +0 -183
- package/lib/front_end/models/trace/handlers/DOMStatsHandler.ts +0 -31
- package/lib/front_end/models/trace/handlers/ExtensionTraceDataHandler.ts +0 -306
- package/lib/front_end/models/trace/handlers/FlowsHandler.ts +0 -175
- package/lib/front_end/models/trace/handlers/FramesHandler.ts +0 -571
- package/lib/front_end/models/trace/handlers/GPUHandler.ts +0 -50
- package/lib/front_end/models/trace/handlers/ImagePaintingHandler.ts +0 -183
- package/lib/front_end/models/trace/handlers/InitiatorsHandler.ts +0 -193
- package/lib/front_end/models/trace/handlers/InvalidationsHandler.ts +0 -168
- package/lib/front_end/models/trace/handlers/LargestImagePaintHandler.ts +0 -109
- package/lib/front_end/models/trace/handlers/LargestTextPaintHandler.ts +0 -35
- package/lib/front_end/models/trace/handlers/LayerTreeHandler.ts +0 -123
- package/lib/front_end/models/trace/handlers/LayoutShiftsHandler.ts +0 -573
- package/lib/front_end/models/trace/handlers/MemoryHandler.ts +0 -31
- package/lib/front_end/models/trace/handlers/MetaHandler.ts +0 -525
- package/lib/front_end/models/trace/handlers/ModelHandlers.ts +0 -34
- package/lib/front_end/models/trace/handlers/NetworkRequestsHandler.ts +0 -672
- package/lib/front_end/models/trace/handlers/PageFramesHandler.ts +0 -52
- package/lib/front_end/models/trace/handlers/PageLoadMetricsHandler.ts +0 -460
- package/lib/front_end/models/trace/handlers/RendererHandler.ts +0 -428
- package/lib/front_end/models/trace/handlers/SamplesHandler.ts +0 -271
- package/lib/front_end/models/trace/handlers/ScreenshotsHandler.ts +0 -122
- package/lib/front_end/models/trace/handlers/ScriptsHandler.ts +0 -336
- package/lib/front_end/models/trace/handlers/SelectorStatsHandler.ts +0 -110
- package/lib/front_end/models/trace/handlers/Threads.ts +0 -139
- package/lib/front_end/models/trace/handlers/UserInteractionsHandler.ts +0 -400
- package/lib/front_end/models/trace/handlers/UserTimingsHandler.ts +0 -233
- package/lib/front_end/models/trace/handlers/WarningsHandler.ts +0 -162
- package/lib/front_end/models/trace/handlers/WorkersHandler.ts +0 -45
- package/lib/front_end/models/trace/handlers/handlers.ts +0 -8
- package/lib/front_end/models/trace/handlers/helpers.ts +0 -196
- package/lib/front_end/models/trace/handlers/types.ts +0 -75
- package/lib/front_end/models/trace/helpers/Extensions.ts +0 -54
- package/lib/front_end/models/trace/helpers/Network.ts +0 -129
- package/lib/front_end/models/trace/helpers/SamplesIntegrator.ts +0 -544
- package/lib/front_end/models/trace/helpers/SyntheticEvents.ts +0 -87
- package/lib/front_end/models/trace/helpers/Timing.ts +0 -248
- package/lib/front_end/models/trace/helpers/Trace.ts +0 -928
- package/lib/front_end/models/trace/helpers/TreeHelpers.ts +0 -320
- package/lib/front_end/models/trace/helpers/helpers.ts +0 -11
- package/lib/front_end/models/trace/insights/CLSCulprits.ts +0 -668
- package/lib/front_end/models/trace/insights/Cache.ts +0 -269
- package/lib/front_end/models/trace/insights/Common.ts +0 -453
- package/lib/front_end/models/trace/insights/DOMSize.ts +0 -223
- package/lib/front_end/models/trace/insights/DocumentLatency.ts +0 -319
- package/lib/front_end/models/trace/insights/DuplicatedJavaScript.ts +0 -126
- package/lib/front_end/models/trace/insights/FontDisplay.ts +0 -119
- package/lib/front_end/models/trace/insights/ForcedReflow.ts +0 -220
- package/lib/front_end/models/trace/insights/INPBreakdown.ts +0 -171
- package/lib/front_end/models/trace/insights/ImageDelivery.ts +0 -348
- package/lib/front_end/models/trace/insights/LCPBreakdown.ts +0 -268
- package/lib/front_end/models/trace/insights/LCPDiscovery.ts +0 -237
- package/lib/front_end/models/trace/insights/LegacyJavaScript.ts +0 -138
- package/lib/front_end/models/trace/insights/Models.ts +0 -22
- package/lib/front_end/models/trace/insights/ModernHTTP.ts +0 -257
- package/lib/front_end/models/trace/insights/NetworkDependencyTree.ts +0 -726
- package/lib/front_end/models/trace/insights/RenderBlocking.ts +0 -257
- package/lib/front_end/models/trace/insights/SlowCSSSelector.ts +0 -175
- package/lib/front_end/models/trace/insights/Statistics.ts +0 -101
- package/lib/front_end/models/trace/insights/ThirdParties.ts +0 -130
- package/lib/front_end/models/trace/insights/Viewport.ts +0 -138
- package/lib/front_end/models/trace/insights/insights.ts +0 -10
- package/lib/front_end/models/trace/insights/types.ts +0 -157
- package/lib/front_end/models/trace/lantern/core/LanternError.ts +0 -7
- package/lib/front_end/models/trace/lantern/core/NetworkAnalyzer.ts +0 -619
- package/lib/front_end/models/trace/lantern/core/core.ts +0 -6
- package/lib/front_end/models/trace/lantern/graph/BaseNode.ts +0 -345
- package/lib/front_end/models/trace/lantern/graph/CPUNode.ts +0 -80
- package/lib/front_end/models/trace/lantern/graph/NetworkNode.ts +0 -101
- package/lib/front_end/models/trace/lantern/graph/PageDependencyGraph.ts +0 -636
- package/lib/front_end/models/trace/lantern/graph/graph.ts +0 -8
- package/lib/front_end/models/trace/lantern/lantern.ts +0 -17
- package/lib/front_end/models/trace/lantern/metrics/FirstContentfulPaint.ts +0 -187
- package/lib/front_end/models/trace/lantern/metrics/Interactive.ts +0 -88
- package/lib/front_end/models/trace/lantern/metrics/LargestContentfulPaint.ts +0 -92
- package/lib/front_end/models/trace/lantern/metrics/MaxPotentialFID.ts +0 -72
- package/lib/front_end/models/trace/lantern/metrics/Metric.ts +0 -126
- package/lib/front_end/models/trace/lantern/metrics/SpeedIndex.ts +0 -126
- package/lib/front_end/models/trace/lantern/metrics/TBTUtils.ts +0 -82
- package/lib/front_end/models/trace/lantern/metrics/TotalBlockingTime.ts +0 -112
- package/lib/front_end/models/trace/lantern/metrics/metrics.ts +0 -12
- package/lib/front_end/models/trace/lantern/simulation/ConnectionPool.ts +0 -150
- package/lib/front_end/models/trace/lantern/simulation/Constants.ts +0 -46
- package/lib/front_end/models/trace/lantern/simulation/DNSCache.ts +0 -61
- package/lib/front_end/models/trace/lantern/simulation/SimulationTimingMap.ts +0 -196
- package/lib/front_end/models/trace/lantern/simulation/Simulator.ts +0 -556
- package/lib/front_end/models/trace/lantern/simulation/TCPConnection.ts +0 -192
- package/lib/front_end/models/trace/lantern/simulation/simulation.ts +0 -10
- package/lib/front_end/models/trace/lantern/types/Lantern.ts +0 -220
- package/lib/front_end/models/trace/lantern/types/types.ts +0 -5
- package/lib/front_end/models/trace/trace.ts +0 -33
- package/lib/front_end/models/trace/types/Configuration.ts +0 -110
- package/lib/front_end/models/trace/types/Extensions.ts +0 -136
- package/lib/front_end/models/trace/types/File.ts +0 -281
- package/lib/front_end/models/trace/types/Overlays.ts +0 -138
- package/lib/front_end/models/trace/types/Timing.ts +0 -30
- package/lib/front_end/models/trace/types/TraceEvents.ts +0 -3277
- package/lib/front_end/models/trace/types/types.ts +0 -10
- package/lib/front_end/models/trace_source_maps_resolver/SourceMapsResolver.ts +0 -240
- package/lib/front_end/models/trace_source_maps_resolver/trace_source_maps_resolver.ts +0 -5
- package/lib/front_end/models/workspace/FileManager.ts +0 -97
- package/lib/front_end/models/workspace/IgnoreListManager.ts +0 -628
- package/lib/front_end/models/workspace/SearchConfig.ts +0 -149
- package/lib/front_end/models/workspace/UISourceCode.ts +0 -698
- package/lib/front_end/models/workspace/WorkspaceImpl.ts +0 -339
- package/lib/front_end/models/workspace/workspace.ts +0 -17
- package/lib/front_end/panels/timeline/TimelineUIUtils.ts +0 -1029
- package/lib/front_end/panels/timeline/extensions/ExtensionUI.ts +0 -49
- package/lib/front_end/panels/timeline/extensions/extensions.ts +0 -9
- package/lib/front_end/third_party/codemirror.next/LICENSE +0 -21
- package/lib/front_end/third_party/codemirror.next/README.chromium +0 -30
- package/lib/front_end/third_party/codemirror.next/bundle-tsconfig.json +0 -24
- package/lib/front_end/third_party/codemirror.next/bundle.ts +0 -135
- package/lib/front_end/third_party/codemirror.next/chunk/angular.js +0 -2
- package/lib/front_end/third_party/codemirror.next/chunk/angular.js.map +0 -1
- package/lib/front_end/third_party/codemirror.next/chunk/codemirror.js +0 -2
- package/lib/front_end/third_party/codemirror.next/chunk/codemirror.js.map +0 -1
- package/lib/front_end/third_party/codemirror.next/chunk/cpp.js +0 -2
- package/lib/front_end/third_party/codemirror.next/chunk/cpp.js.map +0 -1
- package/lib/front_end/third_party/codemirror.next/chunk/css.js +0 -2
- package/lib/front_end/third_party/codemirror.next/chunk/html.js +0 -4
- package/lib/front_end/third_party/codemirror.next/chunk/java.js +0 -2
- package/lib/front_end/third_party/codemirror.next/chunk/java.js.map +0 -1
- package/lib/front_end/third_party/codemirror.next/chunk/javascript.js +0 -2
- package/lib/front_end/third_party/codemirror.next/chunk/legacy.js +0 -2
- package/lib/front_end/third_party/codemirror.next/chunk/legacy.js.map +0 -1
- package/lib/front_end/third_party/codemirror.next/chunk/less.js +0 -2
- package/lib/front_end/third_party/codemirror.next/chunk/less.js.map +0 -1
- package/lib/front_end/third_party/codemirror.next/chunk/markdown.js +0 -2
- package/lib/front_end/third_party/codemirror.next/chunk/markdown.js.map +0 -1
- package/lib/front_end/third_party/codemirror.next/chunk/php.js +0 -2
- package/lib/front_end/third_party/codemirror.next/chunk/php.js.map +0 -1
- package/lib/front_end/third_party/codemirror.next/chunk/python.js +0 -2
- package/lib/front_end/third_party/codemirror.next/chunk/python.js.map +0 -1
- package/lib/front_end/third_party/codemirror.next/chunk/sass.js +0 -2
- package/lib/front_end/third_party/codemirror.next/chunk/sass.js.map +0 -1
- package/lib/front_end/third_party/codemirror.next/chunk/svelte.js +0 -2
- package/lib/front_end/third_party/codemirror.next/chunk/svelte.js.map +0 -1
- package/lib/front_end/third_party/codemirror.next/chunk/vue.js +0 -2
- package/lib/front_end/third_party/codemirror.next/chunk/vue.js.map +0 -1
- package/lib/front_end/third_party/codemirror.next/chunk/wast.js +0 -2
- package/lib/front_end/third_party/codemirror.next/chunk/wast.js.map +0 -1
- package/lib/front_end/third_party/codemirror.next/chunk/xml.js +0 -2
- package/lib/front_end/third_party/codemirror.next/chunk/xml.js.map +0 -1
- package/lib/front_end/third_party/codemirror.next/codemirror.next.d.ts +0 -8057
- package/lib/front_end/third_party/codemirror.next/codemirror.next.js +0 -2
- package/lib/front_end/third_party/codemirror.next/codemirror.next.js.map +0 -1
- package/lib/front_end/third_party/codemirror.next/package.json +0 -43
- package/lib/front_end/third_party/codemirror.next/rebuild.sh +0 -6
- package/lib/front_end/third_party/codemirror.next/rollup.config.mjs +0 -49
- package/lib/front_end/third_party/i18n/LICENSE +0 -202
- package/lib/front_end/third_party/i18n/README.chromium +0 -15
- package/lib/front_end/third_party/i18n/i18n-impl.ts +0 -61
- package/lib/front_end/third_party/i18n/i18n.ts +0 -11
- package/lib/front_end/third_party/i18n/localized-string-set.ts +0 -129
- package/lib/front_end/third_party/intl-messageformat/LICENSE +0 -33
- package/lib/front_end/third_party/intl-messageformat/README.chromium +0 -24
- package/lib/front_end/third_party/intl-messageformat/intl-messageformat-tsconfig.json +0 -16
- package/lib/front_end/third_party/intl-messageformat/intl-messageformat.ts +0 -6
- package/lib/front_end/third_party/intl-messageformat/package/LICENSE.md +0 -33
- package/lib/front_end/third_party/intl-messageformat/package/README.md +0 -3
- package/lib/front_end/third_party/intl-messageformat/package/index.d.ts +0 -6
- package/lib/front_end/third_party/intl-messageformat/package/index.d.ts.map +0 -1
- package/lib/front_end/third_party/intl-messageformat/package/index.js +0 -13
- package/lib/front_end/third_party/intl-messageformat/package/intl-messageformat.esm.d.ts +0 -5
- package/lib/front_end/third_party/intl-messageformat/package/intl-messageformat.esm.js +0 -1710
- package/lib/front_end/third_party/intl-messageformat/package/intl-messageformat.iife.js +0 -1815
- package/lib/front_end/third_party/intl-messageformat/package/lib/index.d.ts +0 -6
- package/lib/front_end/third_party/intl-messageformat/package/lib/index.d.ts.map +0 -1
- package/lib/front_end/third_party/intl-messageformat/package/lib/index.js +0 -10
- package/lib/front_end/third_party/intl-messageformat/package/lib/src/core.d.ts +0 -34
- package/lib/front_end/third_party/intl-messageformat/package/lib/src/core.d.ts.map +0 -1
- package/lib/front_end/third_party/intl-messageformat/package/lib/src/core.js +0 -229
- package/lib/front_end/third_party/intl-messageformat/package/lib/src/error.d.ts +0 -28
- package/lib/front_end/third_party/intl-messageformat/package/lib/src/error.d.ts.map +0 -1
- package/lib/front_end/third_party/intl-messageformat/package/lib/src/error.js +0 -48
- package/lib/front_end/third_party/intl-messageformat/package/lib/src/formatters.d.ts +0 -34
- package/lib/front_end/third_party/intl-messageformat/package/lib/src/formatters.d.ts.map +0 -1
- package/lib/front_end/third_party/intl-messageformat/package/lib/src/formatters.js +0 -179
- package/lib/front_end/third_party/intl-messageformat/package/package.json +0 -42
- package/lib/front_end/third_party/intl-messageformat/package/src/core.d.ts +0 -34
- package/lib/front_end/third_party/intl-messageformat/package/src/core.d.ts.map +0 -1
- package/lib/front_end/third_party/intl-messageformat/package/src/core.js +0 -230
- package/lib/front_end/third_party/intl-messageformat/package/src/error.d.ts +0 -28
- package/lib/front_end/third_party/intl-messageformat/package/src/error.d.ts.map +0 -1
- package/lib/front_end/third_party/intl-messageformat/package/src/error.js +0 -51
- package/lib/front_end/third_party/intl-messageformat/package/src/formatters.d.ts +0 -34
- package/lib/front_end/third_party/intl-messageformat/package/src/formatters.d.ts.map +0 -1
- package/lib/front_end/third_party/intl-messageformat/package/src/formatters.js +0 -182
- package/lib/front_end/third_party/intl-messageformat/package/src/icu-messageformat-parser/error.d.ts +0 -79
- package/lib/front_end/third_party/intl-messageformat/package/src/icu-messageformat-parser/index.d.ts +0 -15
- package/lib/front_end/third_party/intl-messageformat/package/src/icu-messageformat-parser/parser.d.ts +0 -153
- package/lib/front_end/third_party/intl-messageformat/package/src/icu-messageformat-parser/types.d.ts +0 -139
- package/lib/front_end/third_party/legacy-javascript/LICENSE +0 -202
- package/lib/front_end/third_party/legacy-javascript/README.chromium +0 -13
- package/lib/front_end/third_party/legacy-javascript/legacy-javascript-tsconfig.json +0 -8
- package/lib/front_end/third_party/legacy-javascript/legacy-javascript.ts +0 -3
- package/lib/front_end/third_party/legacy-javascript/lib/legacy-javascript.d.ts +0 -18
- package/lib/front_end/third_party/legacy-javascript/lib/legacy-javascript.js +0 -943
- package/lib/front_end/third_party/legacy-javascript/package.json +0 -8
- package/lib/front_end/third_party/legacy-javascript/rebuild.sh +0 -9
- package/lib/front_end/third_party/source-map-scopes-codec/LICENSE +0 -26
- package/lib/front_end/third_party/source-map-scopes-codec/README.chromium +0 -31
- package/lib/front_end/third_party/source-map-scopes-codec/package/CONTRIBUTING.md +0 -33
- package/lib/front_end/third_party/source-map-scopes-codec/package/LICENSE +0 -26
- package/lib/front_end/third_party/source-map-scopes-codec/package/README.md +0 -64
- package/lib/front_end/third_party/source-map-scopes-codec/package/_dist/src/builder/builder.d.ts +0 -62
- package/lib/front_end/third_party/source-map-scopes-codec/package/_dist/src/builder/builder.d.ts.map +0 -1
- package/lib/front_end/third_party/source-map-scopes-codec/package/_dist/src/builder/safe_builder.d.ts +0 -37
- package/lib/front_end/third_party/source-map-scopes-codec/package/_dist/src/builder/safe_builder.d.ts.map +0 -1
- package/lib/front_end/third_party/source-map-scopes-codec/package/_dist/src/decode/decode.d.ts +0 -29
- package/lib/front_end/third_party/source-map-scopes-codec/package/_dist/src/decode/decode.d.ts.map +0 -1
- package/lib/front_end/third_party/source-map-scopes-codec/package/_dist/src/encode/encode.d.ts +0 -8
- package/lib/front_end/third_party/source-map-scopes-codec/package/_dist/src/encode/encode.d.ts.map +0 -1
- package/lib/front_end/third_party/source-map-scopes-codec/package/_dist/src/mod.d.ts +0 -6
- package/lib/front_end/third_party/source-map-scopes-codec/package/_dist/src/mod.d.ts.map +0 -1
- package/lib/front_end/third_party/source-map-scopes-codec/package/deno.json +0 -21
- package/lib/front_end/third_party/source-map-scopes-codec/package/package.json +0 -14
- package/lib/front_end/third_party/source-map-scopes-codec/package/src/builder/builder.js +0 -196
- package/lib/front_end/third_party/source-map-scopes-codec/package/src/builder/builder.js.map +0 -1
- package/lib/front_end/third_party/source-map-scopes-codec/package/src/builder/builder.ts +0 -262
- package/lib/front_end/third_party/source-map-scopes-codec/package/src/builder/safe_builder.js +0 -235
- package/lib/front_end/third_party/source-map-scopes-codec/package/src/builder/safe_builder.js.map +0 -1
- package/lib/front_end/third_party/source-map-scopes-codec/package/src/builder/safe_builder.ts +0 -359
- package/lib/front_end/third_party/source-map-scopes-codec/package/src/codec.js +0 -39
- package/lib/front_end/third_party/source-map-scopes-codec/package/src/codec.js.map +0 -1
- package/lib/front_end/third_party/source-map-scopes-codec/package/src/codec.ts +0 -53
- package/lib/front_end/third_party/source-map-scopes-codec/package/src/decode/decode.js +0 -438
- package/lib/front_end/third_party/source-map-scopes-codec/package/src/decode/decode.js.map +0 -1
- package/lib/front_end/third_party/source-map-scopes-codec/package/src/decode/decode.ts +0 -539
- package/lib/front_end/third_party/source-map-scopes-codec/package/src/encode/encode.js +0 -23
- package/lib/front_end/third_party/source-map-scopes-codec/package/src/encode/encode.js.map +0 -1
- package/lib/front_end/third_party/source-map-scopes-codec/package/src/encode/encode.ts +0 -35
- package/lib/front_end/third_party/source-map-scopes-codec/package/src/encode/encoder.js +0 -257
- package/lib/front_end/third_party/source-map-scopes-codec/package/src/encode/encoder.js.map +0 -1
- package/lib/front_end/third_party/source-map-scopes-codec/package/src/encode/encoder.ts +0 -348
- package/lib/front_end/third_party/source-map-scopes-codec/package/src/mod.js +0 -8
- package/lib/front_end/third_party/source-map-scopes-codec/package/src/mod.js.map +0 -1
- package/lib/front_end/third_party/source-map-scopes-codec/package/src/mod.ts +0 -20
- package/lib/front_end/third_party/source-map-scopes-codec/package/src/scopes-tsconfig.json +0 -8
- package/lib/front_end/third_party/source-map-scopes-codec/package/src/scopes.d.ts +0 -184
- package/lib/front_end/third_party/source-map-scopes-codec/package/src/util.js +0 -9
- package/lib/front_end/third_party/source-map-scopes-codec/package/src/util.js.map +0 -1
- package/lib/front_end/third_party/source-map-scopes-codec/package/src/util.ts +0 -12
- package/lib/front_end/third_party/source-map-scopes-codec/package/src/vlq.js +0 -82
- package/lib/front_end/third_party/source-map-scopes-codec/package/src/vlq.js.map +0 -1
- package/lib/front_end/third_party/source-map-scopes-codec/package/src/vlq.ts +0 -99
- package/lib/front_end/third_party/source-map-scopes-codec/source-map-scopes-codec.ts +0 -5
- package/lib/front_end/third_party/third-party-web/LICENSE +0 -20
- package/lib/front_end/third_party/third-party-web/README.chromium +0 -13
- package/lib/front_end/third_party/third-party-web/lib/nostats-subset.d.ts +0 -2
- package/lib/front_end/third_party/third-party-web/lib/nostats-subset.js +0 -149
- package/lib/front_end/third_party/third-party-web/package/LICENSE +0 -20
- package/lib/front_end/third_party/third-party-web/package/README.md +0 -929
- package/lib/front_end/third_party/third-party-web/package/dist/entities-httparchive-nostats.json +0 -1
- package/lib/front_end/third_party/third-party-web/package/dist/entities-httparchive.json +0 -1
- package/lib/front_end/third_party/third-party-web/package/dist/entities-nostats.json +0 -1
- package/lib/front_end/third_party/third-party-web/package/dist/entities.json +0 -1
- package/lib/front_end/third_party/third-party-web/package/facades.md +0 -46
- package/lib/front_end/third_party/third-party-web/package/httparchive-nostats-subset.d.ts +0 -1
- package/lib/front_end/third_party/third-party-web/package/httparchive-nostats-subset.js +0 -1
- package/lib/front_end/third_party/third-party-web/package/httparchive-subset.d.ts +0 -1
- package/lib/front_end/third_party/third-party-web/package/httparchive-subset.js +0 -1
- package/lib/front_end/third_party/third-party-web/package/lib/__snapshots__/index.test.js.snap +0 -1006
- package/lib/front_end/third_party/third-party-web/package/lib/create-entity-finder-api.js +0 -139
- package/lib/front_end/third_party/third-party-web/package/lib/create-entity-finder-api.test.js +0 -44
- package/lib/front_end/third_party/third-party-web/package/lib/entities.test.js +0 -27
- package/lib/front_end/third_party/third-party-web/package/lib/index.d.ts +0 -34
- package/lib/front_end/third_party/third-party-web/package/lib/index.js +0 -3
- package/lib/front_end/third_party/third-party-web/package/lib/index.test.js +0 -246
- package/lib/front_end/third_party/third-party-web/package/lib/markdown/faqs.partial.md +0 -36
- package/lib/front_end/third_party/third-party-web/package/lib/markdown/goals.partial.md +0 -9
- package/lib/front_end/third_party/third-party-web/package/lib/markdown/methodology.partial.md +0 -5
- package/lib/front_end/third_party/third-party-web/package/lib/markdown/template.md +0 -151
- package/lib/front_end/third_party/third-party-web/package/lib/markdown/updates/2019-02-01.md +0 -1
- package/lib/front_end/third_party/third-party-web/package/lib/markdown/updates/2019-03-01.md +0 -1
- package/lib/front_end/third_party/third-party-web/package/lib/markdown/updates/2019-05-06.md +0 -1
- package/lib/front_end/third_party/third-party-web/package/lib/markdown/updates/2019-05-13.md +0 -14
- package/lib/front_end/third_party/third-party-web/package/lib/markdown/updates/2021-01-01.md +0 -1
- package/lib/front_end/third_party/third-party-web/package/lib/markdown/updates/2024-07-01.md +0 -3
- package/lib/front_end/third_party/third-party-web/package/lib/subsets/httparchive-nostats.d.ts +0 -1
- package/lib/front_end/third_party/third-party-web/package/lib/subsets/httparchive-nostats.js +0 -3
- package/lib/front_end/third_party/third-party-web/package/lib/subsets/httparchive.d.ts +0 -1
- package/lib/front_end/third_party/third-party-web/package/lib/subsets/httparchive.js +0 -3
- package/lib/front_end/third_party/third-party-web/package/lib/subsets/nostats.d.ts +0 -1
- package/lib/front_end/third_party/third-party-web/package/lib/subsets/nostats.js +0 -3
- package/lib/front_end/third_party/third-party-web/package/nostats-subset.d.ts +0 -1
- package/lib/front_end/third_party/third-party-web/package/nostats-subset.js +0 -1
- package/lib/front_end/third_party/third-party-web/package/package.json +0 -46
- package/lib/front_end/third_party/third-party-web/package.json +0 -8
- package/lib/front_end/third_party/third-party-web/rebuild.sh +0 -13
- package/lib/front_end/third_party/third-party-web/third-party-web-tsconfig.json +0 -8
- package/lib/front_end/third_party/third-party-web/third-party-web.ts +0 -3
- package/lib/front_end/ui/legacy/theme_support/ThemeSupport.ts +0 -222
- package/lib/front_end/ui/legacy/theme_support/theme_support.ts +0 -5
- package/patches/chrome-devtools-frontend+1.0.1533544.patch +0 -1716
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
// Copyright 2024 The Chromium Authors
|
|
2
|
-
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
-
// found in the LICENSE file.
|
|
4
|
-
|
|
5
|
-
import type * as Platform from '../../../core/platform/platform.js';
|
|
6
|
-
|
|
7
|
-
import type {
|
|
8
|
-
ConsoleTimeStamp, Event, PerformanceMark, PerformanceMeasureBegin, Phase, SyntheticBased} from './TraceEvents.js';
|
|
9
|
-
|
|
10
|
-
export type ExtensionEntryType = 'track-entry'|'marker';
|
|
11
|
-
|
|
12
|
-
export const extensionPalette = [
|
|
13
|
-
'primary',
|
|
14
|
-
'primary-light',
|
|
15
|
-
'primary-dark',
|
|
16
|
-
'secondary',
|
|
17
|
-
'secondary-light',
|
|
18
|
-
'secondary-dark',
|
|
19
|
-
'tertiary',
|
|
20
|
-
'tertiary-light',
|
|
21
|
-
'tertiary-dark',
|
|
22
|
-
'error',
|
|
23
|
-
'warning',
|
|
24
|
-
] as const;
|
|
25
|
-
|
|
26
|
-
export type ExtensionColorFromPalette = typeof extensionPalette[number];
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Represents any valid value that can be produced by JSON.parse()
|
|
30
|
-
* without a reviver.
|
|
31
|
-
*/
|
|
32
|
-
export type JsonValue = string|number|boolean|null|JsonValue[]|{[key: string]: JsonValue};
|
|
33
|
-
|
|
34
|
-
export interface DevToolsObjBase {
|
|
35
|
-
color?: ExtensionColorFromPalette;
|
|
36
|
-
/**
|
|
37
|
-
* We document to users that we support only string values here, but because
|
|
38
|
-
* this is coming from user code the values could be anything, so we ensure we
|
|
39
|
-
* deal with bad data by typing this as unknown.
|
|
40
|
-
*/
|
|
41
|
-
properties?: Array<[string, JsonValue]>;
|
|
42
|
-
tooltipText?: string;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export type DevToolsObj = DevToolsObjEntry|DevToolsObjMarker;
|
|
46
|
-
|
|
47
|
-
export interface ExtensionTrackEntryPayloadDeeplink {
|
|
48
|
-
// The URL (deep-link) to show in the summary for the track.
|
|
49
|
-
url: Platform.DevToolsPath.UrlString;
|
|
50
|
-
// The label to show in front of the URL when the deep-link is shown in the
|
|
51
|
-
// graph.
|
|
52
|
-
description: string;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export interface DevToolsObjEntry extends DevToolsObjBase {
|
|
56
|
-
// Typed as possibly undefined since when no data type is provided
|
|
57
|
-
// the entry is defaulted to a track entry
|
|
58
|
-
dataType?: 'track-entry';
|
|
59
|
-
// The name of the track the entry will be displayed in.
|
|
60
|
-
// Entries intended to be displayed in the same track must contain the
|
|
61
|
-
// same value in this property.
|
|
62
|
-
// If undefined, measurement is added to the Timings track
|
|
63
|
-
track: string;
|
|
64
|
-
// The track group an entry’s track belongs to.
|
|
65
|
-
// Entries intended to be displayed in the same track must contain the
|
|
66
|
-
// same value in this property as well as the same value in the track
|
|
67
|
-
// property.
|
|
68
|
-
trackGroup?: string;
|
|
69
|
-
// Additional data (e.g. deep-link URL) that can be shown in the summary
|
|
70
|
-
// In perf.mark/measure, it's anything in the `detail` object that's not the `devtools` object
|
|
71
|
-
// In console.timestamp, it's the 7th argument to console.timeStamp().
|
|
72
|
-
userDetail?: JsonValue;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export interface DevToolsObjMarker extends DevToolsObjBase {
|
|
76
|
-
dataType: 'marker';
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* Synthetic events created for extension tracks.
|
|
81
|
-
*/
|
|
82
|
-
export interface SyntheticExtensionTrackEntry extends
|
|
83
|
-
SyntheticBased<Phase.COMPLETE, PerformanceMeasureBegin|PerformanceMark|ConsoleTimeStamp> {
|
|
84
|
-
devtoolsObj: DevToolsObjEntry;
|
|
85
|
-
userDetail: JsonValue|null;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* Synthetic events created for extension marks.
|
|
90
|
-
*/
|
|
91
|
-
export interface SyntheticExtensionMarker extends SyntheticBased<Phase.INSTANT, PerformanceMark> {
|
|
92
|
-
devtoolsObj: DevToolsObjMarker;
|
|
93
|
-
userDetail: JsonValue|null;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
export type SyntheticExtensionEntry = SyntheticExtensionTrackEntry|SyntheticExtensionMarker;
|
|
97
|
-
|
|
98
|
-
/** Returns true if this is a devtoolsObj for a marker */
|
|
99
|
-
export function isExtensionPayloadMarker(payload: {dataType?: string}): payload is DevToolsObjMarker {
|
|
100
|
-
return payload.dataType === 'marker';
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
/** Returns true if this is a devtoolsObj for an entry (non-instant) */
|
|
104
|
-
export function isExtensionEntryObj(payload: {track?: string, dataType?: string}): payload is DevToolsObjEntry {
|
|
105
|
-
const hasTrack = 'track' in payload && Boolean(payload.track);
|
|
106
|
-
const validEntryType = payload.dataType === 'track-entry' || payload.dataType === undefined;
|
|
107
|
-
return validEntryType && hasTrack;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
/** Returns true if this is a devtoolsObj for a console.timeStamp */
|
|
111
|
-
export function isConsoleTimestampPayloadTrackEntry(payload: {description?: string, url?: string}):
|
|
112
|
-
payload is ExtensionTrackEntryPayloadDeeplink {
|
|
113
|
-
return payload.url !== undefined && payload.description !== undefined;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
export function isValidExtensionPayload(
|
|
117
|
-
payload: {track?: string, dataType?: string, description?: string, url?: string}): payload is DevToolsObj|
|
|
118
|
-
ExtensionTrackEntryPayloadDeeplink {
|
|
119
|
-
return isExtensionPayloadMarker(payload) || isExtensionEntryObj(payload) ||
|
|
120
|
-
isConsoleTimestampPayloadTrackEntry(payload);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
export function isSyntheticExtensionEntry(entry: Event): entry is SyntheticExtensionEntry {
|
|
124
|
-
return entry.cat === 'devtools.extension';
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
export interface ExtensionTrackData {
|
|
128
|
-
// Name of the top level track. If it's a track group then this value
|
|
129
|
-
// has the name of the group, otherwise it has the name of the track.
|
|
130
|
-
name: string;
|
|
131
|
-
isTrackGroup: boolean;
|
|
132
|
-
// If this contains the data of a track group, this property contains
|
|
133
|
-
// the entries of each of the tracks in the the group. If this is a
|
|
134
|
-
// standalone track, then this contains that track's entries only.
|
|
135
|
-
entriesByTrack: Record<string, SyntheticExtensionTrackEntry[]>;
|
|
136
|
-
}
|
|
@@ -1,281 +0,0 @@
|
|
|
1
|
-
// Copyright 2023 The Chromium Authors
|
|
2
|
-
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
-
// found in the LICENSE file.
|
|
4
|
-
|
|
5
|
-
import type * as SDK from '../../../core/sdk/sdk.js';
|
|
6
|
-
import type * as Protocol from '../../../generated/protocol.js';
|
|
7
|
-
import type * as CrUXManager from '../../../models/crux-manager/crux-manager.js';
|
|
8
|
-
|
|
9
|
-
import type {TraceWindowMicro} from './Timing.js';
|
|
10
|
-
import type {Event, LegacyTimelineFrame, ProcessID, SampleIndex, ThreadID} from './TraceEvents.js';
|
|
11
|
-
|
|
12
|
-
export interface TraceFile {
|
|
13
|
-
traceEvents: readonly Event[];
|
|
14
|
-
metadata: MetaData;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface Breadcrumb {
|
|
18
|
-
window: TraceWindowMicro;
|
|
19
|
-
child: Breadcrumb|null;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export const enum DataOrigin {
|
|
23
|
-
CPU_PROFILE = 'CPUProfile',
|
|
24
|
-
TRACE_EVENTS = 'TraceEvents',
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* The Entries link can have 3 stated:
|
|
29
|
-
* 1. The Link creation is not started yet, meaning only the button that needs to be clicked to start creating the link is visible.
|
|
30
|
-
* 2. Pending to event - the creation is started, but the entry that the link points to has not been chosen yet
|
|
31
|
-
* 3. Link connected - final state, both entries present
|
|
32
|
-
*/
|
|
33
|
-
export const enum EntriesLinkState {
|
|
34
|
-
CREATION_NOT_STARTED = 'creation_not_started',
|
|
35
|
-
PENDING_TO_EVENT = 'pending_to_event',
|
|
36
|
-
CONNECTED = 'connected',
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export const enum EventKeyType {
|
|
40
|
-
RAW_EVENT = 'r',
|
|
41
|
-
SYNTHETIC_EVENT = 's',
|
|
42
|
-
PROFILE_CALL = 'p',
|
|
43
|
-
LEGACY_TIMELINE_FRAME = 'l',
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Represents an object that is saved in the file when user created annotations in the timeline.
|
|
48
|
-
*
|
|
49
|
-
* Expected to add more annotations.
|
|
50
|
-
*/
|
|
51
|
-
export interface SerializedAnnotations {
|
|
52
|
-
entryLabels: EntryLabelAnnotationSerialized[];
|
|
53
|
-
labelledTimeRanges: TimeRangeAnnotationSerialized[];
|
|
54
|
-
linksBetweenEntries: EntriesLinkAnnotationSerialized[];
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Represents an object that is used to store the Entry Label annotation that is created when a user creates a label for an entry in the timeline.
|
|
59
|
-
*/
|
|
60
|
-
export interface EntryLabelAnnotation {
|
|
61
|
-
type: 'ENTRY_LABEL';
|
|
62
|
-
entry: Event|LegacyTimelineFrame;
|
|
63
|
-
label: string;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* Represents an object that is used to store the Labelled Time Range Annotation that is created when a user creates a Time Range Selection in the timeline.
|
|
68
|
-
*/
|
|
69
|
-
export interface TimeRangeAnnotation {
|
|
70
|
-
type: 'TIME_RANGE';
|
|
71
|
-
label: string;
|
|
72
|
-
bounds: TraceWindowMicro;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export interface EntriesLinkAnnotation {
|
|
76
|
-
type: 'ENTRIES_LINK';
|
|
77
|
-
state: EntriesLinkState;
|
|
78
|
-
entryFrom: Event;
|
|
79
|
-
entryTo?: Event;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* Represents an object that is saved in the file when a user creates a label for an entry in the timeline.
|
|
84
|
-
*/
|
|
85
|
-
export interface EntryLabelAnnotationSerialized {
|
|
86
|
-
entry: SerializableKey;
|
|
87
|
-
label: string;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* Represents an object that is saved in the file when a user creates a time range with a label in the timeline.
|
|
92
|
-
*/
|
|
93
|
-
export interface TimeRangeAnnotationSerialized {
|
|
94
|
-
bounds: TraceWindowMicro;
|
|
95
|
-
label: string;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* Represents an object that is saved in the file when a user creates a link between entries in the timeline.
|
|
100
|
-
*/
|
|
101
|
-
export interface EntriesLinkAnnotationSerialized {
|
|
102
|
-
entryFrom: SerializableKey;
|
|
103
|
-
entryTo: SerializableKey;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* `Annotation` are the user-created annotations that are saved into the metadata.
|
|
108
|
-
* Those annotations are rendered on the timeline by `Overlays.ts`
|
|
109
|
-
*
|
|
110
|
-
* TODO: Implement other OverlayAnnotations (annotated time ranges, links between entries).
|
|
111
|
-
* TODO: Save/load overlay annotations to/from the trace file.
|
|
112
|
-
*/
|
|
113
|
-
export type Annotation = EntryLabelAnnotation|TimeRangeAnnotation|EntriesLinkAnnotation;
|
|
114
|
-
|
|
115
|
-
export function isTimeRangeAnnotation(annotation: Annotation): annotation is TimeRangeAnnotation {
|
|
116
|
-
return annotation.type === 'TIME_RANGE';
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
export function isEntryLabelAnnotation(annotation: Annotation): annotation is EntryLabelAnnotation {
|
|
120
|
-
return annotation.type === 'ENTRY_LABEL';
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
export function isEntriesLinkAnnotation(annotation: Annotation): annotation is EntriesLinkAnnotation {
|
|
124
|
-
return annotation.type === 'ENTRIES_LINK';
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* Serializable keys are created for trace events to be able to save
|
|
129
|
-
* references to timeline events in a trace file. These keys enable
|
|
130
|
-
* user modifications that can be saved. See go/cpq:event-data-json for
|
|
131
|
-
* more details on the key format.
|
|
132
|
-
**/
|
|
133
|
-
export type RawEventKey = `${EventKeyType.RAW_EVENT}-${number}`;
|
|
134
|
-
export type SyntheticEventKey = `${EventKeyType.SYNTHETIC_EVENT}-${number}`;
|
|
135
|
-
export type ProfileCallKey = `${EventKeyType.PROFILE_CALL}-${ProcessID}-${ThreadID}-${SampleIndex}-${Protocol.integer}`;
|
|
136
|
-
export type LegacyTimelineFrameKey = `${EventKeyType.LEGACY_TIMELINE_FRAME}-${number}`;
|
|
137
|
-
export type SerializableKey = RawEventKey|ProfileCallKey|SyntheticEventKey|LegacyTimelineFrameKey;
|
|
138
|
-
|
|
139
|
-
/** Serializable keys values objects contain data that maps the keys to original Trace Events **/
|
|
140
|
-
export interface RawEventKeyValues {
|
|
141
|
-
type: EventKeyType.RAW_EVENT;
|
|
142
|
-
rawIndex: number;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
export interface SyntheticEventKeyValues {
|
|
146
|
-
type: EventKeyType.SYNTHETIC_EVENT;
|
|
147
|
-
rawIndex: number;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
export interface ProfileCallKeyValues {
|
|
151
|
-
type: EventKeyType.PROFILE_CALL;
|
|
152
|
-
processID: ProcessID;
|
|
153
|
-
threadID: ThreadID;
|
|
154
|
-
sampleIndex: SampleIndex;
|
|
155
|
-
protocol: Protocol.integer;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
export interface LegacyTimelineFrameKeyValues {
|
|
159
|
-
type: EventKeyType.LEGACY_TIMELINE_FRAME;
|
|
160
|
-
rawIndex: number;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
export type SerializableKeyValues =
|
|
164
|
-
RawEventKeyValues|ProfileCallKeyValues|SyntheticEventKeyValues|LegacyTimelineFrameKeyValues;
|
|
165
|
-
|
|
166
|
-
export interface Modifications {
|
|
167
|
-
entriesModifications: {
|
|
168
|
-
// Entries hidden by the user
|
|
169
|
-
hiddenEntries: SerializableKey[],
|
|
170
|
-
// Entries that parent a hiddenEntry
|
|
171
|
-
expandableEntries: SerializableKey[],
|
|
172
|
-
};
|
|
173
|
-
initialBreadcrumb: Breadcrumb;
|
|
174
|
-
annotations: SerializedAnnotations;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
* IMPORTANT: this is the same as PerfUI.FlameChart.PersistedGroupConfig
|
|
179
|
-
* However, the PerfUI code should not depend on the model/trace, and similarly
|
|
180
|
-
* this model cannot depend on that code, so we duplicate it.
|
|
181
|
-
**/
|
|
182
|
-
export interface TrackVisualConfig {
|
|
183
|
-
hidden: boolean;
|
|
184
|
-
expanded: boolean;
|
|
185
|
-
originalIndex: number;
|
|
186
|
-
visualIndex: number;
|
|
187
|
-
trackName: string;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* Stores the visual config if the user has modified it. Split into "main" and
|
|
192
|
-
* "network" so we can pass the relevant config into the right data provider.
|
|
193
|
-
* NOTE: as of August 2025 (M141) we currently do not export this in new
|
|
194
|
-
* traces, or use it if an existing trace is imported with it.
|
|
195
|
-
*/
|
|
196
|
-
export interface PersistedTraceVisualConfig {
|
|
197
|
-
main: TrackVisualConfig[]|null;
|
|
198
|
-
network: TrackVisualConfig[]|null;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
/**
|
|
202
|
-
* Trace metadata that we persist to the file. This will allow us to
|
|
203
|
-
* store specifics for the trace, e.g., which tracks should be visible
|
|
204
|
-
* on load.
|
|
205
|
-
*/
|
|
206
|
-
export interface MetaData {
|
|
207
|
-
source?: 'DevTools';
|
|
208
|
-
startTime?: string;
|
|
209
|
-
emulatedDeviceTitle?: string;
|
|
210
|
-
// Only set if network throttling is active.
|
|
211
|
-
networkThrottling?: string;
|
|
212
|
-
// Only set if network throttling is active.
|
|
213
|
-
networkThrottlingConditions?: Omit<SDK.NetworkManager.Conditions, 'title'>;
|
|
214
|
-
// Only set if CPU throttling is active.
|
|
215
|
-
cpuThrottling?: number;
|
|
216
|
-
dataOrigin?: DataOrigin;
|
|
217
|
-
enhancedTraceVersion?: number;
|
|
218
|
-
modifications?: Modifications;
|
|
219
|
-
cruxFieldData?: CrUXManager.PageResult[];
|
|
220
|
-
/** Currently only stores JS maps, not CSS. This never stores data url source maps. */
|
|
221
|
-
sourceMaps?: MetadataSourceMap[];
|
|
222
|
-
visualTrackConfig?: PersistedTraceVisualConfig;
|
|
223
|
-
hostDPR?: number;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
export interface MetadataSourceMap {
|
|
227
|
-
url: string;
|
|
228
|
-
/** If not defined, then this was a data url. */
|
|
229
|
-
sourceMapUrl?: string;
|
|
230
|
-
sourceMap: SDK.SourceMap.SourceMapV3;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
export type Contents = TraceFile|Event[];
|
|
234
|
-
|
|
235
|
-
export function traceEventKeyToValues(key: SerializableKey): SerializableKeyValues {
|
|
236
|
-
const parts = key.split('-');
|
|
237
|
-
const type = parts[0];
|
|
238
|
-
|
|
239
|
-
switch (type) {
|
|
240
|
-
case EventKeyType.PROFILE_CALL:
|
|
241
|
-
if (parts.length !== 5 ||
|
|
242
|
-
!(parts.every((part, i) => i === 0 || typeof part === 'number' || !isNaN(parseInt(part, 10))))) {
|
|
243
|
-
throw new Error(`Invalid ProfileCallKey: ${key}`);
|
|
244
|
-
}
|
|
245
|
-
return {
|
|
246
|
-
type: parts[0],
|
|
247
|
-
processID: parseInt(parts[1], 10),
|
|
248
|
-
threadID: parseInt(parts[2], 10),
|
|
249
|
-
sampleIndex: parseInt(parts[3], 10),
|
|
250
|
-
protocol: parseInt(parts[4], 10),
|
|
251
|
-
} as ProfileCallKeyValues;
|
|
252
|
-
case EventKeyType.RAW_EVENT:
|
|
253
|
-
if (parts.length !== 2 || !(typeof parts[1] === 'number' || !isNaN(parseInt(parts[1], 10)))) {
|
|
254
|
-
throw new Error(`Invalid RawEvent Key: ${key}`);
|
|
255
|
-
}
|
|
256
|
-
return {
|
|
257
|
-
type: parts[0],
|
|
258
|
-
rawIndex: parseInt(parts[1], 10),
|
|
259
|
-
} as RawEventKeyValues;
|
|
260
|
-
case EventKeyType.SYNTHETIC_EVENT:
|
|
261
|
-
if (parts.length !== 2 || !(typeof parts[1] === 'number' || !isNaN(parseInt(parts[1], 10)))) {
|
|
262
|
-
throw new Error(`Invalid SyntheticEvent Key: ${key}`);
|
|
263
|
-
}
|
|
264
|
-
return {
|
|
265
|
-
type: parts[0],
|
|
266
|
-
rawIndex: parseInt(parts[1], 10),
|
|
267
|
-
} as SyntheticEventKeyValues;
|
|
268
|
-
case EventKeyType.LEGACY_TIMELINE_FRAME: {
|
|
269
|
-
if (parts.length !== 2 || Number.isNaN(parseInt(parts[1], 10))) {
|
|
270
|
-
throw new Error(`Invalid LegacyTimelineFrame Key: ${key}`);
|
|
271
|
-
}
|
|
272
|
-
return {
|
|
273
|
-
type,
|
|
274
|
-
rawIndex: parseInt(parts[1], 10),
|
|
275
|
-
};
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
default:
|
|
279
|
-
throw new Error(`Unknown trace event key: ${key}`);
|
|
280
|
-
}
|
|
281
|
-
}
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
// Copyright 2025 The Chromium Authors
|
|
2
|
-
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
-
// found in the LICENSE file.
|
|
4
|
-
|
|
5
|
-
import type {EntriesLinkState} from './File.js';
|
|
6
|
-
import type {Micro, TraceWindowMicro} from './Timing.js';
|
|
7
|
-
import type {Event, LegacyTimelineFrame, PageLoadEvent} from './TraceEvents.js';
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Represents which flamechart an entry is rendered in.
|
|
11
|
-
* We need to know this because when we place an overlay for an entry we need
|
|
12
|
-
* to adjust its Y value if it's in the main chart which is drawn below the
|
|
13
|
-
* network chart
|
|
14
|
-
*/
|
|
15
|
-
export type EntryChartLocation = 'main'|'network';
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* You can add overlays to trace events, but also right now frames are drawn on
|
|
19
|
-
* the timeline but they are not trace events, so we need to allow for that.
|
|
20
|
-
* In the future when the frames track has been migrated to be powered by
|
|
21
|
-
* animation frames (crbug.com/345144583), we can remove the requirement to
|
|
22
|
-
* support TimelineFrame instances (which themselves will be removed from the
|
|
23
|
-
* codebase.)
|
|
24
|
-
*/
|
|
25
|
-
export type OverlayEntry = Event|LegacyTimelineFrame;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Represents when a user has selected an entry in the timeline
|
|
29
|
-
*/
|
|
30
|
-
export interface EntrySelected {
|
|
31
|
-
type: 'ENTRY_SELECTED';
|
|
32
|
-
entry: OverlayEntry;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Drawn around an entry when we want to highlight it to the user.
|
|
37
|
-
*/
|
|
38
|
-
export interface EntryOutline {
|
|
39
|
-
type: 'ENTRY_OUTLINE';
|
|
40
|
-
entry: OverlayEntry;
|
|
41
|
-
outlineReason: 'ERROR'|'INFO';
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Represents an object created when a user creates a label for an entry in the timeline.
|
|
46
|
-
*/
|
|
47
|
-
export interface EntryLabel {
|
|
48
|
-
type: 'ENTRY_LABEL';
|
|
49
|
-
entry: OverlayEntry;
|
|
50
|
-
label: string;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export interface EntriesLink {
|
|
54
|
-
type: 'ENTRIES_LINK';
|
|
55
|
-
state: EntriesLinkState;
|
|
56
|
-
entryFrom: OverlayEntry;
|
|
57
|
-
entryTo?: OverlayEntry;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* Represents a time range on the trace. Also used when the user shift+clicks
|
|
62
|
-
* and drags to create a time range.
|
|
63
|
-
*/
|
|
64
|
-
export interface TimeRangeLabel {
|
|
65
|
-
type: 'TIME_RANGE';
|
|
66
|
-
bounds: TraceWindowMicro;
|
|
67
|
-
label: string;
|
|
68
|
-
showDuration: boolean;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Used to highlight with a red-candy stripe a time range. It takes an entry
|
|
73
|
-
* because this entry is the row that will be used to place the candy stripe,
|
|
74
|
-
* and its height will be set to the height of that row.
|
|
75
|
-
*/
|
|
76
|
-
export interface CandyStripedTimeRange {
|
|
77
|
-
type: 'CANDY_STRIPED_TIME_RANGE';
|
|
78
|
-
bounds: TraceWindowMicro;
|
|
79
|
-
entry: Event;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* An EntryBreakdown, or section, that makes up a TimespanBreakdown.
|
|
84
|
-
*/
|
|
85
|
-
export interface TimespanBreakdownEntryBreakdown {
|
|
86
|
-
bounds: TraceWindowMicro;
|
|
87
|
-
label: string|HTMLElement;
|
|
88
|
-
showDuration: boolean;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Represents a timespan on a trace broken down into parts. Each part has a label to it.
|
|
93
|
-
* If an entry is defined, the breakdown will be vertically positioned based on it.
|
|
94
|
-
*/
|
|
95
|
-
export interface TimespanBreakdown {
|
|
96
|
-
type: 'TIMESPAN_BREAKDOWN';
|
|
97
|
-
sections: TimespanBreakdownEntryBreakdown[];
|
|
98
|
-
entry?: Event;
|
|
99
|
-
renderLocation?: 'BOTTOM_OF_TIMELINE'|'BELOW_EVENT'|'ABOVE_EVENT';
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
export interface TimestampMarker {
|
|
103
|
-
type: 'TIMESTAMP_MARKER';
|
|
104
|
-
timestamp: Micro;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* Represents a timings marker. This has a line that runs up the whole canvas.
|
|
109
|
-
* We can hold an array of entries, in the case we want to hold more than one with the same timestamp.
|
|
110
|
-
* The adjusted timestamp being the timestamp for the event adjusted by closest navigation.
|
|
111
|
-
*/
|
|
112
|
-
export interface TimingsMarker {
|
|
113
|
-
type: 'TIMINGS_MARKER';
|
|
114
|
-
entries: PageLoadEvent[];
|
|
115
|
-
entryToFieldResult: Map<PageLoadEvent, TimingsMarkerFieldResult>;
|
|
116
|
-
adjustedTimestamp: Micro;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
export interface TimingsMarkerFieldResult {
|
|
120
|
-
value: Micro;
|
|
121
|
-
pageScope: 'url'|'origin';
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
export interface BottomInfoBar {
|
|
125
|
-
type: 'BOTTOM_INFO_BAR';
|
|
126
|
-
// In DevTools, this infobar is a UI.Infobar.Infobar but we can't refer to
|
|
127
|
-
// the type here.
|
|
128
|
-
infobar: {
|
|
129
|
-
element: HTMLElement,
|
|
130
|
-
dispose: () => void,
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* All supported overlay types.
|
|
136
|
-
*/
|
|
137
|
-
export type Overlay = EntrySelected|EntryOutline|TimeRangeLabel|EntryLabel|EntriesLink|TimespanBreakdown|
|
|
138
|
-
TimestampMarker|CandyStripedTimeRange|TimingsMarker|BottomInfoBar;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
// Copyright 2022 The Chromium Authors
|
|
2
|
-
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
-
// found in the LICENSE file.
|
|
4
|
-
|
|
5
|
-
export type Micro = number&{_tag: 'MicroSeconds'};
|
|
6
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
-
export function Micro(value: number): Micro {
|
|
8
|
-
return value as Micro;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export type Milli = number&{_tag: 'MilliSeconds'};
|
|
12
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
13
|
-
export function Milli(value: number): Milli {
|
|
14
|
-
return value as Milli;
|
|
15
|
-
}
|
|
16
|
-
export type Seconds = number&{_tag: 'Seconds'};
|
|
17
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
18
|
-
export function Seconds(value: number): Seconds {
|
|
19
|
-
return value as Seconds;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export interface TraceWindow<TimeFormat extends Micro|Milli> {
|
|
23
|
-
min: TimeFormat;
|
|
24
|
-
max: TimeFormat;
|
|
25
|
-
range: TimeFormat;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/** See front_end/models/trace/helpers/Timing.ts for helpful utility functions like traceWindowFromMicroSeconds **/
|
|
29
|
-
export type TraceWindowMicro = TraceWindow<Micro>;
|
|
30
|
-
export type TraceWindowMilli = TraceWindow<Milli>;
|