devtools-tracing 1.1.1 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (527) hide show
  1. package/dist/index.d.ts +4 -0
  2. package/dist/index.js +28854 -0
  3. package/package.json +11 -8
  4. package/generate.ts +0 -649
  5. package/index.ts +0 -17
  6. package/lib/extension-api/ExtensionAPI.d.ts +0 -357
  7. package/lib/front_end/core/common/App.ts +0 -7
  8. package/lib/front_end/core/common/AppProvider.ts +0 -32
  9. package/lib/front_end/core/common/Base64.ts +0 -47
  10. package/lib/front_end/core/common/CharacterIdMap.ts +0 -30
  11. package/lib/front_end/core/common/Color.ts +0 -2506
  12. package/lib/front_end/core/common/ColorConverter.ts +0 -402
  13. package/lib/front_end/core/common/ColorUtils.ts +0 -252
  14. package/lib/front_end/core/common/Console.ts +0 -114
  15. package/lib/front_end/core/common/Debouncer.ts +0 -15
  16. package/lib/front_end/core/common/EventTarget.ts +0 -52
  17. package/lib/front_end/core/common/Gzip.ts +0 -74
  18. package/lib/front_end/core/common/JavaScriptMetaData.ts +0 -29
  19. package/lib/front_end/core/common/Lazy.ts +0 -31
  20. package/lib/front_end/core/common/Linkifier.ts +0 -55
  21. package/lib/front_end/core/common/MapWithDefault.ts +0 -26
  22. package/lib/front_end/core/common/Mutex.ts +0 -55
  23. package/lib/front_end/core/common/Object.ts +0 -145
  24. package/lib/front_end/core/common/ParsedURL.ts +0 -554
  25. package/lib/front_end/core/common/Progress.ts +0 -180
  26. package/lib/front_end/core/common/QueryParamHandler.ts +0 -7
  27. package/lib/front_end/core/common/ResolverBase.ts +0 -85
  28. package/lib/front_end/core/common/ResourceType.ts +0 -588
  29. package/lib/front_end/core/common/ReturnToPanel.ts +0 -17
  30. package/lib/front_end/core/common/Revealer.ts +0 -192
  31. package/lib/front_end/core/common/Runnable.ts +0 -41
  32. package/lib/front_end/core/common/SegmentedRange.ts +0 -87
  33. package/lib/front_end/core/common/SettingRegistration.ts +0 -339
  34. package/lib/front_end/core/common/Settings.ts +0 -1497
  35. package/lib/front_end/core/common/SimpleHistoryManager.ts +0 -124
  36. package/lib/front_end/core/common/StringOutputStream.ts +0 -26
  37. package/lib/front_end/core/common/TextDictionary.ts +0 -48
  38. package/lib/front_end/core/common/Throttler.ts +0 -99
  39. package/lib/front_end/core/common/Trie.ts +0 -152
  40. package/lib/front_end/core/common/Worker.ts +0 -60
  41. package/lib/front_end/core/common/common.ts +0 -81
  42. package/lib/front_end/core/host/AidaClient.ts +0 -733
  43. package/lib/front_end/core/host/GdpClient.ts +0 -316
  44. package/lib/front_end/core/host/InspectorFrontendHost.ts +0 -648
  45. package/lib/front_end/core/host/InspectorFrontendHostAPI.ts +0 -551
  46. package/lib/front_end/core/host/Platform.ts +0 -76
  47. package/lib/front_end/core/host/ResourceLoader.ts +0 -282
  48. package/lib/front_end/core/host/UserMetrics.ts +0 -1230
  49. package/lib/front_end/core/host/host.ts +0 -23
  50. package/lib/front_end/core/i18n/ByteUtilities.ts +0 -82
  51. package/lib/front_end/core/i18n/DevToolsLocale.ts +0 -87
  52. package/lib/front_end/core/i18n/NumberFormatter.ts +0 -82
  53. package/lib/front_end/core/i18n/i18n.ts +0 -17
  54. package/lib/front_end/core/i18n/i18nImpl.ts +0 -204
  55. package/lib/front_end/core/i18n/i18nTypes.ts +0 -10
  56. package/lib/front_end/core/i18n/locales.js +0 -14
  57. package/lib/front_end/core/i18n/time-utilities.ts +0 -174
  58. package/lib/front_end/core/platform/ArrayUtilities.ts +0 -271
  59. package/lib/front_end/core/platform/Brand.ts +0 -23
  60. package/lib/front_end/core/platform/Constructor.ts +0 -10
  61. package/lib/front_end/core/platform/DOMUtilities.ts +0 -138
  62. package/lib/front_end/core/platform/DateUtilities.ts +0 -15
  63. package/lib/front_end/core/platform/DevToolsPath.ts +0 -53
  64. package/lib/front_end/core/platform/KeyboardUtilities.ts +0 -38
  65. package/lib/front_end/core/platform/MapUtilities.ts +0 -95
  66. package/lib/front_end/core/platform/MimeType.ts +0 -175
  67. package/lib/front_end/core/platform/NumberUtilities.ts +0 -80
  68. package/lib/front_end/core/platform/StringUtilities.ts +0 -588
  69. package/lib/front_end/core/platform/Timing.ts +0 -17
  70. package/lib/front_end/core/platform/TypedArrayUtilities.ts +0 -189
  71. package/lib/front_end/core/platform/TypescriptUtilities.ts +0 -86
  72. package/lib/front_end/core/platform/UIString.ts +0 -39
  73. package/lib/front_end/core/platform/UserVisibleError.ts +0 -28
  74. package/lib/front_end/core/platform/platform.ts +0 -45
  75. package/lib/front_end/core/protocol_client/ConnectionTransport.ts +0 -26
  76. package/lib/front_end/core/protocol_client/InspectorBackend.ts +0 -1050
  77. package/lib/front_end/core/protocol_client/NodeURL.ts +0 -42
  78. package/lib/front_end/core/protocol_client/protocol_client.ts +0 -13
  79. package/lib/front_end/core/root/Runtime.ts +0 -609
  80. package/lib/front_end/core/root/root.ts +0 -6
  81. package/lib/front_end/core/sdk/AccessibilityModel.ts +0 -353
  82. package/lib/front_end/core/sdk/AnimationModel.ts +0 -1041
  83. package/lib/front_end/core/sdk/AutofillModel.ts +0 -184
  84. package/lib/front_end/core/sdk/CPUProfilerModel.ts +0 -148
  85. package/lib/front_end/core/sdk/CPUThrottlingManager.ts +0 -282
  86. package/lib/front_end/core/sdk/CSSContainerQuery.ts +0 -139
  87. package/lib/front_end/core/sdk/CSSFontFace.ts +0 -40
  88. package/lib/front_end/core/sdk/CSSLayer.ts +0 -30
  89. package/lib/front_end/core/sdk/CSSMatchedStyles.ts +0 -1646
  90. package/lib/front_end/core/sdk/CSSMedia.ts +0 -121
  91. package/lib/front_end/core/sdk/CSSMetadata.ts +0 -1647
  92. package/lib/front_end/core/sdk/CSSModel.ts +0 -1128
  93. package/lib/front_end/core/sdk/CSSProperty.ts +0 -384
  94. package/lib/front_end/core/sdk/CSSPropertyParser.ts +0 -681
  95. package/lib/front_end/core/sdk/CSSPropertyParserMatchers.ts +0 -1395
  96. package/lib/front_end/core/sdk/CSSQuery.ts +0 -72
  97. package/lib/front_end/core/sdk/CSSRule.ts +0 -465
  98. package/lib/front_end/core/sdk/CSSScope.ts +0 -30
  99. package/lib/front_end/core/sdk/CSSStartingStyle.ts +0 -29
  100. package/lib/front_end/core/sdk/CSSStyleDeclaration.ts +0 -313
  101. package/lib/front_end/core/sdk/CSSStyleSheetHeader.ts +0 -196
  102. package/lib/front_end/core/sdk/CSSSupports.ts +0 -33
  103. package/lib/front_end/core/sdk/CategorizedBreakpoint.ts +0 -64
  104. package/lib/front_end/core/sdk/ChildTargetManager.ts +0 -314
  105. package/lib/front_end/core/sdk/CompilerSourceMappingContentProvider.ts +0 -62
  106. package/lib/front_end/core/sdk/Connections.ts +0 -293
  107. package/lib/front_end/core/sdk/ConsoleModel.ts +0 -808
  108. package/lib/front_end/core/sdk/ConsoleModelTypes.ts +0 -15
  109. package/lib/front_end/core/sdk/Cookie.ts +0 -319
  110. package/lib/front_end/core/sdk/CookieModel.ts +0 -239
  111. package/lib/front_end/core/sdk/CookieParser.ts +0 -185
  112. package/lib/front_end/core/sdk/DOMDebuggerModel.ts +0 -787
  113. package/lib/front_end/core/sdk/DOMModel.ts +0 -1961
  114. package/lib/front_end/core/sdk/DebuggerModel.ts +0 -1605
  115. package/lib/front_end/core/sdk/EmulationModel.ts +0 -648
  116. package/lib/front_end/core/sdk/EnhancedTracesParser.ts +0 -515
  117. package/lib/front_end/core/sdk/EventBreakpointsModel.ts +0 -183
  118. package/lib/front_end/core/sdk/FrameAssociated.ts +0 -11
  119. package/lib/front_end/core/sdk/FrameManager.ts +0 -259
  120. package/lib/front_end/core/sdk/HeapProfilerModel.ts +0 -225
  121. package/lib/front_end/core/sdk/HttpReasonPhraseStrings.ts +0 -77
  122. package/lib/front_end/core/sdk/IOModel.ts +0 -91
  123. package/lib/front_end/core/sdk/IsolateManager.ts +0 -257
  124. package/lib/front_end/core/sdk/IssuesModel.ts +0 -70
  125. package/lib/front_end/core/sdk/LayerTreeBase.ts +0 -169
  126. package/lib/front_end/core/sdk/LogModel.ts +0 -56
  127. package/lib/front_end/core/sdk/NetworkManager.ts +0 -2823
  128. package/lib/front_end/core/sdk/NetworkRequest.ts +0 -2253
  129. package/lib/front_end/core/sdk/OverlayColorGenerator.ts +0 -52
  130. package/lib/front_end/core/sdk/OverlayModel.ts +0 -1011
  131. package/lib/front_end/core/sdk/OverlayPersistentHighlighter.ts +0 -522
  132. package/lib/front_end/core/sdk/PageLoad.ts +0 -35
  133. package/lib/front_end/core/sdk/PageResourceLoader.ts +0 -435
  134. package/lib/front_end/core/sdk/PaintProfiler.ts +0 -110
  135. package/lib/front_end/core/sdk/PerformanceMetricsModel.ts +0 -84
  136. package/lib/front_end/core/sdk/PreloadingModel.ts +0 -863
  137. package/lib/front_end/core/sdk/RehydratingConnection.ts +0 -386
  138. package/lib/front_end/core/sdk/RehydratingObject.ts +0 -66
  139. package/lib/front_end/core/sdk/RemoteObject.ts +0 -1160
  140. package/lib/front_end/core/sdk/Resource.ts +0 -232
  141. package/lib/front_end/core/sdk/ResourceTreeModel.ts +0 -1160
  142. package/lib/front_end/core/sdk/RuntimeModel.ts +0 -732
  143. package/lib/front_end/core/sdk/SDKModel.ts +0 -65
  144. package/lib/front_end/core/sdk/ScopeTreeCache.ts +0 -45
  145. package/lib/front_end/core/sdk/ScreenCaptureModel.ts +0 -255
  146. package/lib/front_end/core/sdk/Script.ts +0 -534
  147. package/lib/front_end/core/sdk/SecurityOriginManager.ts +0 -76
  148. package/lib/front_end/core/sdk/ServerSentEvents.ts +0 -80
  149. package/lib/front_end/core/sdk/ServerSentEventsProtocol.ts +0 -122
  150. package/lib/front_end/core/sdk/ServerTiming.ts +0 -260
  151. package/lib/front_end/core/sdk/ServiceWorkerCacheModel.ts +0 -377
  152. package/lib/front_end/core/sdk/ServiceWorkerManager.ts +0 -605
  153. package/lib/front_end/core/sdk/SourceMap.ts +0 -867
  154. package/lib/front_end/core/sdk/SourceMapCache.ts +0 -54
  155. package/lib/front_end/core/sdk/SourceMapFunctionRanges.ts +0 -156
  156. package/lib/front_end/core/sdk/SourceMapManager.ts +0 -239
  157. package/lib/front_end/core/sdk/SourceMapScopeChainEntry.ts +0 -189
  158. package/lib/front_end/core/sdk/SourceMapScopesInfo.ts +0 -508
  159. package/lib/front_end/core/sdk/StorageBucketsModel.ts +0 -204
  160. package/lib/front_end/core/sdk/StorageKeyManager.ts +0 -98
  161. package/lib/front_end/core/sdk/Target.ts +0 -332
  162. package/lib/front_end/core/sdk/TargetManager.ts +0 -453
  163. package/lib/front_end/core/sdk/TraceObject.ts +0 -61
  164. package/lib/front_end/core/sdk/WebAuthnModel.ts +0 -104
  165. package/lib/front_end/core/sdk/sdk.ts +0 -174
  166. package/lib/front_end/entrypoints/formatter_worker/FormatterActions.ts +0 -59
  167. package/lib/front_end/generated/InspectorBackendCommands.js +0 -1617
  168. package/lib/front_end/generated/SupportedCSSProperties.js +0 -7512
  169. package/lib/front_end/generated/protocol-proxy-api.d.ts +0 -5022
  170. package/lib/front_end/generated/protocol.ts +0 -22014
  171. package/lib/front_end/models/bindings/CSSWorkspaceBinding.ts +0 -318
  172. package/lib/front_end/models/bindings/CompilerScriptMapping.ts +0 -536
  173. package/lib/front_end/models/bindings/ContentProviderBasedProject.ts +0 -187
  174. package/lib/front_end/models/bindings/DebuggerLanguagePlugins.ts +0 -1197
  175. package/lib/front_end/models/bindings/DebuggerWorkspaceBinding.ts +0 -733
  176. package/lib/front_end/models/bindings/DefaultScriptMapping.ts +0 -141
  177. package/lib/front_end/models/bindings/FileUtils.ts +0 -228
  178. package/lib/front_end/models/bindings/LiveLocation.ts +0 -81
  179. package/lib/front_end/models/bindings/NetworkProject.ts +0 -157
  180. package/lib/front_end/models/bindings/PresentationConsoleMessageHelper.ts +0 -312
  181. package/lib/front_end/models/bindings/ResourceMapping.ts +0 -539
  182. package/lib/front_end/models/bindings/ResourceScriptMapping.ts +0 -491
  183. package/lib/front_end/models/bindings/ResourceUtils.ts +0 -103
  184. package/lib/front_end/models/bindings/SASSSourceMapping.ts +0 -222
  185. package/lib/front_end/models/bindings/StylesSourceMapping.ts +0 -316
  186. package/lib/front_end/models/bindings/TempFile.ts +0 -67
  187. package/lib/front_end/models/bindings/bindings.ts +0 -39
  188. package/lib/front_end/models/cpu_profile/CPUProfileDataModel.ts +0 -571
  189. package/lib/front_end/models/cpu_profile/ProfileTreeModel.ts +0 -103
  190. package/lib/front_end/models/cpu_profile/cpu_profile.ts +0 -11
  191. package/lib/front_end/models/formatter/FormatterWorkerPool.ts +0 -219
  192. package/lib/front_end/models/formatter/ScriptFormatter.ts +0 -112
  193. package/lib/front_end/models/formatter/formatter.ts +0 -8
  194. package/lib/front_end/models/source_map_scopes/NamesResolver.ts +0 -765
  195. package/lib/front_end/models/source_map_scopes/ScopeChainModel.ts +0 -84
  196. package/lib/front_end/models/source_map_scopes/source_map_scopes.ts +0 -11
  197. package/lib/front_end/models/stack_trace/StackTrace.ts +0 -53
  198. package/lib/front_end/models/stack_trace/StackTraceImpl.ts +0 -85
  199. package/lib/front_end/models/stack_trace/StackTraceModel.ts +0 -128
  200. package/lib/front_end/models/stack_trace/Trie.ts +0 -163
  201. package/lib/front_end/models/stack_trace/stack_trace.ts +0 -9
  202. package/lib/front_end/models/stack_trace/stack_trace_impl.ts +0 -13
  203. package/lib/front_end/models/text_utils/CodeMirrorUtils.ts +0 -37
  204. package/lib/front_end/models/text_utils/ContentData.ts +0 -199
  205. package/lib/front_end/models/text_utils/ContentProvider.ts +0 -68
  206. package/lib/front_end/models/text_utils/StaticContentProvider.ts +0 -49
  207. package/lib/front_end/models/text_utils/StreamingContentData.ts +0 -108
  208. package/lib/front_end/models/text_utils/Text.ts +0 -90
  209. package/lib/front_end/models/text_utils/TextCursor.ts +0 -44
  210. package/lib/front_end/models/text_utils/TextRange.ts +0 -266
  211. package/lib/front_end/models/text_utils/TextUtils.ts +0 -401
  212. package/lib/front_end/models/text_utils/WasmDisassembly.ts +0 -87
  213. package/lib/front_end/models/text_utils/text_utils.ts +0 -27
  214. package/lib/front_end/models/trace/EntityMapper.ts +0 -141
  215. package/lib/front_end/models/trace/EventsSerializer.ts +0 -101
  216. package/lib/front_end/models/trace/LanternComputationData.ts +0 -438
  217. package/lib/front_end/models/trace/ModelImpl.ts +0 -236
  218. package/lib/front_end/models/trace/Name.ts +0 -136
  219. package/lib/front_end/models/trace/Processor.ts +0 -652
  220. package/lib/front_end/models/trace/Styles.ts +0 -1138
  221. package/lib/front_end/models/trace/extras/FilmStrip.ts +0 -78
  222. package/lib/front_end/models/trace/extras/MainThreadActivity.ts +0 -86
  223. package/lib/front_end/models/trace/extras/ScriptDuplication.ts +0 -236
  224. package/lib/front_end/models/trace/extras/StackTraceForEvent.ts +0 -203
  225. package/lib/front_end/models/trace/extras/ThirdParties.ts +0 -164
  226. package/lib/front_end/models/trace/extras/TraceFilter.ts +0 -62
  227. package/lib/front_end/models/trace/extras/TraceTree.ts +0 -701
  228. package/lib/front_end/models/trace/extras/extras.ts +0 -11
  229. package/lib/front_end/models/trace/handlers/AnimationFramesHandler.ts +0 -128
  230. package/lib/front_end/models/trace/handlers/AnimationHandler.ts +0 -36
  231. package/lib/front_end/models/trace/handlers/AsyncJSCallsHandler.ts +0 -239
  232. package/lib/front_end/models/trace/handlers/AuctionWorkletsHandler.ts +0 -183
  233. package/lib/front_end/models/trace/handlers/DOMStatsHandler.ts +0 -31
  234. package/lib/front_end/models/trace/handlers/ExtensionTraceDataHandler.ts +0 -306
  235. package/lib/front_end/models/trace/handlers/FlowsHandler.ts +0 -175
  236. package/lib/front_end/models/trace/handlers/FramesHandler.ts +0 -571
  237. package/lib/front_end/models/trace/handlers/GPUHandler.ts +0 -50
  238. package/lib/front_end/models/trace/handlers/ImagePaintingHandler.ts +0 -183
  239. package/lib/front_end/models/trace/handlers/InitiatorsHandler.ts +0 -193
  240. package/lib/front_end/models/trace/handlers/InvalidationsHandler.ts +0 -168
  241. package/lib/front_end/models/trace/handlers/LargestImagePaintHandler.ts +0 -109
  242. package/lib/front_end/models/trace/handlers/LargestTextPaintHandler.ts +0 -35
  243. package/lib/front_end/models/trace/handlers/LayerTreeHandler.ts +0 -123
  244. package/lib/front_end/models/trace/handlers/LayoutShiftsHandler.ts +0 -573
  245. package/lib/front_end/models/trace/handlers/MemoryHandler.ts +0 -31
  246. package/lib/front_end/models/trace/handlers/MetaHandler.ts +0 -525
  247. package/lib/front_end/models/trace/handlers/ModelHandlers.ts +0 -34
  248. package/lib/front_end/models/trace/handlers/NetworkRequestsHandler.ts +0 -672
  249. package/lib/front_end/models/trace/handlers/PageFramesHandler.ts +0 -52
  250. package/lib/front_end/models/trace/handlers/PageLoadMetricsHandler.ts +0 -460
  251. package/lib/front_end/models/trace/handlers/RendererHandler.ts +0 -428
  252. package/lib/front_end/models/trace/handlers/SamplesHandler.ts +0 -271
  253. package/lib/front_end/models/trace/handlers/ScreenshotsHandler.ts +0 -122
  254. package/lib/front_end/models/trace/handlers/ScriptsHandler.ts +0 -336
  255. package/lib/front_end/models/trace/handlers/SelectorStatsHandler.ts +0 -110
  256. package/lib/front_end/models/trace/handlers/Threads.ts +0 -139
  257. package/lib/front_end/models/trace/handlers/UserInteractionsHandler.ts +0 -400
  258. package/lib/front_end/models/trace/handlers/UserTimingsHandler.ts +0 -233
  259. package/lib/front_end/models/trace/handlers/WarningsHandler.ts +0 -162
  260. package/lib/front_end/models/trace/handlers/WorkersHandler.ts +0 -45
  261. package/lib/front_end/models/trace/handlers/handlers.ts +0 -8
  262. package/lib/front_end/models/trace/handlers/helpers.ts +0 -196
  263. package/lib/front_end/models/trace/handlers/types.ts +0 -75
  264. package/lib/front_end/models/trace/helpers/Extensions.ts +0 -54
  265. package/lib/front_end/models/trace/helpers/Network.ts +0 -129
  266. package/lib/front_end/models/trace/helpers/SamplesIntegrator.ts +0 -544
  267. package/lib/front_end/models/trace/helpers/SyntheticEvents.ts +0 -87
  268. package/lib/front_end/models/trace/helpers/Timing.ts +0 -248
  269. package/lib/front_end/models/trace/helpers/Trace.ts +0 -928
  270. package/lib/front_end/models/trace/helpers/TreeHelpers.ts +0 -320
  271. package/lib/front_end/models/trace/helpers/helpers.ts +0 -11
  272. package/lib/front_end/models/trace/insights/CLSCulprits.ts +0 -668
  273. package/lib/front_end/models/trace/insights/Cache.ts +0 -269
  274. package/lib/front_end/models/trace/insights/Common.ts +0 -453
  275. package/lib/front_end/models/trace/insights/DOMSize.ts +0 -223
  276. package/lib/front_end/models/trace/insights/DocumentLatency.ts +0 -319
  277. package/lib/front_end/models/trace/insights/DuplicatedJavaScript.ts +0 -126
  278. package/lib/front_end/models/trace/insights/FontDisplay.ts +0 -119
  279. package/lib/front_end/models/trace/insights/ForcedReflow.ts +0 -220
  280. package/lib/front_end/models/trace/insights/INPBreakdown.ts +0 -171
  281. package/lib/front_end/models/trace/insights/ImageDelivery.ts +0 -348
  282. package/lib/front_end/models/trace/insights/LCPBreakdown.ts +0 -268
  283. package/lib/front_end/models/trace/insights/LCPDiscovery.ts +0 -237
  284. package/lib/front_end/models/trace/insights/LegacyJavaScript.ts +0 -138
  285. package/lib/front_end/models/trace/insights/Models.ts +0 -22
  286. package/lib/front_end/models/trace/insights/ModernHTTP.ts +0 -257
  287. package/lib/front_end/models/trace/insights/NetworkDependencyTree.ts +0 -726
  288. package/lib/front_end/models/trace/insights/RenderBlocking.ts +0 -257
  289. package/lib/front_end/models/trace/insights/SlowCSSSelector.ts +0 -175
  290. package/lib/front_end/models/trace/insights/Statistics.ts +0 -101
  291. package/lib/front_end/models/trace/insights/ThirdParties.ts +0 -130
  292. package/lib/front_end/models/trace/insights/Viewport.ts +0 -138
  293. package/lib/front_end/models/trace/insights/insights.ts +0 -10
  294. package/lib/front_end/models/trace/insights/types.ts +0 -157
  295. package/lib/front_end/models/trace/lantern/core/LanternError.ts +0 -7
  296. package/lib/front_end/models/trace/lantern/core/NetworkAnalyzer.ts +0 -619
  297. package/lib/front_end/models/trace/lantern/core/core.ts +0 -6
  298. package/lib/front_end/models/trace/lantern/graph/BaseNode.ts +0 -345
  299. package/lib/front_end/models/trace/lantern/graph/CPUNode.ts +0 -80
  300. package/lib/front_end/models/trace/lantern/graph/NetworkNode.ts +0 -101
  301. package/lib/front_end/models/trace/lantern/graph/PageDependencyGraph.ts +0 -636
  302. package/lib/front_end/models/trace/lantern/graph/graph.ts +0 -8
  303. package/lib/front_end/models/trace/lantern/lantern.ts +0 -17
  304. package/lib/front_end/models/trace/lantern/metrics/FirstContentfulPaint.ts +0 -187
  305. package/lib/front_end/models/trace/lantern/metrics/Interactive.ts +0 -88
  306. package/lib/front_end/models/trace/lantern/metrics/LargestContentfulPaint.ts +0 -92
  307. package/lib/front_end/models/trace/lantern/metrics/MaxPotentialFID.ts +0 -72
  308. package/lib/front_end/models/trace/lantern/metrics/Metric.ts +0 -126
  309. package/lib/front_end/models/trace/lantern/metrics/SpeedIndex.ts +0 -126
  310. package/lib/front_end/models/trace/lantern/metrics/TBTUtils.ts +0 -82
  311. package/lib/front_end/models/trace/lantern/metrics/TotalBlockingTime.ts +0 -112
  312. package/lib/front_end/models/trace/lantern/metrics/metrics.ts +0 -12
  313. package/lib/front_end/models/trace/lantern/simulation/ConnectionPool.ts +0 -150
  314. package/lib/front_end/models/trace/lantern/simulation/Constants.ts +0 -46
  315. package/lib/front_end/models/trace/lantern/simulation/DNSCache.ts +0 -61
  316. package/lib/front_end/models/trace/lantern/simulation/SimulationTimingMap.ts +0 -196
  317. package/lib/front_end/models/trace/lantern/simulation/Simulator.ts +0 -556
  318. package/lib/front_end/models/trace/lantern/simulation/TCPConnection.ts +0 -192
  319. package/lib/front_end/models/trace/lantern/simulation/simulation.ts +0 -10
  320. package/lib/front_end/models/trace/lantern/types/Lantern.ts +0 -220
  321. package/lib/front_end/models/trace/lantern/types/types.ts +0 -5
  322. package/lib/front_end/models/trace/trace.ts +0 -33
  323. package/lib/front_end/models/trace/types/Configuration.ts +0 -110
  324. package/lib/front_end/models/trace/types/Extensions.ts +0 -136
  325. package/lib/front_end/models/trace/types/File.ts +0 -281
  326. package/lib/front_end/models/trace/types/Overlays.ts +0 -138
  327. package/lib/front_end/models/trace/types/Timing.ts +0 -30
  328. package/lib/front_end/models/trace/types/TraceEvents.ts +0 -3277
  329. package/lib/front_end/models/trace/types/types.ts +0 -10
  330. package/lib/front_end/models/trace_source_maps_resolver/SourceMapsResolver.ts +0 -240
  331. package/lib/front_end/models/trace_source_maps_resolver/trace_source_maps_resolver.ts +0 -5
  332. package/lib/front_end/models/workspace/FileManager.ts +0 -97
  333. package/lib/front_end/models/workspace/IgnoreListManager.ts +0 -628
  334. package/lib/front_end/models/workspace/SearchConfig.ts +0 -149
  335. package/lib/front_end/models/workspace/UISourceCode.ts +0 -698
  336. package/lib/front_end/models/workspace/WorkspaceImpl.ts +0 -339
  337. package/lib/front_end/models/workspace/workspace.ts +0 -17
  338. package/lib/front_end/panels/timeline/TimelineUIUtils.ts +0 -1029
  339. package/lib/front_end/panels/timeline/extensions/ExtensionUI.ts +0 -49
  340. package/lib/front_end/panels/timeline/extensions/extensions.ts +0 -9
  341. package/lib/front_end/third_party/codemirror.next/LICENSE +0 -21
  342. package/lib/front_end/third_party/codemirror.next/README.chromium +0 -30
  343. package/lib/front_end/third_party/codemirror.next/bundle-tsconfig.json +0 -24
  344. package/lib/front_end/third_party/codemirror.next/bundle.ts +0 -135
  345. package/lib/front_end/third_party/codemirror.next/chunk/angular.js +0 -2
  346. package/lib/front_end/third_party/codemirror.next/chunk/angular.js.map +0 -1
  347. package/lib/front_end/third_party/codemirror.next/chunk/codemirror.js +0 -2
  348. package/lib/front_end/third_party/codemirror.next/chunk/codemirror.js.map +0 -1
  349. package/lib/front_end/third_party/codemirror.next/chunk/cpp.js +0 -2
  350. package/lib/front_end/third_party/codemirror.next/chunk/cpp.js.map +0 -1
  351. package/lib/front_end/third_party/codemirror.next/chunk/css.js +0 -2
  352. package/lib/front_end/third_party/codemirror.next/chunk/html.js +0 -4
  353. package/lib/front_end/third_party/codemirror.next/chunk/java.js +0 -2
  354. package/lib/front_end/third_party/codemirror.next/chunk/java.js.map +0 -1
  355. package/lib/front_end/third_party/codemirror.next/chunk/javascript.js +0 -2
  356. package/lib/front_end/third_party/codemirror.next/chunk/legacy.js +0 -2
  357. package/lib/front_end/third_party/codemirror.next/chunk/legacy.js.map +0 -1
  358. package/lib/front_end/third_party/codemirror.next/chunk/less.js +0 -2
  359. package/lib/front_end/third_party/codemirror.next/chunk/less.js.map +0 -1
  360. package/lib/front_end/third_party/codemirror.next/chunk/markdown.js +0 -2
  361. package/lib/front_end/third_party/codemirror.next/chunk/markdown.js.map +0 -1
  362. package/lib/front_end/third_party/codemirror.next/chunk/php.js +0 -2
  363. package/lib/front_end/third_party/codemirror.next/chunk/php.js.map +0 -1
  364. package/lib/front_end/third_party/codemirror.next/chunk/python.js +0 -2
  365. package/lib/front_end/third_party/codemirror.next/chunk/python.js.map +0 -1
  366. package/lib/front_end/third_party/codemirror.next/chunk/sass.js +0 -2
  367. package/lib/front_end/third_party/codemirror.next/chunk/sass.js.map +0 -1
  368. package/lib/front_end/third_party/codemirror.next/chunk/svelte.js +0 -2
  369. package/lib/front_end/third_party/codemirror.next/chunk/svelte.js.map +0 -1
  370. package/lib/front_end/third_party/codemirror.next/chunk/vue.js +0 -2
  371. package/lib/front_end/third_party/codemirror.next/chunk/vue.js.map +0 -1
  372. package/lib/front_end/third_party/codemirror.next/chunk/wast.js +0 -2
  373. package/lib/front_end/third_party/codemirror.next/chunk/wast.js.map +0 -1
  374. package/lib/front_end/third_party/codemirror.next/chunk/xml.js +0 -2
  375. package/lib/front_end/third_party/codemirror.next/chunk/xml.js.map +0 -1
  376. package/lib/front_end/third_party/codemirror.next/codemirror.next.d.ts +0 -8057
  377. package/lib/front_end/third_party/codemirror.next/codemirror.next.js +0 -2
  378. package/lib/front_end/third_party/codemirror.next/codemirror.next.js.map +0 -1
  379. package/lib/front_end/third_party/codemirror.next/package.json +0 -43
  380. package/lib/front_end/third_party/codemirror.next/rebuild.sh +0 -6
  381. package/lib/front_end/third_party/codemirror.next/rollup.config.mjs +0 -49
  382. package/lib/front_end/third_party/i18n/LICENSE +0 -202
  383. package/lib/front_end/third_party/i18n/README.chromium +0 -15
  384. package/lib/front_end/third_party/i18n/i18n-impl.ts +0 -61
  385. package/lib/front_end/third_party/i18n/i18n.ts +0 -11
  386. package/lib/front_end/third_party/i18n/localized-string-set.ts +0 -129
  387. package/lib/front_end/third_party/intl-messageformat/LICENSE +0 -33
  388. package/lib/front_end/third_party/intl-messageformat/README.chromium +0 -24
  389. package/lib/front_end/third_party/intl-messageformat/intl-messageformat-tsconfig.json +0 -16
  390. package/lib/front_end/third_party/intl-messageformat/intl-messageformat.ts +0 -6
  391. package/lib/front_end/third_party/intl-messageformat/package/LICENSE.md +0 -33
  392. package/lib/front_end/third_party/intl-messageformat/package/README.md +0 -3
  393. package/lib/front_end/third_party/intl-messageformat/package/index.d.ts +0 -6
  394. package/lib/front_end/third_party/intl-messageformat/package/index.d.ts.map +0 -1
  395. package/lib/front_end/third_party/intl-messageformat/package/index.js +0 -13
  396. package/lib/front_end/third_party/intl-messageformat/package/intl-messageformat.esm.d.ts +0 -5
  397. package/lib/front_end/third_party/intl-messageformat/package/intl-messageformat.esm.js +0 -1710
  398. package/lib/front_end/third_party/intl-messageformat/package/intl-messageformat.iife.js +0 -1815
  399. package/lib/front_end/third_party/intl-messageformat/package/lib/index.d.ts +0 -6
  400. package/lib/front_end/third_party/intl-messageformat/package/lib/index.d.ts.map +0 -1
  401. package/lib/front_end/third_party/intl-messageformat/package/lib/index.js +0 -10
  402. package/lib/front_end/third_party/intl-messageformat/package/lib/src/core.d.ts +0 -34
  403. package/lib/front_end/third_party/intl-messageformat/package/lib/src/core.d.ts.map +0 -1
  404. package/lib/front_end/third_party/intl-messageformat/package/lib/src/core.js +0 -229
  405. package/lib/front_end/third_party/intl-messageformat/package/lib/src/error.d.ts +0 -28
  406. package/lib/front_end/third_party/intl-messageformat/package/lib/src/error.d.ts.map +0 -1
  407. package/lib/front_end/third_party/intl-messageformat/package/lib/src/error.js +0 -48
  408. package/lib/front_end/third_party/intl-messageformat/package/lib/src/formatters.d.ts +0 -34
  409. package/lib/front_end/third_party/intl-messageformat/package/lib/src/formatters.d.ts.map +0 -1
  410. package/lib/front_end/third_party/intl-messageformat/package/lib/src/formatters.js +0 -179
  411. package/lib/front_end/third_party/intl-messageformat/package/package.json +0 -42
  412. package/lib/front_end/third_party/intl-messageformat/package/src/core.d.ts +0 -34
  413. package/lib/front_end/third_party/intl-messageformat/package/src/core.d.ts.map +0 -1
  414. package/lib/front_end/third_party/intl-messageformat/package/src/core.js +0 -230
  415. package/lib/front_end/third_party/intl-messageformat/package/src/error.d.ts +0 -28
  416. package/lib/front_end/third_party/intl-messageformat/package/src/error.d.ts.map +0 -1
  417. package/lib/front_end/third_party/intl-messageformat/package/src/error.js +0 -51
  418. package/lib/front_end/third_party/intl-messageformat/package/src/formatters.d.ts +0 -34
  419. package/lib/front_end/third_party/intl-messageformat/package/src/formatters.d.ts.map +0 -1
  420. package/lib/front_end/third_party/intl-messageformat/package/src/formatters.js +0 -182
  421. package/lib/front_end/third_party/intl-messageformat/package/src/icu-messageformat-parser/error.d.ts +0 -79
  422. package/lib/front_end/third_party/intl-messageformat/package/src/icu-messageformat-parser/index.d.ts +0 -15
  423. package/lib/front_end/third_party/intl-messageformat/package/src/icu-messageformat-parser/parser.d.ts +0 -153
  424. package/lib/front_end/third_party/intl-messageformat/package/src/icu-messageformat-parser/types.d.ts +0 -139
  425. package/lib/front_end/third_party/legacy-javascript/LICENSE +0 -202
  426. package/lib/front_end/third_party/legacy-javascript/README.chromium +0 -13
  427. package/lib/front_end/third_party/legacy-javascript/legacy-javascript-tsconfig.json +0 -8
  428. package/lib/front_end/third_party/legacy-javascript/legacy-javascript.ts +0 -3
  429. package/lib/front_end/third_party/legacy-javascript/lib/legacy-javascript.d.ts +0 -18
  430. package/lib/front_end/third_party/legacy-javascript/lib/legacy-javascript.js +0 -943
  431. package/lib/front_end/third_party/legacy-javascript/package.json +0 -8
  432. package/lib/front_end/third_party/legacy-javascript/rebuild.sh +0 -9
  433. package/lib/front_end/third_party/source-map-scopes-codec/LICENSE +0 -26
  434. package/lib/front_end/third_party/source-map-scopes-codec/README.chromium +0 -31
  435. package/lib/front_end/third_party/source-map-scopes-codec/package/CONTRIBUTING.md +0 -33
  436. package/lib/front_end/third_party/source-map-scopes-codec/package/LICENSE +0 -26
  437. package/lib/front_end/third_party/source-map-scopes-codec/package/README.md +0 -64
  438. package/lib/front_end/third_party/source-map-scopes-codec/package/_dist/src/builder/builder.d.ts +0 -62
  439. package/lib/front_end/third_party/source-map-scopes-codec/package/_dist/src/builder/builder.d.ts.map +0 -1
  440. package/lib/front_end/third_party/source-map-scopes-codec/package/_dist/src/builder/safe_builder.d.ts +0 -37
  441. package/lib/front_end/third_party/source-map-scopes-codec/package/_dist/src/builder/safe_builder.d.ts.map +0 -1
  442. package/lib/front_end/third_party/source-map-scopes-codec/package/_dist/src/decode/decode.d.ts +0 -29
  443. package/lib/front_end/third_party/source-map-scopes-codec/package/_dist/src/decode/decode.d.ts.map +0 -1
  444. package/lib/front_end/third_party/source-map-scopes-codec/package/_dist/src/encode/encode.d.ts +0 -8
  445. package/lib/front_end/third_party/source-map-scopes-codec/package/_dist/src/encode/encode.d.ts.map +0 -1
  446. package/lib/front_end/third_party/source-map-scopes-codec/package/_dist/src/mod.d.ts +0 -6
  447. package/lib/front_end/third_party/source-map-scopes-codec/package/_dist/src/mod.d.ts.map +0 -1
  448. package/lib/front_end/third_party/source-map-scopes-codec/package/deno.json +0 -21
  449. package/lib/front_end/third_party/source-map-scopes-codec/package/package.json +0 -14
  450. package/lib/front_end/third_party/source-map-scopes-codec/package/src/builder/builder.js +0 -196
  451. package/lib/front_end/third_party/source-map-scopes-codec/package/src/builder/builder.js.map +0 -1
  452. package/lib/front_end/third_party/source-map-scopes-codec/package/src/builder/builder.ts +0 -262
  453. package/lib/front_end/third_party/source-map-scopes-codec/package/src/builder/safe_builder.js +0 -235
  454. package/lib/front_end/third_party/source-map-scopes-codec/package/src/builder/safe_builder.js.map +0 -1
  455. package/lib/front_end/third_party/source-map-scopes-codec/package/src/builder/safe_builder.ts +0 -359
  456. package/lib/front_end/third_party/source-map-scopes-codec/package/src/codec.js +0 -39
  457. package/lib/front_end/third_party/source-map-scopes-codec/package/src/codec.js.map +0 -1
  458. package/lib/front_end/third_party/source-map-scopes-codec/package/src/codec.ts +0 -53
  459. package/lib/front_end/third_party/source-map-scopes-codec/package/src/decode/decode.js +0 -438
  460. package/lib/front_end/third_party/source-map-scopes-codec/package/src/decode/decode.js.map +0 -1
  461. package/lib/front_end/third_party/source-map-scopes-codec/package/src/decode/decode.ts +0 -539
  462. package/lib/front_end/third_party/source-map-scopes-codec/package/src/encode/encode.js +0 -23
  463. package/lib/front_end/third_party/source-map-scopes-codec/package/src/encode/encode.js.map +0 -1
  464. package/lib/front_end/third_party/source-map-scopes-codec/package/src/encode/encode.ts +0 -35
  465. package/lib/front_end/third_party/source-map-scopes-codec/package/src/encode/encoder.js +0 -257
  466. package/lib/front_end/third_party/source-map-scopes-codec/package/src/encode/encoder.js.map +0 -1
  467. package/lib/front_end/third_party/source-map-scopes-codec/package/src/encode/encoder.ts +0 -348
  468. package/lib/front_end/third_party/source-map-scopes-codec/package/src/mod.js +0 -8
  469. package/lib/front_end/third_party/source-map-scopes-codec/package/src/mod.js.map +0 -1
  470. package/lib/front_end/third_party/source-map-scopes-codec/package/src/mod.ts +0 -20
  471. package/lib/front_end/third_party/source-map-scopes-codec/package/src/scopes-tsconfig.json +0 -8
  472. package/lib/front_end/third_party/source-map-scopes-codec/package/src/scopes.d.ts +0 -184
  473. package/lib/front_end/third_party/source-map-scopes-codec/package/src/util.js +0 -9
  474. package/lib/front_end/third_party/source-map-scopes-codec/package/src/util.js.map +0 -1
  475. package/lib/front_end/third_party/source-map-scopes-codec/package/src/util.ts +0 -12
  476. package/lib/front_end/third_party/source-map-scopes-codec/package/src/vlq.js +0 -82
  477. package/lib/front_end/third_party/source-map-scopes-codec/package/src/vlq.js.map +0 -1
  478. package/lib/front_end/third_party/source-map-scopes-codec/package/src/vlq.ts +0 -99
  479. package/lib/front_end/third_party/source-map-scopes-codec/source-map-scopes-codec.ts +0 -5
  480. package/lib/front_end/third_party/third-party-web/LICENSE +0 -20
  481. package/lib/front_end/third_party/third-party-web/README.chromium +0 -13
  482. package/lib/front_end/third_party/third-party-web/lib/nostats-subset.d.ts +0 -2
  483. package/lib/front_end/third_party/third-party-web/lib/nostats-subset.js +0 -149
  484. package/lib/front_end/third_party/third-party-web/package/LICENSE +0 -20
  485. package/lib/front_end/third_party/third-party-web/package/README.md +0 -929
  486. package/lib/front_end/third_party/third-party-web/package/dist/entities-httparchive-nostats.json +0 -1
  487. package/lib/front_end/third_party/third-party-web/package/dist/entities-httparchive.json +0 -1
  488. package/lib/front_end/third_party/third-party-web/package/dist/entities-nostats.json +0 -1
  489. package/lib/front_end/third_party/third-party-web/package/dist/entities.json +0 -1
  490. package/lib/front_end/third_party/third-party-web/package/facades.md +0 -46
  491. package/lib/front_end/third_party/third-party-web/package/httparchive-nostats-subset.d.ts +0 -1
  492. package/lib/front_end/third_party/third-party-web/package/httparchive-nostats-subset.js +0 -1
  493. package/lib/front_end/third_party/third-party-web/package/httparchive-subset.d.ts +0 -1
  494. package/lib/front_end/third_party/third-party-web/package/httparchive-subset.js +0 -1
  495. package/lib/front_end/third_party/third-party-web/package/lib/__snapshots__/index.test.js.snap +0 -1006
  496. package/lib/front_end/third_party/third-party-web/package/lib/create-entity-finder-api.js +0 -139
  497. package/lib/front_end/third_party/third-party-web/package/lib/create-entity-finder-api.test.js +0 -44
  498. package/lib/front_end/third_party/third-party-web/package/lib/entities.test.js +0 -27
  499. package/lib/front_end/third_party/third-party-web/package/lib/index.d.ts +0 -34
  500. package/lib/front_end/third_party/third-party-web/package/lib/index.js +0 -3
  501. package/lib/front_end/third_party/third-party-web/package/lib/index.test.js +0 -246
  502. package/lib/front_end/third_party/third-party-web/package/lib/markdown/faqs.partial.md +0 -36
  503. package/lib/front_end/third_party/third-party-web/package/lib/markdown/goals.partial.md +0 -9
  504. package/lib/front_end/third_party/third-party-web/package/lib/markdown/methodology.partial.md +0 -5
  505. package/lib/front_end/third_party/third-party-web/package/lib/markdown/template.md +0 -151
  506. package/lib/front_end/third_party/third-party-web/package/lib/markdown/updates/2019-02-01.md +0 -1
  507. package/lib/front_end/third_party/third-party-web/package/lib/markdown/updates/2019-03-01.md +0 -1
  508. package/lib/front_end/third_party/third-party-web/package/lib/markdown/updates/2019-05-06.md +0 -1
  509. package/lib/front_end/third_party/third-party-web/package/lib/markdown/updates/2019-05-13.md +0 -14
  510. package/lib/front_end/third_party/third-party-web/package/lib/markdown/updates/2021-01-01.md +0 -1
  511. package/lib/front_end/third_party/third-party-web/package/lib/markdown/updates/2024-07-01.md +0 -3
  512. package/lib/front_end/third_party/third-party-web/package/lib/subsets/httparchive-nostats.d.ts +0 -1
  513. package/lib/front_end/third_party/third-party-web/package/lib/subsets/httparchive-nostats.js +0 -3
  514. package/lib/front_end/third_party/third-party-web/package/lib/subsets/httparchive.d.ts +0 -1
  515. package/lib/front_end/third_party/third-party-web/package/lib/subsets/httparchive.js +0 -3
  516. package/lib/front_end/third_party/third-party-web/package/lib/subsets/nostats.d.ts +0 -1
  517. package/lib/front_end/third_party/third-party-web/package/lib/subsets/nostats.js +0 -3
  518. package/lib/front_end/third_party/third-party-web/package/nostats-subset.d.ts +0 -1
  519. package/lib/front_end/third_party/third-party-web/package/nostats-subset.js +0 -1
  520. package/lib/front_end/third_party/third-party-web/package/package.json +0 -46
  521. package/lib/front_end/third_party/third-party-web/package.json +0 -8
  522. package/lib/front_end/third_party/third-party-web/rebuild.sh +0 -13
  523. package/lib/front_end/third_party/third-party-web/third-party-web-tsconfig.json +0 -8
  524. package/lib/front_end/third_party/third-party-web/third-party-web.ts +0 -3
  525. package/lib/front_end/ui/legacy/theme_support/ThemeSupport.ts +0 -222
  526. package/lib/front_end/ui/legacy/theme_support/theme_support.ts +0 -5
  527. package/patches/chrome-devtools-frontend+1.0.1533544.patch +0 -1716
@@ -1,128 +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
- import * as Helpers from '../helpers/helpers.js';
5
- import * as Types from '../types/types.js';
6
-
7
- import type {HandlerName} from './types.js';
8
-
9
- export interface Data {
10
- animationFrames: Types.Events.SyntheticAnimationFramePair[];
11
- presentationForFrame: Map<Types.Events.SyntheticAnimationFramePair, Types.Events.AnimationFramePresentation>;
12
- }
13
-
14
- function threadKey(data: Types.Events.Event): string {
15
- return `${data.pid}-${data.tid}`;
16
- }
17
- // Track all the start + end events. We key them by the PID+TID so we don't
18
- // accidentally pair across different threads.
19
- let animationFrameStarts = new Map<string, Types.Events.AnimationFrameAsyncStart[]>();
20
- let animationFrameEnds = new Map<string, Types.Events.AnimationFrameAsyncEnd[]>();
21
- // Store all the AnimationFrame::Presentation events. Key them by their ID for
22
- // easy look-up later on when we associate one to the AnimationFrame event.
23
- let animationFramePresentations = new Map<string, Types.Events.AnimationFramePresentation>();
24
-
25
- // The final list of animation frames that we return.
26
- let animationFrames: Types.Events.SyntheticAnimationFramePair[] = [];
27
-
28
- let presentationForFrame = new Map<Types.Events.SyntheticAnimationFramePair, Types.Events.AnimationFramePresentation>();
29
-
30
- export function reset(): void {
31
- animationFrameStarts = new Map();
32
- animationFrameEnds = new Map();
33
- animationFrames = [];
34
- presentationForFrame = new Map();
35
- animationFramePresentations = new Map();
36
- isEnabled = false;
37
- }
38
-
39
- let isEnabled = false;
40
- export function handleUserConfig(config: Types.Configuration.Configuration): void {
41
- isEnabled = config.enableAnimationsFrameHandler;
42
- }
43
-
44
- export function handleEvent(event: Types.Events.Event): void {
45
- if (!isEnabled) {
46
- return;
47
- }
48
-
49
- if (Types.Events.isAnimationFrameAsyncStart(event)) {
50
- const key = threadKey(event);
51
- const existing = animationFrameStarts.get(key) ?? [];
52
- existing.push(event);
53
- animationFrameStarts.set(key, existing);
54
- } else if (Types.Events.isAnimationFrameAsyncEnd(event)) {
55
- const key = threadKey(event);
56
- const existing = animationFrameEnds.get(key) ?? [];
57
- existing.push(event);
58
- animationFrameEnds.set(key, existing);
59
- } else if (Types.Events.isAnimationFramePresentation(event) && event.args?.id) {
60
- animationFramePresentations.set(event.args.id, event);
61
- }
62
- }
63
-
64
- export async function finalize(): Promise<void> {
65
- // AnimationFrames are represented with begin & end events on a stack; so we
66
- // can pair them by walking through the list of start events and pairing with
67
- // the same index in the list of end events, once both lists are sorted by
68
- // timestamp.
69
- // We walk through the set of begin/end events we gathered per pid+tid and
70
- // pair those up.
71
- // Unfortunately we cannot use the pairing helpers in Helpers.Trace because
72
- // only the begin event has an ID; the end event does not. But because we
73
- // know that AnimationFrames are sequential and do not overlap, we can pair
74
- // up events easily.
75
- for (const [key, startEvents] of animationFrameStarts.entries()) {
76
- const endEvents = animationFrameEnds.get(key);
77
- if (!endEvents) {
78
- continue;
79
- }
80
-
81
- Helpers.Trace.sortTraceEventsInPlace(startEvents);
82
- Helpers.Trace.sortTraceEventsInPlace(endEvents);
83
-
84
- for (let i = 0; i < startEvents.length; i++) {
85
- const endEvent = endEvents.at(i);
86
- if (!endEvent) {
87
- // Invalid data: break. We can't pair any other events up.
88
- break;
89
- }
90
- const startEvent = startEvents[i];
91
-
92
- const syntheticEvent = Helpers.SyntheticEvents.SyntheticEventsManager
93
- .registerSyntheticEvent<Types.Events.SyntheticAnimationFramePair>({
94
- rawSourceEvent: startEvent,
95
- ...startEvent,
96
- dur: Types.Timing.Micro(endEvent.ts - startEvent.ts),
97
- args: {
98
- data: {
99
- beginEvent: startEvent,
100
- endEvent,
101
- },
102
- },
103
- });
104
- animationFrames.push(syntheticEvent);
105
-
106
- // AnimationFrame begin events + AnimationFrame::Presentation events share
107
- // an args.id, so we can pair them up based on that.
108
- const id = startEvent.args?.id;
109
- if (id) {
110
- const presentationEvent = animationFramePresentations.get(id);
111
- if (presentationEvent) {
112
- presentationForFrame.set(syntheticEvent, presentationEvent);
113
- }
114
- }
115
- }
116
- }
117
- }
118
-
119
- export function data(): Data {
120
- return {
121
- animationFrames,
122
- presentationForFrame,
123
- };
124
- }
125
-
126
- export function deps(): HandlerName[] {
127
- return ['Meta'];
128
- }
@@ -1,36 +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
- import * as Helpers from '../helpers/helpers.js';
6
- import * as Types from '../types/types.js';
7
-
8
- let animations: Types.Events.Animation[] = [];
9
- let animationsSyntheticEvents: Types.Events.SyntheticAnimationPair[] = [];
10
-
11
- export interface AnimationData {
12
- animations: readonly Types.Events.SyntheticAnimationPair[];
13
- }
14
-
15
- export function reset(): void {
16
- animations = [];
17
- animationsSyntheticEvents = [];
18
- }
19
-
20
- export function handleEvent(event: Types.Events.Event): void {
21
- if (Types.Events.isAnimation(event)) {
22
- animations.push(event);
23
- return;
24
- }
25
- }
26
-
27
- export async function finalize(): Promise<void> {
28
- const syntheticEvents = Helpers.Trace.createMatchedSortedSyntheticEvents(animations);
29
- animationsSyntheticEvents.push(...syntheticEvents);
30
- }
31
-
32
- export function data(): AnimationData {
33
- return {
34
- animations: animationsSyntheticEvents,
35
- };
36
- }
@@ -1,239 +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
- import * as Platform from '../../../core/platform/platform.js';
5
- import type * as Helpers from '../helpers/helpers.js';
6
- import * as Types from '../types/types.js';
7
-
8
- import {data as flowsHandlerData} from './FlowsHandler.js';
9
- import {data as rendererHandlerData} from './RendererHandler.js';
10
-
11
- let schedulerToRunEntryPoints = new Map<Types.Events.Event, Types.Events.Event[]>();
12
-
13
- let taskScheduleForTaskRunEvent = new Map<Types.Events.DebuggerAsyncTaskRun, Types.Events.DebuggerAsyncTaskScheduled>();
14
- let asyncCallToScheduler =
15
- new Map<Types.Events.SyntheticProfileCall, {taskName: string, scheduler: Types.Events.Event}>();
16
-
17
- let runEntryPointToScheduler = new Map<Types.Events.Event, {taskName: string, scheduler: Types.Events.Event}>();
18
-
19
- export function reset(): void {
20
- schedulerToRunEntryPoints = new Map();
21
- asyncCallToScheduler = new Map();
22
- taskScheduleForTaskRunEvent = new Map();
23
- runEntryPointToScheduler = new Map();
24
- }
25
-
26
- export function handleEvent(_: Types.Events.Event): void {
27
- }
28
-
29
- export async function finalize(): Promise<void> {
30
- const {flows} = flowsHandlerData();
31
- const {entryToNode} = rendererHandlerData();
32
- // Process async task flows
33
- for (const flow of flows) {
34
- let maybeAsyncTaskScheduled = flow.at(0);
35
- if (!maybeAsyncTaskScheduled) {
36
- continue;
37
- }
38
- if (Types.Events.isDebuggerAsyncTaskRun(maybeAsyncTaskScheduled)) {
39
- // Sometimes a AsyncTaskRun event run can incorrectly appear as
40
- // initiated by another AsyncTaskRun from Perfetto's flows
41
- // perspective.
42
- // For example, in this snippet:
43
- //
44
- // const myTask = console.createTask('hola'); // creates an AsyncTaskSchedule
45
- // myTask.run(something); // creates an AsyncTaskRun
46
- // myTask.run(somethingElse); // creates an AsyncTaskRun
47
- //
48
- // or also in this one
49
- //
50
- // setInterval(something); // creates multiple connected AsyncTaskRun.
51
- //
52
- // Because the flow id is created based on the task's memory address,
53
- // the three events will end up belonging to the same flow (even if
54
- // in the frontend we receive it as pairs), and elements in a flow
55
- // are connected to their immediately consecutive neighbor.
56
- //
57
- // To ensure we use the right Schedule event, if the "initiating"
58
- // portion of the flow is a Run event, we look for any corresponding
59
- // Schedule event that we might have found before.
60
- maybeAsyncTaskScheduled = taskScheduleForTaskRunEvent.get(maybeAsyncTaskScheduled);
61
- }
62
- if (!maybeAsyncTaskScheduled || !Types.Events.isDebuggerAsyncTaskScheduled(maybeAsyncTaskScheduled)) {
63
- continue;
64
- }
65
- const taskName = maybeAsyncTaskScheduled.args.taskName;
66
- const asyncTaskRun = flow.at(1);
67
- if (!asyncTaskRun || !Types.Events.isDebuggerAsyncTaskRun(asyncTaskRun)) {
68
- // Unexpected flow shape, ignore.
69
- continue;
70
- }
71
- // Cache the Schedule event for this Run for future reference.
72
- taskScheduleForTaskRunEvent.set(asyncTaskRun, maybeAsyncTaskScheduled);
73
-
74
- // Get the JS call scheduled the task.
75
- const asyncCaller = findNearestJSAncestor(maybeAsyncTaskScheduled, entryToNode);
76
-
77
- // Get the trace entrypoint for the scheduled task (e.g. FunctionCall, etc.).
78
- const asyncEntryPoint = findFirstJsInvocationForAsyncTaskRun(asyncTaskRun, entryToNode);
79
-
80
- // Store the async relationship between traces to be shown with initiator arrows.
81
- // Default to the AsyncTask events in case the JS entrypoints aren't found.
82
- runEntryPointToScheduler.set(
83
- asyncEntryPoint || asyncTaskRun, {taskName, scheduler: asyncCaller || maybeAsyncTaskScheduled});
84
- if (!asyncCaller || !asyncEntryPoint) {
85
- // Unexpected async call trace data shape, ignore.
86
- continue;
87
- }
88
- // Set scheduler -> scheduled mapping.
89
- // The scheduled being the JS entrypoint
90
- const entryPoints = Platform.MapUtilities.getWithDefault(schedulerToRunEntryPoints, asyncCaller, () => []);
91
- entryPoints.push(asyncEntryPoint);
92
-
93
- // Set scheduled -> scheduler mapping.
94
- // The scheduled being the JS calls (instead of the entrypoints as
95
- // above, for usage ergonomics).
96
- const scheduledProfileCalls = findFirstJSCallsForAsyncTaskRun(asyncTaskRun, entryToNode);
97
- for (const call of scheduledProfileCalls) {
98
- asyncCallToScheduler.set(call, {taskName, scheduler: asyncCaller});
99
- }
100
- }
101
- }
102
- /**
103
- * Given a DebuggerAsyncTaskScheduled event, returns its closest
104
- * ProfileCall or JS invocation ancestor, which represents the JS call
105
- * that scheduled the async task.
106
- */
107
- function findNearestJSAncestor(
108
- asyncTaskScheduled: Types.Events.DebuggerAsyncTaskScheduled,
109
- entryToNode: Map<Types.Events.Event, Helpers.TreeHelpers.TraceEntryNode>): Types.Events.Event|null {
110
- let node = entryToNode.get(asyncTaskScheduled)?.parent;
111
- while (node) {
112
- if (Types.Events.isProfileCall(node.entry) || acceptJSInvocationsPredicate(node.entry)) {
113
- return node.entry;
114
- }
115
- node = node.parent;
116
- }
117
- return null;
118
- }
119
- /**
120
- * Entrypoints to JS execution in the timeline. We ignore those starting
121
- * with 'v8' because they aren't shown in the timeline, and ultimately
122
- * this function's output results in "initiated" events, so ideally this
123
- * returns events that end up in the flame chart.
124
- */
125
- function acceptJSInvocationsPredicate(event: Types.Events.Event): event is Types.Events.Event {
126
- const eventIsConsoleRunTask = Types.Events.isConsoleRunTask(event);
127
- const eventIsV8EntryPoint = event.name.startsWith('v8') || event.name.startsWith('V8');
128
- return Types.Events.isJSInvocationEvent(event) && (eventIsConsoleRunTask || !eventIsV8EntryPoint);
129
- }
130
-
131
- /**
132
- * Given a DebuggerAsyncTaskRun event, returns its closest JS entry
133
- * point descendant, which contains the task being scheduled.
134
- */
135
- function findFirstJsInvocationForAsyncTaskRun(
136
- asyncTaskRun: Types.Events.DebuggerAsyncTaskRun,
137
- entryToNode: Map<Types.Events.Event, Helpers.TreeHelpers.TraceEntryNode>): Types.Events.Event|undefined {
138
- // Ignore descendants of other DebuggerAsyncTaskRuns since they
139
- // are part of another async task and have to be handled separately
140
- return findFirstDescendantsOfType(
141
- asyncTaskRun, entryToNode, acceptJSInvocationsPredicate, Types.Events.isDebuggerAsyncTaskRun)
142
- .at(0);
143
- }
144
-
145
- /**
146
- * Given an async task run event, returns the top level call frames
147
- * (profile calls) directly called by the async task. This implies that
148
- * any profile calls under another async task run event are ignored.
149
- * These profile calls represent the JS task being scheduled, AKA
150
- * the other part of the async stack.
151
- *
152
- * For example, here the profile calls "js 1", "js 2" and "js 4" would
153
- * be returned:
154
- *
155
- * |------------------Async Task Run------------------|
156
- * |--FunctionCall--| |--FunctionCall--|
157
- * |-js 1-||-js 2-| |-js 4-|
158
- * |-js 3-|
159
- *
160
- * But here, only "js 1" and "js 2" would be returned:
161
- *
162
- * |------------------Async Task Run------------------|
163
- * |--FunctionCall--| |------------------------|
164
- * |-js 1-||-js 2-| |---Async Task Run--|
165
- * |-js 3-| |--FunctionCall--|
166
- * |-js 4-|
167
- */
168
- function findFirstJSCallsForAsyncTaskRun(
169
- asyncTaskRun: Types.Events.DebuggerAsyncTaskRun,
170
- entryToNode: Map<Types.Events.Event, Helpers.TreeHelpers.TraceEntryNode>): Types.Events.SyntheticProfileCall[] {
171
- // Ignore descendants of other DebuggerAsyncTaskRuns since they
172
- // are part of another async task and have to be handled separately
173
- return findFirstDescendantsOfType(
174
- asyncTaskRun, entryToNode, Types.Events.isProfileCall, Types.Events.isDebuggerAsyncTaskRun);
175
- }
176
-
177
- /**
178
- * Given a root event returns all the first descendants that meet a
179
- * predicate condition (predicateAccept) while ignoring subtrees whose
180
- * top event meets an ignore condition (predicateIgnore).
181
- */
182
- function findFirstDescendantsOfType<T extends Types.Events.Event>(
183
- root: Types.Events.Event, entryToNode: Map<Types.Events.Event, Helpers.TreeHelpers.TraceEntryNode>,
184
- predicateAccept: (event: Types.Events.Event) => event is T,
185
- predicateIgnore: (event: Types.Events.Event) => boolean): T[] {
186
- const node = entryToNode.get(root);
187
- if (!node) {
188
- return [];
189
- }
190
- const childrenGroups = [[...node.children]];
191
- const firstDescendants = [];
192
- for (let i = 0; i < childrenGroups.length; i++) {
193
- const siblings = childrenGroups[i];
194
- for (let j = 0; j < siblings.length; j++) {
195
- const node = siblings[j];
196
- if (predicateAccept(node.entry)) {
197
- firstDescendants.push(node.entry);
198
- } else if (!predicateIgnore(node.entry)) {
199
- childrenGroups.push([...node.children]);
200
- }
201
- }
202
- }
203
- return firstDescendants;
204
- }
205
-
206
- export function data(): {
207
- // Given a profile call, returns the JS entrypoint it scheduled (if any).
208
- // For example, given a setTimeout call, returns the JS entry point
209
- // trace event for the timeout callback run event (usually a
210
- // FunctionCall event).
211
- schedulerToRunEntryPoints: typeof schedulerToRunEntryPoints,
212
- // Given a profile call, returns the profile call that scheduled it.
213
- // For example given a timeout callback run event, returns its
214
- // setTimeout call event.
215
- asyncCallToScheduler: typeof asyncCallToScheduler,
216
- // Given a trace event, returns its corresponding async parent trace
217
- // event caused by an async js call. This can be used as a fallback
218
- // for cases where a corresponding JS call is not found at either
219
- // end of the async task scheduling pair (e.g. due to sampling data
220
- // incompleteness).
221
- // In the StackTraceForEvent helper, as we move up the call tree,
222
- // this is used to jump to an async parent stack from a
223
- // non-profile call trace event in cases where a profile call wasn't
224
- // found before. In theory we should make the jump from the scheduled
225
- // profile call using `asyncCallToScheduler`, but its possible that
226
- // the the call information isn't available to us as a consequence of
227
- // missing samples.
228
- runEntryPointToScheduler: typeof runEntryPointToScheduler,
229
- } {
230
- return {
231
- schedulerToRunEntryPoints,
232
- asyncCallToScheduler,
233
- runEntryPointToScheduler,
234
- };
235
- }
236
-
237
- export function deps(): ['Renderer', 'Flows'] {
238
- return ['Renderer', 'Flows'];
239
- }
@@ -1,183 +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 * as Helpers from '../helpers/helpers.js';
6
- import * as Types from '../types/types.js';
7
-
8
- /**
9
- * There are two metadata events that we care about.
10
- * => AuctionWorkletRunningInProcess tells us which process the Auction Worklet
11
- * has taken to run in.
12
- * => AuctionWorkletDoneWithProcess tells us when the worklet is done with that
13
- * process. This is less useful - but in the future we might want to surface
14
- * this information so we still parse and return the event.
15
- *
16
- * It is important to note that the top level PID on these events is NOT the
17
- * PID that the worklet is running on; instead we have to look at its
18
- * args.data.pid property, which is the PID of the process that it is running
19
- * on.
20
- *
21
- * For any given RunningInProcess event, we would typically expect to see a
22
- * DoneWithProcess event, however this is not guaranteed, especially as users
23
- * can record any chunk of time in DevTools.
24
- *
25
- * Similarly, it is also possible to see a DoneWithProcess event without a
26
- * RunningInProcess event, if the user started recording after the auction
27
- * worklets started. Therefore we are happy to create
28
- * SyntheticAuctionWorklets as long as we see just one of these events.
29
- *
30
- * If we do get two events and need to pair them, we can use the
31
- * args.data.target property, which is a string ID shared by both
32
- * events.
33
- */
34
- let runningInProcessEvents = new Map<Types.Events.ProcessID, Types.Events.AuctionWorkletRunningInProcess>();
35
- let doneWithProcessEvents = new Map<Types.Events.ProcessID, Types.Events.AuctionWorkletDoneWithProcess>();
36
-
37
- // Keyed by the PID defined in `args.data.pid` on AuctionWorklet trace events..
38
- let createdSyntheticEvents = new Map<Types.Events.ProcessID, Types.Events.SyntheticAuctionWorklet>();
39
-
40
- // Each AuctonWorklet takes over a process and has 2 threads (that we care
41
- // about and want to show as tracks):
42
- // 1. A CrUtilityMain thread which is known as the "control process".
43
- // 2. A AuctionV8HelperThread which is the actual auction worklet and will be
44
- // either a "Seller" or a "Bidder"
45
- // To detect these we look for the metadata thread_name events. We key these by
46
- // PID so that we can easily look them up later without having to loop through.
47
- let utilityThreads = new Map<Types.Events.ProcessID, Types.Events.ThreadName>();
48
- let v8HelperThreads = new Map<Types.Events.ProcessID, Types.Events.ThreadName>();
49
-
50
- export function reset(): void {
51
- runningInProcessEvents = new Map();
52
- doneWithProcessEvents = new Map();
53
- createdSyntheticEvents = new Map();
54
- utilityThreads = new Map();
55
- v8HelperThreads = new Map();
56
- }
57
-
58
- export function handleEvent(event: Types.Events.Event): void {
59
- if (Types.Events.isAuctionWorkletRunningInProcess(event)) {
60
- runningInProcessEvents.set(event.args.data.pid, event);
61
- return;
62
- }
63
-
64
- if (Types.Events.isAuctionWorkletDoneWithProcess(event)) {
65
- doneWithProcessEvents.set(event.args.data.pid, event);
66
- return;
67
- }
68
-
69
- if (Types.Events.isThreadName(event)) {
70
- if (event.args.name === 'auction_worklet.CrUtilityMain') {
71
- utilityThreads.set(event.pid, event);
72
- return;
73
- }
74
- if (event.args.name === 'AuctionV8HelperThread') {
75
- v8HelperThreads.set(event.pid, event);
76
- }
77
- }
78
- }
79
-
80
- function workletType(input: string): Types.Events.AuctionWorkletType {
81
- switch (input) {
82
- case 'seller':
83
- return Types.Events.AuctionWorkletType.SELLER;
84
- case 'bidder':
85
- return Types.Events.AuctionWorkletType.BIDDER;
86
- default:
87
- return Types.Events.AuctionWorkletType.UNKNOWN;
88
- }
89
- }
90
-
91
- /**
92
- * We cannot make the full event without knowing the type of event, but we can
93
- * create everything other than the `args` field, as those are identical
94
- * regardless of the type of event.
95
- */
96
- function makeSyntheticEventBase(
97
- event: Types.Events.AuctionWorkletDoneWithProcess|
98
- Types.Events.AuctionWorkletRunningInProcess): Omit<Types.Events.SyntheticAuctionWorklet, 'args'> {
99
- return Helpers.SyntheticEvents.SyntheticEventsManager
100
- .registerSyntheticEvent<Omit<Types.Events.SyntheticAuctionWorklet, 'args'>>({
101
- rawSourceEvent: event,
102
- name: 'SyntheticAuctionWorklet',
103
- s: Types.Events.Scope.THREAD,
104
- cat: event.cat,
105
- tid: event.tid,
106
- ts: event.ts,
107
- ph: Types.Events.Phase.INSTANT,
108
- pid: event.args.data.pid,
109
- host: event.args.data.host,
110
- target: event.args.data.target,
111
- type: workletType(event.args.data.type),
112
- });
113
- }
114
-
115
- export async function finalize(): Promise<void> {
116
- // Loop through the utility threads we found to create the worklet events. We
117
- // expect each worklet to have a utility thread, so we can use them as the
118
- // root of our list of worklets.
119
- for (const [pid, utilityThreadNameEvent] of utilityThreads) {
120
- const v8HelperEvent = v8HelperThreads.get(pid);
121
- if (!v8HelperEvent) {
122
- // Bad trace data - AuctionWorklets are expected to always have both threads.
123
- continue;
124
- }
125
-
126
- const runningEvent = runningInProcessEvents.get(pid);
127
- const doneWithEvent = doneWithProcessEvents.get(pid);
128
-
129
- // We can create a worklet from either the runningEvent or doneWithEvent -
130
- // we do not need both. We cannot express that to TypeScript with an early
131
- // return here, so instead we set the event initially to null, and then
132
- // create it from either the running event or the doneWith event. If it is
133
- // still null after this, that means neither event was found, and we drop
134
- // the worklet as we do not have enough information to create the synthetic
135
- // event.
136
-
137
- let syntheticEvent: Types.Events.SyntheticAuctionWorklet|null = null;
138
-
139
- if (runningEvent) {
140
- syntheticEvent = {
141
- ...makeSyntheticEventBase(runningEvent),
142
- args: {
143
- data: {
144
- runningInProcessEvent: runningEvent,
145
- utilityThread: utilityThreadNameEvent,
146
- v8HelperThread: v8HelperEvent,
147
- },
148
- },
149
- };
150
- if (doneWithEvent) {
151
- syntheticEvent.args.data.doneWithProcessEvent = doneWithEvent;
152
- }
153
- } else if (doneWithEvent) {
154
- syntheticEvent = {
155
- ...makeSyntheticEventBase(doneWithEvent),
156
- args: {
157
- data: {
158
- doneWithProcessEvent: doneWithEvent,
159
- utilityThread: utilityThreadNameEvent,
160
- v8HelperThread: v8HelperEvent,
161
- },
162
- },
163
- };
164
- if (runningEvent) {
165
- syntheticEvent.args.data.runningInProcessEvent = runningEvent;
166
- }
167
- }
168
- if (syntheticEvent === null) {
169
- continue;
170
- }
171
- createdSyntheticEvents.set(pid, syntheticEvent);
172
- }
173
- }
174
-
175
- export interface AuctionWorkletsData {
176
- worklets: Map<Types.Events.ProcessID, Types.Events.SyntheticAuctionWorklet>;
177
- }
178
-
179
- export function data(): AuctionWorkletsData {
180
- return {
181
- worklets: createdSyntheticEvents,
182
- };
183
- }
@@ -1,31 +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 * as Platform from '../../../core/platform/platform.js';
6
- import * as Types from '../types/types.js';
7
-
8
- export interface DOMStatsData {
9
- domStatsByFrameId: Map<string, Types.Events.DOMStats[]>;
10
- }
11
-
12
- let domStatsByFrameId: DOMStatsData['domStatsByFrameId'] = new Map();
13
-
14
- export function reset(): void {
15
- domStatsByFrameId = new Map();
16
- }
17
-
18
- export function handleEvent(event: Types.Events.Event): void {
19
- if (!Types.Events.isDOMStats(event)) {
20
- return;
21
- }
22
- const domStatEvents = Platform.MapUtilities.getWithDefault(domStatsByFrameId, event.args.data.frame, () => []);
23
- domStatEvents.push(event);
24
- }
25
-
26
- export async function finalize(): Promise<void> {
27
- }
28
-
29
- export function data(): DOMStatsData {
30
- return {domStatsByFrameId};
31
- }