@paulirish/trace_engine 0.0.64 → 0.0.66
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/.tmp/tsbuildinfo/tsconfig.tsbuildinfo +1 -1
- package/core/platform/ArrayUtilities.d.ts +5 -0
- package/core/platform/ArrayUtilities.js +14 -0
- package/core/platform/ArrayUtilities.js.map +1 -1
- package/core/platform/HostRuntime.d.ts +1 -0
- package/core/platform/HostRuntime.js +1 -1
- package/core/platform/HostRuntime.js.map +1 -1
- package/core/platform/KeyboardUtilities.js +12 -0
- package/core/platform/KeyboardUtilities.js.map +1 -1
- package/core/platform/MimeType.js +13 -0
- package/core/platform/MimeType.js.map +1 -1
- package/core/platform/Size.d.ts +12 -0
- package/core/platform/Size.js +36 -0
- package/core/platform/Size.js.map +1 -0
- package/core/platform/StringUtilities.d.ts +50 -0
- package/core/platform/StringUtilities.js +145 -4
- package/core/platform/StringUtilities.js.map +1 -1
- package/core/platform/TypescriptUtilities.d.ts +0 -6
- package/core/platform/TypescriptUtilities.js +0 -8
- package/core/platform/TypescriptUtilities.js.map +1 -1
- package/core/platform/api/HostRuntime.d.ts +30 -3
- package/core/platform/api/HostRuntime.js.map +1 -1
- package/core/platform/api/api-tsconfig.json +26 -11
- package/core/platform/api/api-tsconfig.ref.json +26 -0
- package/core/platform/browser/HostRuntime.js +103 -2
- package/core/platform/browser/HostRuntime.js.map +1 -1
- package/core/platform/browser/browser-tsconfig.json +22 -11
- package/core/platform/browser/browser-tsconfig.ref.json +27 -0
- package/core/platform/browser/bundle-tsconfig.json +59 -1
- package/core/platform/browser/bundle-tsconfig.ref.json +27 -0
- package/core/platform/bundle-tsconfig.json +59 -1
- package/core/platform/bundle-tsconfig.ref.json +27 -0
- package/core/platform/foundation_unittests-tsconfig.json +73 -0
- package/core/platform/foundation_unittests-tsconfig.ref.json +40 -0
- package/core/platform/foundation_unittests_node_typecheck-tsconfig.json +70 -0
- package/core/platform/node/HostRuntime.js +58 -4
- package/core/platform/node/HostRuntime.js.map +1 -1
- package/core/platform/node/bundle-tsconfig.json +59 -1
- package/core/platform/node/bundle-tsconfig.ref.json +27 -0
- package/core/platform/node/node-tsconfig.json +16 -9
- package/core/platform/node/node-tsconfig.ref.json +27 -0
- package/core/platform/platform-tsconfig.json +25 -13
- package/core/platform/platform-tsconfig.ref.json +49 -0
- package/core/platform/platform.d.ts +2 -1
- package/core/platform/platform.js +2 -1
- package/core/platform/platform.js.map +1 -1
- package/core/platform/platform_node_typecheck-tsconfig.json +18 -14
- package/core/platform/platform_node_typecheck.stamp +0 -0
- package/generated/protocol.d.ts +941 -718
- package/generated/protocol.js +3300 -1
- package/locales/af.json +191 -134
- package/locales/am.json +191 -134
- package/locales/ar.json +194 -137
- package/locales/as.json +193 -136
- package/locales/az.json +191 -134
- package/locales/be.json +189 -132
- package/locales/bg.json +190 -133
- package/locales/bn.json +191 -134
- package/locales/bs.json +189 -132
- package/locales/ca.json +193 -136
- package/locales/cs.json +185 -128
- package/locales/cy.json +191 -134
- package/locales/da.json +189 -132
- package/locales/de.json +189 -132
- package/locales/el.json +188 -131
- package/locales/en-GB.json +193 -136
- package/locales/en-US.json +165 -141
- package/locales/en-XL.json +165 -141
- package/locales/es-419.json +187 -130
- package/locales/es.json +186 -129
- package/locales/et.json +161 -104
- package/locales/eu.json +188 -131
- package/locales/fa.json +191 -134
- package/locales/fi.json +188 -131
- package/locales/fil.json +191 -134
- package/locales/fr-CA.json +191 -134
- package/locales/fr.json +187 -130
- package/locales/gl.json +190 -133
- package/locales/gu.json +192 -135
- package/locales/he.json +193 -136
- package/locales/hi.json +193 -136
- package/locales/hr.json +190 -133
- package/locales/hu.json +148 -91
- package/locales/hy.json +184 -127
- package/locales/id.json +190 -133
- package/locales/is.json +186 -129
- package/locales/it.json +190 -133
- package/locales/ja.json +187 -130
- package/locales/ka.json +193 -136
- package/locales/kk.json +98 -41
- package/locales/km.json +191 -134
- package/locales/kn.json +194 -137
- package/locales/ko.json +79 -22
- package/locales/ky.json +192 -135
- package/locales/lo.json +191 -134
- package/locales/lt.json +189 -132
- package/locales/lv.json +126 -69
- package/locales/mk.json +191 -134
- package/locales/ml.json +187 -130
- package/locales/mn.json +187 -130
- package/locales/mr.json +189 -132
- package/locales/ms.json +190 -133
- package/locales/my.json +192 -135
- package/locales/ne.json +189 -132
- package/locales/nl.json +186 -129
- package/locales/no.json +188 -131
- package/locales/or.json +189 -132
- package/locales/pa.json +190 -133
- package/locales/pl.json +190 -133
- package/locales/pt-PT.json +189 -132
- package/locales/pt.json +191 -134
- package/locales/ro.json +186 -129
- package/locales/ru.json +110 -53
- package/locales/si.json +191 -134
- package/locales/sk.json +190 -133
- package/locales/sl.json +186 -129
- package/locales/sq.json +187 -130
- package/locales/sr-Latn.json +187 -130
- package/locales/sr.json +187 -130
- package/locales/sv.json +189 -132
- package/locales/sw.json +195 -138
- package/locales/ta.json +190 -133
- package/locales/te.json +193 -136
- package/locales/th.json +148 -91
- package/locales/tr.json +188 -131
- package/locales/uk.json +186 -129
- package/locales/ur.json +188 -131
- package/locales/uz.json +185 -128
- package/locales/vi.json +196 -139
- package/locales/zh-HK.json +187 -130
- package/locales/zh-TW.json +190 -133
- package/locales/zh.json +189 -132
- package/locales/zu.json +193 -136
- package/models/cpu_profile/bundle-tsconfig.json +59 -1
- package/models/cpu_profile/bundle-tsconfig.ref.json +27 -0
- package/models/cpu_profile/cpu_profile-tsconfig.json +24 -16
- package/models/cpu_profile/cpu_profile-tsconfig.ref.json +31 -0
- package/models/cpu_profile/cpu_profile_node_typecheck-tsconfig.json +60 -0
- package/models/cpu_profile/cpu_profile_node_typecheck.stamp +0 -0
- package/models/{trace/devtools_entrypoint-bundle-typescript-tsconfig.json → cpu_profile/foundation_unittests-tsconfig.json} +27 -30
- package/models/cpu_profile/foundation_unittests-tsconfig.ref.json +30 -0
- package/models/cpu_profile/foundation_unittests_node_typecheck-tsconfig.json +60 -0
- package/models/trace/EntityMapper.js +1 -1
- package/models/trace/EntityMapper.js.map +1 -1
- package/models/trace/LanternComputationData.js +7 -0
- package/models/trace/LanternComputationData.js.map +1 -1
- package/models/trace/ModelImpl.d.ts +1 -5
- package/models/trace/ModelImpl.js +11 -0
- package/models/trace/ModelImpl.js.map +1 -1
- package/models/trace/Name.js +5 -5
- package/models/trace/Name.js.map +1 -1
- package/models/trace/Processor.d.ts +2 -6
- package/models/trace/Processor.js +77 -15
- package/models/trace/Processor.js.map +1 -1
- package/models/trace/Styles.js +128 -116
- package/models/trace/Styles.js.map +1 -1
- package/models/trace/bundle-tsconfig.json +77 -1
- package/models/trace/bundle-tsconfig.ref.json +45 -0
- package/models/trace/extras/StackTraceForEvent.d.ts +1 -1
- package/models/trace/extras/StackTraceForEvent.js.map +1 -1
- package/models/trace/extras/ThirdParties.js +7 -7
- package/models/trace/extras/ThirdParties.js.map +1 -1
- package/models/trace/extras/TraceTree.js +23 -3
- package/models/trace/extras/TraceTree.js.map +1 -1
- package/models/trace/extras/bundle-tsconfig.json +59 -1
- package/models/trace/extras/bundle-tsconfig.ref.json +27 -0
- package/models/trace/extras/extras-tsconfig.json +28 -20
- package/models/trace/extras/extras-tsconfig.ref.json +49 -0
- package/models/trace/extras/extras_node_typecheck-tsconfig.json +78 -0
- package/models/trace/extras/extras_node_typecheck.stamp +0 -0
- package/models/trace/extras/foundation_unittests-tsconfig.json +91 -0
- package/models/trace/extras/foundation_unittests-tsconfig.ref.json +58 -0
- package/models/trace/extras/foundation_unittests_node_typecheck-tsconfig.json +88 -0
- package/models/trace/foundation_unittests-tsconfig.json +70 -0
- package/models/trace/foundation_unittests-tsconfig.ref.json +37 -0
- package/models/trace/foundation_unittests_node_typecheck-tsconfig.json +67 -0
- package/models/trace/handlers/AsyncJSCallsHandler.js.map +1 -1
- package/models/trace/handlers/ExtensionTraceDataHandler.js +1 -1
- package/models/trace/handlers/ExtensionTraceDataHandler.js.map +1 -1
- package/models/trace/handlers/FlowsHandler.js.map +1 -1
- package/models/trace/handlers/FramesHandler.d.ts +1 -2
- package/models/trace/handlers/FramesHandler.js +23 -18
- package/models/trace/handlers/FramesHandler.js.map +1 -1
- package/models/trace/handlers/LayerTreeHandler.js +3 -3
- package/models/trace/handlers/LayerTreeHandler.js.map +1 -1
- package/models/trace/handlers/LayoutShiftsHandler.d.ts +2 -2
- package/models/trace/handlers/LayoutShiftsHandler.js +17 -18
- package/models/trace/handlers/LayoutShiftsHandler.js.map +1 -1
- package/models/trace/handlers/MetaHandler.d.ts +2 -3
- package/models/trace/handlers/MetaHandler.js +38 -7
- package/models/trace/handlers/MetaHandler.js.map +1 -1
- package/models/trace/handlers/ModelHandlers.d.ts +0 -1
- package/models/trace/handlers/ModelHandlers.js +0 -1
- package/models/trace/handlers/ModelHandlers.js.map +1 -1
- package/models/trace/handlers/NetworkRequestsHandler.js +13 -11
- package/models/trace/handlers/NetworkRequestsHandler.js.map +1 -1
- package/models/trace/handlers/PageLoadMetricsHandler.d.ts +2 -0
- package/models/trace/handlers/PageLoadMetricsHandler.js +43 -4
- package/models/trace/handlers/PageLoadMetricsHandler.js.map +1 -1
- package/models/trace/handlers/RendererHandler.js +19 -20
- package/models/trace/handlers/RendererHandler.js.map +1 -1
- package/models/trace/handlers/SamplesHandler.js.map +1 -1
- package/models/trace/handlers/ScreenshotsHandler.js +1 -43
- package/models/trace/handlers/ScreenshotsHandler.js.map +1 -1
- package/models/trace/handlers/Threads.d.ts +1 -3
- package/models/trace/handlers/Threads.js +4 -8
- package/models/trace/handlers/Threads.js.map +1 -1
- package/models/trace/handlers/UserInteractionsHandler.js.map +1 -1
- package/models/trace/handlers/UserTimingsHandler.d.ts +1 -1
- package/models/trace/handlers/UserTimingsHandler.js +16 -6
- package/models/trace/handlers/UserTimingsHandler.js.map +1 -1
- package/models/trace/handlers/WarningsHandler.js.map +1 -1
- package/models/trace/handlers/bundle-tsconfig.json +59 -1
- package/models/trace/handlers/bundle-tsconfig.ref.json +27 -0
- package/models/trace/handlers/foundation_unittests-tsconfig.json +102 -0
- package/models/trace/handlers/foundation_unittests-tsconfig.ref.json +69 -0
- package/models/trace/handlers/foundation_unittests_node_typecheck-tsconfig.json +99 -0
- package/models/trace/handlers/handlers-tsconfig.json +30 -23
- package/models/trace/handlers/handlers-tsconfig.ref.json +80 -0
- package/models/trace/handlers/handlers_node_typecheck-tsconfig.json +109 -0
- package/models/trace/handlers/handlers_node_typecheck.stamp +0 -0
- package/models/trace/helpers/Network.d.ts +3 -1
- package/models/trace/helpers/Network.js.map +1 -1
- package/models/trace/helpers/SamplesIntegrator.js +22 -6
- package/models/trace/helpers/SamplesIntegrator.js.map +1 -1
- package/models/trace/helpers/SyntheticEvents.d.ts +7 -0
- package/models/trace/helpers/SyntheticEvents.js +20 -1
- package/models/trace/helpers/SyntheticEvents.js.map +1 -1
- package/models/trace/helpers/Timing.js +14 -1
- package/models/trace/helpers/Timing.js.map +1 -1
- package/models/trace/helpers/Trace.js.map +1 -1
- package/models/trace/helpers/bundle-tsconfig.json +59 -1
- package/models/trace/helpers/bundle-tsconfig.ref.json +27 -0
- package/models/trace/helpers/foundation_unittests-tsconfig.json +73 -0
- package/models/trace/helpers/foundation_unittests-tsconfig.ref.json +40 -0
- package/models/trace/helpers/foundation_unittests_node_typecheck-tsconfig.json +70 -0
- package/models/trace/helpers/helpers-tsconfig.json +27 -22
- package/models/trace/helpers/helpers-tsconfig.ref.json +45 -0
- package/models/trace/helpers/helpers_node_typecheck-tsconfig.json +74 -0
- package/models/trace/helpers/helpers_node_typecheck.stamp +0 -0
- package/models/trace/insights/CLSCulprits.d.ts +18 -15
- package/models/trace/insights/CLSCulprits.js +7 -6
- package/models/trace/insights/CLSCulprits.js.map +1 -1
- package/models/trace/insights/Cache.d.ts +8 -7
- package/models/trace/insights/Cache.js.map +1 -1
- package/models/trace/insights/CharacterSet.d.ts +10 -9
- package/models/trace/insights/CharacterSet.js +4 -4
- package/models/trace/insights/CharacterSet.js.map +1 -1
- package/models/trace/insights/Common.d.ts +2 -1
- package/models/trace/insights/Common.js +32 -3
- package/models/trace/insights/Common.js.map +1 -1
- package/models/trace/insights/DOMSize.d.ts +15 -14
- package/models/trace/insights/DOMSize.js +2 -2
- package/models/trace/insights/DOMSize.js.map +1 -1
- package/models/trace/insights/DocumentLatency.d.ts +13 -12
- package/models/trace/insights/DocumentLatency.js +4 -4
- package/models/trace/insights/DocumentLatency.js.map +1 -1
- package/models/trace/insights/DuplicatedJavaScript.d.ts +16 -7
- package/models/trace/insights/DuplicatedJavaScript.js +11 -3
- package/models/trace/insights/DuplicatedJavaScript.js.map +1 -1
- package/models/trace/insights/FontDisplay.d.ts +19 -9
- package/models/trace/insights/FontDisplay.js +13 -3
- package/models/trace/insights/FontDisplay.js.map +1 -1
- package/models/trace/insights/ForcedReflow.d.ts +13 -13
- package/models/trace/insights/ForcedReflow.js +4 -4
- package/models/trace/insights/ForcedReflow.js.map +1 -1
- package/models/trace/insights/INPBreakdown.d.ts +12 -12
- package/models/trace/insights/INPBreakdown.js +1 -1
- package/models/trace/insights/INPBreakdown.js.map +1 -1
- package/models/trace/insights/ImageDelivery.d.ts +13 -12
- package/models/trace/insights/ImageDelivery.js +5 -5
- package/models/trace/insights/ImageDelivery.js.map +1 -1
- package/models/trace/insights/LCPBreakdown.d.ts +13 -12
- package/models/trace/insights/LCPBreakdown.js +3 -3
- package/models/trace/insights/LCPBreakdown.js.map +1 -1
- package/models/trace/insights/LCPDiscovery.d.ts +14 -13
- package/models/trace/insights/LCPDiscovery.js +7 -7
- package/models/trace/insights/LCPDiscovery.js.map +1 -1
- package/models/trace/insights/LegacyJavaScript.d.ts +16 -7
- package/models/trace/insights/LegacyJavaScript.js +11 -3
- package/models/trace/insights/LegacyJavaScript.js.map +1 -1
- package/models/trace/insights/ModernHTTP.d.ts +10 -10
- package/models/trace/insights/ModernHTTP.js +9 -5
- package/models/trace/insights/ModernHTTP.js.map +1 -1
- package/models/trace/insights/NetworkDependencyTree.d.ts +33 -28
- package/models/trace/insights/NetworkDependencyTree.js +17 -13
- package/models/trace/insights/NetworkDependencyTree.js.map +1 -1
- package/models/trace/insights/RenderBlocking.d.ts +8 -7
- package/models/trace/insights/RenderBlocking.js +3 -5
- package/models/trace/insights/RenderBlocking.js.map +1 -1
- package/models/trace/insights/SlowCSSSelector.d.ts +17 -16
- package/models/trace/insights/SlowCSSSelector.js +23 -20
- package/models/trace/insights/SlowCSSSelector.js.map +1 -1
- package/models/trace/insights/ThirdParties.d.ts +22 -13
- package/models/trace/insights/ThirdParties.js +19 -8
- package/models/trace/insights/ThirdParties.js.map +1 -1
- package/models/trace/insights/Viewport.d.ts +8 -6
- package/models/trace/insights/Viewport.js +4 -2
- package/models/trace/insights/Viewport.js.map +1 -1
- package/models/trace/insights/bundle-tsconfig.json +59 -1
- package/models/trace/insights/bundle-tsconfig.ref.json +27 -0
- package/models/trace/insights/foundation_unittests-tsconfig.json +98 -0
- package/models/trace/insights/foundation_unittests-tsconfig.ref.json +65 -0
- package/models/trace/insights/foundation_unittests_node_typecheck-tsconfig.json +95 -0
- package/models/trace/insights/insights-tsconfig.json +34 -23
- package/models/trace/insights/insights-tsconfig.ref.json +82 -0
- package/models/trace/insights/insights_node_typecheck-tsconfig.json +111 -0
- package/models/trace/insights/insights_node_typecheck.stamp +0 -0
- package/models/trace/insights/types.d.ts +9 -6
- package/models/trace/insights/types.js.map +1 -1
- package/models/trace/lantern/bundle-tsconfig.json +71 -1
- package/models/trace/lantern/bundle-tsconfig.ref.json +39 -0
- package/models/trace/lantern/core/NetworkAnalyzer.d.ts +5 -4
- package/models/trace/lantern/core/NetworkAnalyzer.js +21 -22
- package/models/trace/lantern/core/NetworkAnalyzer.js.map +1 -1
- package/models/trace/lantern/core/bundle-tsconfig.json +59 -1
- package/models/trace/lantern/core/bundle-tsconfig.ref.json +27 -0
- package/models/trace/lantern/core/core-tsconfig.json +23 -12
- package/models/trace/lantern/core/core-tsconfig.ref.json +28 -0
- package/models/trace/lantern/core/core_node_typecheck-tsconfig.json +57 -0
- package/models/trace/lantern/core/core_node_typecheck.stamp +0 -0
- package/models/trace/lantern/core/{devtools_entrypoint-bundle-typescript-tsconfig.json → foundation_unittests-tsconfig.json} +34 -13
- package/models/trace/lantern/core/foundation_unittests-tsconfig.ref.json +36 -0
- package/models/trace/lantern/core/foundation_unittests_node_typecheck-tsconfig.json +66 -0
- package/models/trace/lantern/graph/BaseNode.d.ts +2 -2
- package/models/trace/lantern/graph/BaseNode.js.map +1 -1
- package/models/trace/lantern/graph/CPUNode.d.ts +4 -2
- package/models/trace/lantern/graph/CPUNode.js +23 -7
- package/models/trace/lantern/graph/CPUNode.js.map +1 -1
- package/models/trace/lantern/graph/NetworkNode.js +12 -0
- package/models/trace/lantern/graph/NetworkNode.js.map +1 -1
- package/models/trace/lantern/graph/PageDependencyGraph.js +26 -4
- package/models/trace/lantern/graph/PageDependencyGraph.js.map +1 -1
- package/models/trace/lantern/graph/bundle-tsconfig.json +59 -1
- package/models/trace/lantern/graph/bundle-tsconfig.ref.json +27 -0
- package/models/trace/lantern/graph/{devtools_entrypoint-bundle-typescript-tsconfig.json → foundation_unittests-tsconfig.json} +26 -13
- package/models/trace/lantern/graph/foundation_unittests-tsconfig.ref.json +28 -0
- package/models/trace/lantern/graph/foundation_unittests_node_typecheck-tsconfig.json +58 -0
- package/models/trace/lantern/graph/graph-tsconfig.json +24 -13
- package/models/trace/lantern/graph/graph-tsconfig.ref.json +33 -0
- package/models/trace/lantern/graph/graph_node_typecheck-tsconfig.json +62 -0
- package/models/trace/lantern/graph/graph_node_typecheck.stamp +0 -0
- package/models/trace/lantern/metrics/TotalBlockingTime.js +1 -1
- package/models/trace/lantern/metrics/TotalBlockingTime.js.map +1 -1
- package/models/trace/lantern/metrics/bundle-tsconfig.json +59 -1
- package/models/trace/lantern/metrics/bundle-tsconfig.ref.json +27 -0
- package/models/trace/lantern/metrics/foundation_unittests-tsconfig.json +76 -0
- package/models/trace/lantern/metrics/foundation_unittests-tsconfig.ref.json +43 -0
- package/models/trace/lantern/metrics/foundation_unittests_node_typecheck-tsconfig.json +73 -0
- package/models/trace/lantern/metrics/metrics-tsconfig.json +26 -15
- package/models/trace/lantern/metrics/metrics-tsconfig.ref.json +43 -0
- package/models/trace/lantern/metrics/metrics_node_typecheck-tsconfig.json +72 -0
- package/models/trace/lantern/metrics/metrics_node_typecheck.stamp +0 -0
- package/models/trace/lantern/simulation/ConnectionPool.js +4 -4
- package/models/trace/lantern/simulation/ConnectionPool.js.map +1 -1
- package/models/trace/lantern/simulation/Constants.d.ts +29 -28
- package/models/trace/lantern/simulation/Constants.js +3 -1
- package/models/trace/lantern/simulation/Constants.js.map +1 -1
- package/models/trace/lantern/simulation/DNSCache.js.map +1 -1
- package/models/trace/lantern/simulation/Simulator.js +6 -2
- package/models/trace/lantern/simulation/Simulator.js.map +1 -1
- package/models/trace/lantern/simulation/TCPConnection.d.ts +4 -4
- package/models/trace/lantern/simulation/TCPConnection.js +12 -12
- package/models/trace/lantern/simulation/TCPConnection.js.map +1 -1
- package/models/trace/lantern/simulation/bundle-tsconfig.json +59 -1
- package/models/trace/lantern/simulation/bundle-tsconfig.ref.json +27 -0
- package/models/trace/lantern/simulation/foundation_unittests-tsconfig.json +75 -0
- package/models/trace/lantern/simulation/foundation_unittests-tsconfig.ref.json +42 -0
- package/models/trace/lantern/simulation/foundation_unittests_node_typecheck-tsconfig.json +72 -0
- package/models/trace/lantern/simulation/simulation-tsconfig.json +25 -14
- package/models/trace/lantern/simulation/simulation-tsconfig.ref.json +38 -0
- package/models/trace/lantern/simulation/simulation_node_typecheck-tsconfig.json +67 -0
- package/models/trace/lantern/simulation/simulation_node_typecheck.stamp +0 -0
- package/models/trace/lantern/{metrics/devtools_entrypoint-bundle-typescript-tsconfig.json → testing/bundle-tsconfig.json} +25 -13
- package/models/trace/lantern/testing/bundle-tsconfig.ref.json +27 -0
- package/models/trace/lantern/{simulation/devtools_entrypoint-bundle-typescript-tsconfig.json → testing/testing-tsconfig.json} +28 -13
- package/models/trace/lantern/testing/testing-tsconfig.ref.json +30 -0
- package/models/trace/lantern/types/Lantern.d.ts +27 -19
- package/models/trace/lantern/types/Lantern.js.map +1 -1
- package/models/trace/lantern/types/bundle-tsconfig.json +59 -1
- package/models/trace/lantern/types/bundle-tsconfig.ref.json +27 -0
- package/models/trace/lantern/types/types-tsconfig.json +23 -12
- package/models/trace/lantern/types/types-tsconfig.ref.json +27 -0
- package/models/trace/lantern/types/{devtools_entrypoint-bundle-typescript-tsconfig.json → types_node_typecheck-tsconfig.json} +25 -17
- package/models/trace/lantern/types/types_node_typecheck.stamp +0 -0
- package/models/trace/trace-tsconfig.json +31 -32
- package/models/trace/trace-tsconfig.ref.json +57 -0
- package/models/trace/trace_node_typecheck-tsconfig.json +86 -0
- package/models/trace/trace_node_typecheck.stamp +0 -0
- package/models/trace/types/Configuration.d.ts +11 -0
- package/models/trace/types/Configuration.js +1 -0
- package/models/trace/types/Configuration.js.map +1 -1
- package/models/trace/types/Extensions.d.ts +1 -1
- package/models/trace/types/File.d.ts +7 -1
- package/models/trace/types/File.js.map +1 -1
- package/models/trace/types/Overlays.d.ts +13 -3
- package/models/trace/types/Overlays.js.map +1 -1
- package/models/trace/types/TraceEvents.d.ts +39 -9
- package/models/trace/types/TraceEvents.js +103 -3
- package/models/trace/types/TraceEvents.js.map +1 -1
- package/models/trace/types/bundle-tsconfig.json +59 -1
- package/models/trace/types/bundle-tsconfig.ref.json +27 -0
- package/{core/platform/api/api_node_typecheck-tsconfig.json → models/trace/types/foundation_unittests-tsconfig.json} +32 -13
- package/models/trace/types/foundation_unittests-tsconfig.ref.json +34 -0
- package/models/trace/types/foundation_unittests_node_typecheck-tsconfig.json +64 -0
- package/models/trace/types/types-tsconfig.json +27 -19
- package/models/trace/types/types-tsconfig.ref.json +44 -0
- package/models/trace/types/types_node_typecheck-tsconfig.json +73 -0
- package/models/trace/types/types_node_typecheck.stamp +0 -0
- package/package.json +2 -3
- package/test/test-trace-engine.mjs +1 -1
- package/{models/cpu_profile/devtools_entrypoint-bundle-typescript-tsconfig.json → third_party/legacy-javascript/bundle-tsconfig.json} +24 -13
- package/third_party/legacy-javascript/bundle-tsconfig.ref.json +27 -0
- package/third_party/legacy-javascript/legacy-javascript-tsconfig.ref.json +15 -0
- package/third_party/legacy-javascript/legacy-javascript.d.ts +2 -1
- package/third_party/legacy-javascript/legacy-javascript.js +3 -1
- package/third_party/legacy-javascript/legacy-javascript.js.map +1 -0
- package/third_party/legacy-javascript/lib/legacy-javascript.d.ts +18 -0
- package/third_party/legacy-javascript/lib/legacy-javascript.js +1119 -0
- package/core/platform/api/bundle-tsconfig.json +0 -1
- package/core/platform/api/devtools_entrypoint-bundle-typescript-tsconfig.json +0 -48
- package/core/platform/browser/devtools_entrypoint-bundle-typescript-tsconfig.json +0 -48
- package/core/platform/devtools_entrypoint-bundle-typescript-tsconfig.json +0 -48
- package/core/platform/node/devtools_entrypoint-bundle-typescript-tsconfig.json +0 -48
- package/models/trace/extras/devtools_entrypoint-bundle-typescript-tsconfig.json +0 -48
- package/models/trace/handlers/AuctionWorkletsHandler.d.ts +0 -8
- package/models/trace/handlers/AuctionWorkletsHandler.js +0 -163
- package/models/trace/handlers/AuctionWorkletsHandler.js.map +0 -1
- package/models/trace/handlers/devtools_entrypoint-bundle-typescript-tsconfig.json +0 -48
- package/models/trace/helpers/devtools_entrypoint-bundle-typescript-tsconfig.json +0 -48
- package/models/trace/insights/devtools_entrypoint-bundle-typescript-tsconfig.json +0 -48
- package/models/trace/lantern/devtools_entrypoint-bundle-typescript-tsconfig.json +0 -48
- package/models/trace/lantern/lantern-tsconfig.json +0 -59
- package/models/trace/types/devtools_entrypoint-bundle-typescript-tsconfig.json +0 -48
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"allowJs": false,
|
|
4
|
+
"allowSyntheticDefaultImports": true,
|
|
5
|
+
"checkJs": false,
|
|
6
|
+
"composite": false,
|
|
7
|
+
"declaration": false,
|
|
8
|
+
"disableSourceOfProjectReferenceRedirect": true,
|
|
9
|
+
"experimentalDecorators": true,
|
|
10
|
+
"forceConsistentCasingInFileNames": true,
|
|
11
|
+
"incremental": false,
|
|
12
|
+
"inlineSources": true,
|
|
13
|
+
"lib": [
|
|
14
|
+
"ES2023",
|
|
15
|
+
"ES2024.Promise",
|
|
16
|
+
"ESNext.Iterator",
|
|
17
|
+
"ESNext.Collection",
|
|
18
|
+
"ESNext.Array"
|
|
19
|
+
],
|
|
20
|
+
"module": "esnext",
|
|
21
|
+
"moduleResolution": "bundler",
|
|
22
|
+
"noEmit": true,
|
|
23
|
+
"noEmitOnError": true,
|
|
24
|
+
"noFallthroughCasesInSwitch": true,
|
|
25
|
+
"noImplicitOverride": true,
|
|
26
|
+
"noImplicitReturns": true,
|
|
27
|
+
"outDir": ".",
|
|
28
|
+
"preserveConstEnums": true,
|
|
29
|
+
"rootDir": "../../../../../../../front_end/models/trace/extras",
|
|
30
|
+
"rootDirs": [
|
|
31
|
+
"../../../../../../../",
|
|
32
|
+
"../../../../"
|
|
33
|
+
],
|
|
34
|
+
"skipLibCheck": true,
|
|
35
|
+
"sourceMap": true,
|
|
36
|
+
"strict": true,
|
|
37
|
+
"target": "es2023",
|
|
38
|
+
"typeRoots": [
|
|
39
|
+
"../../../../../../../node_modules/@types",
|
|
40
|
+
"../../../../../../../node_modules"
|
|
41
|
+
],
|
|
42
|
+
"types": [
|
|
43
|
+
"node",
|
|
44
|
+
"undici-types"
|
|
45
|
+
],
|
|
46
|
+
"useUnknownInCatchVariables": false
|
|
47
|
+
},
|
|
48
|
+
"files": [
|
|
49
|
+
"../../../../../../../front_end/models/trace/extras/FilmStrip.ts",
|
|
50
|
+
"../../../../../../../front_end/models/trace/extras/Initiators.ts",
|
|
51
|
+
"../../../../../../../front_end/models/trace/extras/MainThreadActivity.ts",
|
|
52
|
+
"../../../../../../../front_end/models/trace/extras/ScriptDuplication.ts",
|
|
53
|
+
"../../../../../../../front_end/models/trace/extras/StackTraceForEvent.ts",
|
|
54
|
+
"../../../../../../../front_end/models/trace/extras/ThirdParties.ts",
|
|
55
|
+
"../../../../../../../front_end/models/trace/extras/TraceFilter.ts",
|
|
56
|
+
"../../../../../../../front_end/models/trace/extras/TraceTree.ts"
|
|
57
|
+
],
|
|
58
|
+
"references": [
|
|
59
|
+
{
|
|
60
|
+
"path": "../../../core/platform/bundle-tsconfig.ref.json"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"path": "../../../generated/generated-tsconfig.ref.json"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"path": "../../../third_party/third-party-web/bundle-tsconfig.ref.json"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"path": "../handlers/bundle-tsconfig.ref.json"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"path": "../helpers/bundle-tsconfig.ref.json"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"path": "../types/bundle-tsconfig.ref.json"
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"allowJs": false,
|
|
4
|
+
"allowSyntheticDefaultImports": true,
|
|
5
|
+
"checkJs": false,
|
|
6
|
+
"composite": false,
|
|
7
|
+
"declaration": false,
|
|
8
|
+
"disableSourceOfProjectReferenceRedirect": true,
|
|
9
|
+
"experimentalDecorators": true,
|
|
10
|
+
"forceConsistentCasingInFileNames": true,
|
|
11
|
+
"incremental": false,
|
|
12
|
+
"inlineSources": true,
|
|
13
|
+
"lib": [
|
|
14
|
+
"dom",
|
|
15
|
+
"dom.iterable",
|
|
16
|
+
"ES2023",
|
|
17
|
+
"ES2024.Promise",
|
|
18
|
+
"ESNext.Iterator",
|
|
19
|
+
"ESNext.Collection",
|
|
20
|
+
"ESNext.Array"
|
|
21
|
+
],
|
|
22
|
+
"module": "esnext",
|
|
23
|
+
"moduleResolution": "bundler",
|
|
24
|
+
"noEmitOnError": true,
|
|
25
|
+
"noFallthroughCasesInSwitch": true,
|
|
26
|
+
"noImplicitOverride": true,
|
|
27
|
+
"noImplicitReturns": true,
|
|
28
|
+
"outDir": ".",
|
|
29
|
+
"preserveConstEnums": true,
|
|
30
|
+
"rootDir": "../../../../../../../front_end/models/trace/extras",
|
|
31
|
+
"rootDirs": [
|
|
32
|
+
"../../../../../../../",
|
|
33
|
+
"../../../../"
|
|
34
|
+
],
|
|
35
|
+
"skipLibCheck": true,
|
|
36
|
+
"sourceMap": true,
|
|
37
|
+
"strict": true,
|
|
38
|
+
"target": "es2023",
|
|
39
|
+
"typeRoots": [
|
|
40
|
+
"../../../../../../../node_modules/@types",
|
|
41
|
+
"../../../../../../../node_modules"
|
|
42
|
+
],
|
|
43
|
+
"types": [
|
|
44
|
+
"mocha"
|
|
45
|
+
],
|
|
46
|
+
"useUnknownInCatchVariables": false
|
|
47
|
+
},
|
|
48
|
+
"files": [
|
|
49
|
+
"../../../../../../../front_end/models/trace/extras/FilmStrip.test.ts",
|
|
50
|
+
"../../../../../../../front_end/models/trace/extras/Initiators.test.ts",
|
|
51
|
+
"../../../../../../../front_end/models/trace/extras/MainThreadActivity.test.ts",
|
|
52
|
+
"../../../../../../../front_end/models/trace/extras/ScriptDuplication.test.ts",
|
|
53
|
+
"../../../../../../../front_end/models/trace/extras/StackTraceForEvent.test.ts",
|
|
54
|
+
"../../../../../../../front_end/models/trace/extras/ThirdParties.test.ts",
|
|
55
|
+
"../../../../../../../front_end/models/trace/extras/TraceFilter.test.ts",
|
|
56
|
+
"../../../../../../../front_end/models/trace/extras/TraceTree.test.ts",
|
|
57
|
+
"../../../../../../../front_end/legacy/legacy-defs.d.ts",
|
|
58
|
+
"../../../../../../../front_end/global_typings/global_defs.d.ts",
|
|
59
|
+
"../../../../../../../node_modules/@types/filesystem/index.d.ts",
|
|
60
|
+
"../../../../../../../node_modules/@types/filewriter/index.d.ts"
|
|
61
|
+
],
|
|
62
|
+
"references": [
|
|
63
|
+
{
|
|
64
|
+
"path": "bundle-tsconfig.ref.json"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"path": "../../../core/common/bundle-tsconfig.ref.json"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"path": "../../../core/platform/bundle-tsconfig.ref.json"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"path": "../../../core/sdk/bundle-tsconfig.ref.json"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"path": "../../../generated/generated-tsconfig.ref.json"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"path": "../bundle-tsconfig.ref.json"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"path": "../../../testing/testing-tsconfig.ref.json"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"path": "../handlers/bundle-tsconfig.ref.json"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"path": "../types/bundle-tsconfig.ref.json"
|
|
89
|
+
}
|
|
90
|
+
]
|
|
91
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"composite": true,
|
|
4
|
+
"declaration": true,
|
|
5
|
+
"declarationDir": ".",
|
|
6
|
+
"emitDeclarationOnly": true,
|
|
7
|
+
"outDir": ".",
|
|
8
|
+
"rootDir": "../../../../../../../front_end/models/trace/extras",
|
|
9
|
+
"rootDirs": [
|
|
10
|
+
"../../../../../../../",
|
|
11
|
+
"../../../../"
|
|
12
|
+
],
|
|
13
|
+
"skipLibCheck": true
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"../../../../../../../front_end/models/trace/extras/FilmStrip.test.ts",
|
|
17
|
+
"../../../../../../../front_end/models/trace/extras/Initiators.test.ts",
|
|
18
|
+
"../../../../../../../front_end/models/trace/extras/MainThreadActivity.test.ts",
|
|
19
|
+
"../../../../../../../front_end/models/trace/extras/ScriptDuplication.test.ts",
|
|
20
|
+
"../../../../../../../front_end/models/trace/extras/StackTraceForEvent.test.ts",
|
|
21
|
+
"../../../../../../../front_end/models/trace/extras/ThirdParties.test.ts",
|
|
22
|
+
"../../../../../../../front_end/models/trace/extras/TraceFilter.test.ts",
|
|
23
|
+
"../../../../../../../front_end/models/trace/extras/TraceTree.test.ts",
|
|
24
|
+
"../../../../../../../front_end/legacy/legacy-defs.d.ts",
|
|
25
|
+
"../../../../../../../front_end/global_typings/global_defs.d.ts",
|
|
26
|
+
"../../../../../../../node_modules/@types/filesystem/index.d.ts",
|
|
27
|
+
"../../../../../../../node_modules/@types/filewriter/index.d.ts"
|
|
28
|
+
],
|
|
29
|
+
"references": [
|
|
30
|
+
{
|
|
31
|
+
"path": "bundle-tsconfig.ref.json"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"path": "../../../core/common/bundle-tsconfig.ref.json"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"path": "../../../core/platform/bundle-tsconfig.ref.json"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"path": "../../../core/sdk/bundle-tsconfig.ref.json"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"path": "../../../generated/generated-tsconfig.ref.json"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"path": "../bundle-tsconfig.ref.json"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"path": "../../../testing/testing-tsconfig.ref.json"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"path": "../handlers/bundle-tsconfig.ref.json"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"path": "../types/bundle-tsconfig.ref.json"
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"allowJs": false,
|
|
4
|
+
"allowSyntheticDefaultImports": true,
|
|
5
|
+
"checkJs": false,
|
|
6
|
+
"composite": false,
|
|
7
|
+
"declaration": false,
|
|
8
|
+
"disableSourceOfProjectReferenceRedirect": true,
|
|
9
|
+
"experimentalDecorators": true,
|
|
10
|
+
"forceConsistentCasingInFileNames": true,
|
|
11
|
+
"incremental": false,
|
|
12
|
+
"inlineSources": true,
|
|
13
|
+
"lib": [
|
|
14
|
+
"ES2023",
|
|
15
|
+
"ES2024.Promise",
|
|
16
|
+
"ESNext.Iterator",
|
|
17
|
+
"ESNext.Collection",
|
|
18
|
+
"ESNext.Array"
|
|
19
|
+
],
|
|
20
|
+
"module": "esnext",
|
|
21
|
+
"moduleResolution": "bundler",
|
|
22
|
+
"noEmit": true,
|
|
23
|
+
"noEmitOnError": true,
|
|
24
|
+
"noFallthroughCasesInSwitch": true,
|
|
25
|
+
"noImplicitOverride": true,
|
|
26
|
+
"noImplicitReturns": true,
|
|
27
|
+
"outDir": ".",
|
|
28
|
+
"preserveConstEnums": true,
|
|
29
|
+
"rootDir": "../../../../../../../front_end/models/trace/extras",
|
|
30
|
+
"rootDirs": [
|
|
31
|
+
"../../../../../../../",
|
|
32
|
+
"../../../../"
|
|
33
|
+
],
|
|
34
|
+
"skipLibCheck": true,
|
|
35
|
+
"sourceMap": true,
|
|
36
|
+
"strict": true,
|
|
37
|
+
"target": "es2023",
|
|
38
|
+
"typeRoots": [
|
|
39
|
+
"../../../../../../../node_modules/@types",
|
|
40
|
+
"../../../../../../../node_modules"
|
|
41
|
+
],
|
|
42
|
+
"types": [
|
|
43
|
+
"mocha",
|
|
44
|
+
"node",
|
|
45
|
+
"undici-types"
|
|
46
|
+
],
|
|
47
|
+
"useUnknownInCatchVariables": false
|
|
48
|
+
},
|
|
49
|
+
"files": [
|
|
50
|
+
"../../../../../../../front_end/models/trace/extras/FilmStrip.test.ts",
|
|
51
|
+
"../../../../../../../front_end/models/trace/extras/Initiators.test.ts",
|
|
52
|
+
"../../../../../../../front_end/models/trace/extras/MainThreadActivity.test.ts",
|
|
53
|
+
"../../../../../../../front_end/models/trace/extras/ScriptDuplication.test.ts",
|
|
54
|
+
"../../../../../../../front_end/models/trace/extras/StackTraceForEvent.test.ts",
|
|
55
|
+
"../../../../../../../front_end/models/trace/extras/ThirdParties.test.ts",
|
|
56
|
+
"../../../../../../../front_end/models/trace/extras/TraceFilter.test.ts",
|
|
57
|
+
"../../../../../../../front_end/models/trace/extras/TraceTree.test.ts"
|
|
58
|
+
],
|
|
59
|
+
"references": [
|
|
60
|
+
{
|
|
61
|
+
"path": "bundle-tsconfig.ref.json"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"path": "../../../core/common/bundle-tsconfig.ref.json"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"path": "../../../core/platform/bundle-tsconfig.ref.json"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"path": "../../../core/sdk/bundle-tsconfig.ref.json"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"path": "../../../generated/generated-tsconfig.ref.json"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"path": "../bundle-tsconfig.ref.json"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"path": "../../../testing/testing-tsconfig.ref.json"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"path": "../handlers/bundle-tsconfig.ref.json"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"path": "../types/bundle-tsconfig.ref.json"
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"allowJs": false,
|
|
4
|
+
"allowSyntheticDefaultImports": true,
|
|
5
|
+
"checkJs": false,
|
|
6
|
+
"composite": false,
|
|
7
|
+
"declaration": false,
|
|
8
|
+
"disableSourceOfProjectReferenceRedirect": true,
|
|
9
|
+
"experimentalDecorators": true,
|
|
10
|
+
"forceConsistentCasingInFileNames": true,
|
|
11
|
+
"incremental": false,
|
|
12
|
+
"inlineSources": true,
|
|
13
|
+
"lib": [
|
|
14
|
+
"dom",
|
|
15
|
+
"dom.iterable",
|
|
16
|
+
"ES2023",
|
|
17
|
+
"ES2024.Promise",
|
|
18
|
+
"ESNext.Iterator",
|
|
19
|
+
"ESNext.Collection",
|
|
20
|
+
"ESNext.Array"
|
|
21
|
+
],
|
|
22
|
+
"module": "esnext",
|
|
23
|
+
"moduleResolution": "bundler",
|
|
24
|
+
"noEmitOnError": true,
|
|
25
|
+
"noFallthroughCasesInSwitch": true,
|
|
26
|
+
"noImplicitOverride": true,
|
|
27
|
+
"noImplicitReturns": true,
|
|
28
|
+
"outDir": ".",
|
|
29
|
+
"preserveConstEnums": true,
|
|
30
|
+
"rootDir": "../../../../../../front_end/models/trace",
|
|
31
|
+
"rootDirs": [
|
|
32
|
+
"../../../../../../",
|
|
33
|
+
"../../../"
|
|
34
|
+
],
|
|
35
|
+
"skipLibCheck": true,
|
|
36
|
+
"sourceMap": true,
|
|
37
|
+
"strict": true,
|
|
38
|
+
"target": "es2023",
|
|
39
|
+
"typeRoots": [
|
|
40
|
+
"../../../../../../node_modules/@types",
|
|
41
|
+
"../../../../../../node_modules"
|
|
42
|
+
],
|
|
43
|
+
"types": [
|
|
44
|
+
"mocha"
|
|
45
|
+
],
|
|
46
|
+
"useUnknownInCatchVariables": false
|
|
47
|
+
},
|
|
48
|
+
"files": [
|
|
49
|
+
"../../../../../../front_end/models/trace/EntityMapper.test.ts",
|
|
50
|
+
"../../../../../../front_end/models/trace/EventsSerializer.test.ts",
|
|
51
|
+
"../../../../../../front_end/models/trace/ModelImpl.test.ts",
|
|
52
|
+
"../../../../../../front_end/models/trace/Name.test.ts",
|
|
53
|
+
"../../../../../../front_end/models/trace/Processor.test.ts",
|
|
54
|
+
"../../../../../../front_end/legacy/legacy-defs.d.ts",
|
|
55
|
+
"../../../../../../front_end/global_typings/global_defs.d.ts",
|
|
56
|
+
"../../../../../../node_modules/@types/filesystem/index.d.ts",
|
|
57
|
+
"../../../../../../node_modules/@types/filewriter/index.d.ts"
|
|
58
|
+
],
|
|
59
|
+
"references": [
|
|
60
|
+
{
|
|
61
|
+
"path": "bundle-tsconfig.ref.json"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"path": "../../testing/testing-tsconfig.ref.json"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"path": "../cpu_profile/bundle-tsconfig.ref.json"
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"composite": true,
|
|
4
|
+
"declaration": true,
|
|
5
|
+
"declarationDir": ".",
|
|
6
|
+
"emitDeclarationOnly": true,
|
|
7
|
+
"outDir": ".",
|
|
8
|
+
"rootDir": "../../../../../../front_end/models/trace",
|
|
9
|
+
"rootDirs": [
|
|
10
|
+
"../../../../../../",
|
|
11
|
+
"../../../"
|
|
12
|
+
],
|
|
13
|
+
"skipLibCheck": true
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"../../../../../../front_end/models/trace/EntityMapper.test.ts",
|
|
17
|
+
"../../../../../../front_end/models/trace/EventsSerializer.test.ts",
|
|
18
|
+
"../../../../../../front_end/models/trace/ModelImpl.test.ts",
|
|
19
|
+
"../../../../../../front_end/models/trace/Name.test.ts",
|
|
20
|
+
"../../../../../../front_end/models/trace/Processor.test.ts",
|
|
21
|
+
"../../../../../../front_end/legacy/legacy-defs.d.ts",
|
|
22
|
+
"../../../../../../front_end/global_typings/global_defs.d.ts",
|
|
23
|
+
"../../../../../../node_modules/@types/filesystem/index.d.ts",
|
|
24
|
+
"../../../../../../node_modules/@types/filewriter/index.d.ts"
|
|
25
|
+
],
|
|
26
|
+
"references": [
|
|
27
|
+
{
|
|
28
|
+
"path": "bundle-tsconfig.ref.json"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"path": "../../testing/testing-tsconfig.ref.json"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"path": "../cpu_profile/bundle-tsconfig.ref.json"
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"allowJs": false,
|
|
4
|
+
"allowSyntheticDefaultImports": true,
|
|
5
|
+
"checkJs": false,
|
|
6
|
+
"composite": false,
|
|
7
|
+
"declaration": false,
|
|
8
|
+
"disableSourceOfProjectReferenceRedirect": true,
|
|
9
|
+
"experimentalDecorators": true,
|
|
10
|
+
"forceConsistentCasingInFileNames": true,
|
|
11
|
+
"incremental": false,
|
|
12
|
+
"inlineSources": true,
|
|
13
|
+
"lib": [
|
|
14
|
+
"ES2023",
|
|
15
|
+
"ES2024.Promise",
|
|
16
|
+
"ESNext.Iterator",
|
|
17
|
+
"ESNext.Collection",
|
|
18
|
+
"ESNext.Array"
|
|
19
|
+
],
|
|
20
|
+
"module": "esnext",
|
|
21
|
+
"moduleResolution": "bundler",
|
|
22
|
+
"noEmit": true,
|
|
23
|
+
"noEmitOnError": true,
|
|
24
|
+
"noFallthroughCasesInSwitch": true,
|
|
25
|
+
"noImplicitOverride": true,
|
|
26
|
+
"noImplicitReturns": true,
|
|
27
|
+
"outDir": ".",
|
|
28
|
+
"preserveConstEnums": true,
|
|
29
|
+
"rootDir": "../../../../../../front_end/models/trace",
|
|
30
|
+
"rootDirs": [
|
|
31
|
+
"../../../../../../",
|
|
32
|
+
"../../../"
|
|
33
|
+
],
|
|
34
|
+
"skipLibCheck": true,
|
|
35
|
+
"sourceMap": true,
|
|
36
|
+
"strict": true,
|
|
37
|
+
"target": "es2023",
|
|
38
|
+
"typeRoots": [
|
|
39
|
+
"../../../../../../node_modules/@types",
|
|
40
|
+
"../../../../../../node_modules"
|
|
41
|
+
],
|
|
42
|
+
"types": [
|
|
43
|
+
"mocha",
|
|
44
|
+
"node",
|
|
45
|
+
"undici-types"
|
|
46
|
+
],
|
|
47
|
+
"useUnknownInCatchVariables": false
|
|
48
|
+
},
|
|
49
|
+
"files": [
|
|
50
|
+
"../../../../../../front_end/models/trace/EntityMapper.test.ts",
|
|
51
|
+
"../../../../../../front_end/models/trace/EventsSerializer.test.ts",
|
|
52
|
+
"../../../../../../front_end/models/trace/ModelImpl.test.ts",
|
|
53
|
+
"../../../../../../front_end/models/trace/Name.test.ts",
|
|
54
|
+
"../../../../../../front_end/models/trace/Processor.test.ts"
|
|
55
|
+
],
|
|
56
|
+
"references": [
|
|
57
|
+
{
|
|
58
|
+
"path": "bundle-tsconfig.ref.json"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"path": "../../testing/testing-tsconfig.ref.json"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"path": "../cpu_profile/bundle-tsconfig.ref.json"
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AsyncJSCallsHandler.js","sourceRoot":"","sources":["../../../../../../../front_end/models/trace/handlers/AsyncJSCallsHandler.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,yEAAyE;AACzE,6BAA6B;AAC7B,OAAO,KAAK,QAAQ,MAAM,oCAAoC,CAAC;AAE/D,OAAO,KAAK,KAAK,MAAM,mBAAmB,CAAC;AAE3C,OAAO,EAAC,IAAI,IAAI,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAC,IAAI,IAAI,mBAAmB,EAAC,MAAM,sBAAsB,CAAC;AAEjE,IAAI,yBAAyB,GAAG,IAAI,GAAG,EAA4C,CAAC;AAEpF,IAAI,2BAA2B,GAAG,IAAI,GAAG,EAA8E,CAAC;AACxH,IAAI,oBAAoB,GACpB,IAAI,GAAG,EAAwF,CAAC;AAEpG,IAAI,wBAAwB,GAAG,IAAI,GAAG,EA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IAAI;IAClB,OAAO,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;AAC/B,CAAC","sourcesContent":["// Copyright 2024 The Chromium Authors\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\nimport * as Platform from '../../../core/platform/platform.js';\nimport type * as Helpers from '../helpers/helpers.js';\nimport * as Types from '../types/types.js';\n\nimport {data as flowsHandlerData} from './FlowsHandler.js';\nimport {data as rendererHandlerData} from './RendererHandler.js';\n\nlet schedulerToRunEntryPoints = new Map<Types.Events.Event, Types.Events.Event[]>();\n\nlet taskScheduleForTaskRunEvent = new Map<Types.Events.DebuggerAsyncTaskRun, Types.Events.DebuggerAsyncTaskScheduled>();\nlet asyncCallToScheduler =\n new Map<Types.Events.SyntheticProfileCall, {taskName: string, scheduler: Types.Events.Event}>();\n\nlet runEntryPointToScheduler = new Map<Types.Events.Event, {taskName: string, scheduler: Types.Events.Event}>();\n\nexport function reset(): void {\n schedulerToRunEntryPoints = new Map();\n asyncCallToScheduler = new Map();\n taskScheduleForTaskRunEvent = new Map();\n runEntryPointToScheduler = new Map();\n}\n\nexport function handleEvent(_: Types.Events.Event): void {\n}\n\nexport async function finalize(): Promise<void> {\n const {flows} = flowsHandlerData();\n const {entryToNode} = rendererHandlerData();\n // Process async task flows\n for (const flow of flows) {\n let maybeAsyncTaskScheduled = flow.at(0);\n if (!maybeAsyncTaskScheduled) {\n continue;\n }\n if (Types.Events.isDebuggerAsyncTaskRun(maybeAsyncTaskScheduled)) {\n // Sometimes a AsyncTaskRun event run can incorrectly appear as\n // initiated by another AsyncTaskRun from Perfetto's flows\n // perspective.\n // For example, in this snippet:\n //\n // const myTask = console.createTask('hola'); // creates an AsyncTaskSchedule\n // myTask.run(something); // creates an AsyncTaskRun\n // myTask.run(somethingElse); // creates an AsyncTaskRun\n //\n // or also in this one\n //\n // setInterval(something); // creates multiple connected AsyncTaskRun.\n //\n // Because the flow id is created based on the task's memory address,\n // the three events will end up belonging to the same flow (even if\n // in the frontend we receive it as pairs), and elements in a flow\n // are connected to their immediately consecutive neighbor.\n //\n // To ensure we use the right Schedule event, if the \"initiating\"\n // portion of the flow is a Run event, we look for any corresponding\n // Schedule event that we might have found before.\n maybeAsyncTaskScheduled = taskScheduleForTaskRunEvent.get(maybeAsyncTaskScheduled);\n }\n if (!maybeAsyncTaskScheduled || !Types.Events.isDebuggerAsyncTaskScheduled(maybeAsyncTaskScheduled)) {\n continue;\n }\n const taskName = maybeAsyncTaskScheduled.args.taskName;\n const asyncTaskRun = flow.at(1);\n if (!asyncTaskRun || !Types.Events.isDebuggerAsyncTaskRun(asyncTaskRun)) {\n // Unexpected flow shape, ignore.\n continue;\n }\n // Cache the Schedule event for this Run for future reference.\n taskScheduleForTaskRunEvent.set(asyncTaskRun, maybeAsyncTaskScheduled);\n\n // Get the JS call scheduled the task.\n const asyncCaller = findNearestJSAncestor(maybeAsyncTaskScheduled, entryToNode);\n\n // Get the trace entrypoint for the scheduled task (e.g. FunctionCall, etc.).\n const asyncEntryPoint = findFirstJsInvocationForAsyncTaskRun(asyncTaskRun, entryToNode);\n\n // Store the async relationship between traces to be shown with initiator arrows.\n // Default to the AsyncTask events in case the JS entrypoints aren't found.\n runEntryPointToScheduler.set(\n asyncEntryPoint || asyncTaskRun, {taskName, scheduler: asyncCaller || maybeAsyncTaskScheduled});\n if (!asyncCaller || !asyncEntryPoint) {\n // Unexpected async call trace data shape, ignore.\n continue;\n }\n // Set scheduler -> scheduled mapping.\n // The scheduled being the JS entrypoint\n const entryPoints = Platform.MapUtilities.getWithDefault(schedulerToRunEntryPoints, asyncCaller, () => []);\n entryPoints.push(asyncEntryPoint);\n\n // Set scheduled -> scheduler mapping.\n // The scheduled being the JS calls (instead of the entrypoints as\n // above, for usage ergonomics).\n const scheduledProfileCalls = findFirstJSCallsForAsyncTaskRun(asyncTaskRun, entryToNode);\n for (const call of scheduledProfileCalls) {\n asyncCallToScheduler.set(call, {taskName, scheduler: asyncCaller});\n }\n }\n}\n/**\n * Given a DebuggerAsyncTaskScheduled event, returns its closest\n * ProfileCall or JS invocation ancestor, which represents the JS call\n * that scheduled the async task.\n */\nfunction findNearestJSAncestor(\n asyncTaskScheduled: Types.Events.DebuggerAsyncTaskScheduled,\n entryToNode: Map<Types.Events.Event, Helpers.TreeHelpers.TraceEntryNode>): Types.Events.Event|null {\n let node = entryToNode.get(asyncTaskScheduled)?.parent;\n while (node) {\n if (Types.Events.isProfileCall(node.entry) || acceptJSInvocationsPredicate(node.entry)) {\n return node.entry;\n }\n node = node.parent;\n }\n return null;\n}\n/**\n * Entrypoints to JS execution in the timeline. We ignore those starting\n * with 'v8' because they aren't shown in the timeline, and ultimately\n * this function's output results in \"initiated\" events, so ideally this\n * returns events that end up in the flame chart.\n */\nfunction acceptJSInvocationsPredicate(event: Types.Events.Event): event is Types.Events.Event {\n const eventIsConsoleRunTask = Types.Events.isConsoleRunTask(event);\n const eventIsV8EntryPoint = event.name.startsWith('v8') || event.name.startsWith('V8');\n return Types.Events.isJSInvocationEvent(event) && (eventIsConsoleRunTask || !eventIsV8EntryPoint);\n}\n\n/**\n * Given a DebuggerAsyncTaskRun event, returns its closest JS entry\n * point descendant, which contains the task being scheduled.\n */\nfunction findFirstJsInvocationForAsyncTaskRun(\n asyncTaskRun: Types.Events.DebuggerAsyncTaskRun,\n entryToNode: Map<Types.Events.Event, Helpers.TreeHelpers.TraceEntryNode>): Types.Events.Event|undefined {\n // Ignore descendants of other DebuggerAsyncTaskRuns since they\n // are part of another async task and have to be handled separately\n return findFirstDescendantsOfType(\n asyncTaskRun, entryToNode, acceptJSInvocationsPredicate, Types.Events.isDebuggerAsyncTaskRun)\n .at(0);\n}\n\n/**\n * Given an async task run event, returns the top level call frames\n * (profile calls) directly called by the async task. This implies that\n * any profile calls under another async task run event are ignored.\n * These profile calls represent the JS task being scheduled, AKA\n * the other part of the async stack.\n *\n * For example, here the profile calls \"js 1\", \"js 2\" and \"js 4\" would\n * be returned:\n *\n * |------------------Async Task Run------------------|\n * |--FunctionCall--| |--FunctionCall--|\n * |-js 1-||-js 2-| |-js 4-|\n * |-js 3-|\n *\n * But here, only \"js 1\" and \"js 2\" would be returned:\n *\n * |------------------Async Task Run------------------|\n * |--FunctionCall--| |------------------------|\n * |-js 1-||-js 2-| |---Async Task Run--|\n * |-js 3-| |--FunctionCall--|\n * |-js 4-|\n */\nfunction findFirstJSCallsForAsyncTaskRun(\n asyncTaskRun: Types.Events.DebuggerAsyncTaskRun,\n entryToNode: Map<Types.Events.Event, Helpers.TreeHelpers.TraceEntryNode>): Types.Events.SyntheticProfileCall[] {\n // Ignore descendants of other DebuggerAsyncTaskRuns since they\n // are part of another async task and have to be handled separately\n return findFirstDescendantsOfType(\n asyncTaskRun, entryToNode, Types.Events.isProfileCall, Types.Events.isDebuggerAsyncTaskRun);\n}\n\n/**\n * Given a root event returns all the first descendants that meet a\n * predicate condition (predicateAccept) while ignoring subtrees whose\n * top event meets an ignore condition (predicateIgnore).\n */\nfunction findFirstDescendantsOfType<T extends Types.Events.Event>(\n root: Types.Events.Event, entryToNode: Map<Types.Events.Event, Helpers.TreeHelpers.TraceEntryNode>,\n predicateAccept: (event: Types.Events.Event) => event is T,\n predicateIgnore: (event: Types.Events.Event) => boolean): T[] {\n const node = entryToNode.get(root);\n if (!node) {\n return [];\n }\n const childrenGroups = [[...node.children]];\n const firstDescendants = [];\n for (let i = 0; i < childrenGroups.length; i++) {\n const siblings = childrenGroups[i];\n for (let j = 0; j < siblings.length; j++) {\n const node = siblings[j];\n if (predicateAccept(node.entry)) {\n firstDescendants.push(node.entry);\n } else if (!predicateIgnore(node.entry)) {\n childrenGroups.push([...node.children]);\n }\n }\n }\n return firstDescendants;\n}\n\nexport function data(): {\n // Given a profile call, returns the JS entrypoint it scheduled (if any).\n // For example, given a setTimeout call, returns the JS entry point\n // trace event for the timeout callback run event (usually a\n // FunctionCall event).\n schedulerToRunEntryPoints: typeof schedulerToRunEntryPoints,\n // Given a profile call, returns the profile call that scheduled it.\n // For example given a timeout callback run event, returns its\n // setTimeout call event.\n asyncCallToScheduler: typeof asyncCallToScheduler,\n // Given a trace event, returns its corresponding async parent trace\n // event caused by an async js call. This can be used as a fallback\n // for cases where a corresponding JS call is not found at either\n // end of the async task scheduling pair (e.g. due to sampling data\n // incompleteness).\n // In the StackTraceForEvent helper, as we move up the call tree,\n // this is used to jump to an async parent stack from a\n // non-profile call trace event in cases where a profile call wasn't\n // found before. In theory we should make the jump from the scheduled\n // profile call using `asyncCallToScheduler`, but its possible that\n // the the call information isn't available to us as a consequence of\n // missing samples.\n runEntryPointToScheduler: typeof runEntryPointToScheduler,\n} {\n return {\n schedulerToRunEntryPoints,\n asyncCallToScheduler,\n runEntryPointToScheduler,\n };\n}\n\nexport function deps(): ['Renderer', 'Flows'] {\n return ['Renderer', 'Flows'];\n}\n"]}
|
|
1
|
+
{"version":3,"file":"AsyncJSCallsHandler.js","sourceRoot":"","sources":["../../../../../../../front_end/models/trace/handlers/AsyncJSCallsHandler.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,yEAAyE;AACzE,6BAA6B;AAC7B,OAAO,KAAK,QAAQ,MAAM,oCAAoC,CAAC;AAE/D,OAAO,KAAK,KAAK,MAAM,mBAAmB,CAAC;AAE3C,OAAO,EAAC,IAAI,IAAI,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAC,IAAI,IAAI,mBAAmB,EAAC,MAAM,sBAAsB,CAAC;AAEjE,IAAI,yBAAyB,GACzB,IAAI,GAAG,EAA4C,CAAC;AAExD,IAAI,2BAA2B,GAC3B,IAAI,GAAG,EAA8E,CAAC;AAC1F,IAAI,oBAAoB,GACpB,IAAI,GAAG,EAAwF,CAAC;AAEpG,IAAI,wBAAwB,GACxB,IAAI,GAAG,EAAyE,CAAC;AAErF,MAAM,UAAU,KAAK;IACnB,yBAAyB,GAAG,IAAI,GAAG,EAAE,CAAC;IACtC,oBAAoB,GAAG,IAAI,GAAG,EAAE,CAAC;IACjC,2BAA2B,GAAG,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WAAwE,EAClG,eAA0D,EAC1D,eAAuD;IACzD,MAAM,IAAI,GAAG,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACnC,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,OAAO,EAAE,CAAC;IACZ,CAAC;IACD,MAAM,cAAc,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC5C,MAAM,gBAAgB,GAAG,EAAE,CAAC;IAC5B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,cAAc,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QAC/C,MAAM,QAAQ,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC;QACnC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACzC,MAAM,IAAI,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;YACzB,IAAI,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;gBAChC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACpC,CAAC;iBAAM,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;gBACxC,cAAc,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;YAC1C,CAAC;QACH,CAAC;IACH,CAAC;IACD,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AAED,MAAM,UAAU,IAAI;IAwBlB,OAAO;QACL,yBAAyB;QACzB,oBAAoB;QACpB,wBAAwB;KACzB,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,IAAI;IAClB,OAAO,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;AAC/B,CAAC","sourcesContent":["// Copyright 2024 The Chromium Authors\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\nimport * as Platform from '../../../core/platform/platform.js';\nimport type * as Helpers from '../helpers/helpers.js';\nimport * as Types from '../types/types.js';\n\nimport {data as flowsHandlerData} from './FlowsHandler.js';\nimport {data as rendererHandlerData} from './RendererHandler.js';\n\nlet schedulerToRunEntryPoints: Map<Types.Events.Event, Types.Events.Event[]> =\n new Map<Types.Events.Event, Types.Events.Event[]>();\n\nlet taskScheduleForTaskRunEvent: Map<Types.Events.DebuggerAsyncTaskRun, Types.Events.DebuggerAsyncTaskScheduled> =\n new Map<Types.Events.DebuggerAsyncTaskRun, Types.Events.DebuggerAsyncTaskScheduled>();\nlet asyncCallToScheduler: Map<Types.Events.SyntheticProfileCall, {taskName: string, scheduler: Types.Events.Event}> =\n new Map<Types.Events.SyntheticProfileCall, {taskName: string, scheduler: Types.Events.Event}>();\n\nlet runEntryPointToScheduler: Map<Types.Events.Event, {taskName: string, scheduler: Types.Events.Event}> =\n new Map<Types.Events.Event, {taskName: string, scheduler: Types.Events.Event}>();\n\nexport function reset(): void {\n schedulerToRunEntryPoints = new Map();\n asyncCallToScheduler = new Map();\n taskScheduleForTaskRunEvent = new Map();\n runEntryPointToScheduler = new Map();\n}\n\nexport function handleEvent(_: Types.Events.Event): void {\n}\n\nexport async function finalize(): Promise<void> {\n const {flows} = flowsHandlerData();\n const {entryToNode} = rendererHandlerData();\n // Process async task flows\n for (const flow of flows) {\n let maybeAsyncTaskScheduled = flow.at(0);\n if (!maybeAsyncTaskScheduled) {\n continue;\n }\n if (Types.Events.isDebuggerAsyncTaskRun(maybeAsyncTaskScheduled)) {\n // Sometimes a AsyncTaskRun event run can incorrectly appear as\n // initiated by another AsyncTaskRun from Perfetto's flows\n // perspective.\n // For example, in this snippet:\n //\n // const myTask = console.createTask('hola'); // creates an AsyncTaskSchedule\n // myTask.run(something); // creates an AsyncTaskRun\n // myTask.run(somethingElse); // creates an AsyncTaskRun\n //\n // or also in this one\n //\n // setInterval(something); // creates multiple connected AsyncTaskRun.\n //\n // Because the flow id is created based on the task's memory address,\n // the three events will end up belonging to the same flow (even if\n // in the frontend we receive it as pairs), and elements in a flow\n // are connected to their immediately consecutive neighbor.\n //\n // To ensure we use the right Schedule event, if the \"initiating\"\n // portion of the flow is a Run event, we look for any corresponding\n // Schedule event that we might have found before.\n maybeAsyncTaskScheduled = taskScheduleForTaskRunEvent.get(maybeAsyncTaskScheduled);\n }\n if (!maybeAsyncTaskScheduled || !Types.Events.isDebuggerAsyncTaskScheduled(maybeAsyncTaskScheduled)) {\n continue;\n }\n const taskName = maybeAsyncTaskScheduled.args.taskName;\n const asyncTaskRun = flow.at(1);\n if (!asyncTaskRun || !Types.Events.isDebuggerAsyncTaskRun(asyncTaskRun)) {\n // Unexpected flow shape, ignore.\n continue;\n }\n // Cache the Schedule event for this Run for future reference.\n taskScheduleForTaskRunEvent.set(asyncTaskRun, maybeAsyncTaskScheduled);\n\n // Get the JS call scheduled the task.\n const asyncCaller = findNearestJSAncestor(maybeAsyncTaskScheduled, entryToNode);\n\n // Get the trace entrypoint for the scheduled task (e.g. FunctionCall, etc.).\n const asyncEntryPoint = findFirstJsInvocationForAsyncTaskRun(asyncTaskRun, entryToNode);\n\n // Store the async relationship between traces to be shown with initiator arrows.\n // Default to the AsyncTask events in case the JS entrypoints aren't found.\n runEntryPointToScheduler.set(\n asyncEntryPoint || asyncTaskRun, {taskName, scheduler: asyncCaller || maybeAsyncTaskScheduled});\n if (!asyncCaller || !asyncEntryPoint) {\n // Unexpected async call trace data shape, ignore.\n continue;\n }\n // Set scheduler -> scheduled mapping.\n // The scheduled being the JS entrypoint\n const entryPoints = Platform.MapUtilities.getWithDefault(schedulerToRunEntryPoints, asyncCaller, () => []);\n entryPoints.push(asyncEntryPoint);\n\n // Set scheduled -> scheduler mapping.\n // The scheduled being the JS calls (instead of the entrypoints as\n // above, for usage ergonomics).\n const scheduledProfileCalls = findFirstJSCallsForAsyncTaskRun(asyncTaskRun, entryToNode);\n for (const call of scheduledProfileCalls) {\n asyncCallToScheduler.set(call, {taskName, scheduler: asyncCaller});\n }\n }\n}\n/**\n * Given a DebuggerAsyncTaskScheduled event, returns its closest\n * ProfileCall or JS invocation ancestor, which represents the JS call\n * that scheduled the async task.\n */\nfunction findNearestJSAncestor(\n asyncTaskScheduled: Types.Events.DebuggerAsyncTaskScheduled,\n entryToNode: Map<Types.Events.Event, Helpers.TreeHelpers.TraceEntryNode>): Types.Events.Event|null {\n let node = entryToNode.get(asyncTaskScheduled)?.parent;\n while (node) {\n if (Types.Events.isProfileCall(node.entry) || acceptJSInvocationsPredicate(node.entry)) {\n return node.entry;\n }\n node = node.parent;\n }\n return null;\n}\n/**\n * Entrypoints to JS execution in the timeline. We ignore those starting\n * with 'v8' because they aren't shown in the timeline, and ultimately\n * this function's output results in \"initiated\" events, so ideally this\n * returns events that end up in the flame chart.\n */\nfunction acceptJSInvocationsPredicate(event: Types.Events.Event): event is Types.Events.Event {\n const eventIsConsoleRunTask = Types.Events.isConsoleRunTask(event);\n const eventIsV8EntryPoint = event.name.startsWith('v8') || event.name.startsWith('V8');\n return Types.Events.isJSInvocationEvent(event) && (eventIsConsoleRunTask || !eventIsV8EntryPoint);\n}\n\n/**\n * Given a DebuggerAsyncTaskRun event, returns its closest JS entry\n * point descendant, which contains the task being scheduled.\n */\nfunction findFirstJsInvocationForAsyncTaskRun(\n asyncTaskRun: Types.Events.DebuggerAsyncTaskRun,\n entryToNode: Map<Types.Events.Event, Helpers.TreeHelpers.TraceEntryNode>): Types.Events.Event|undefined {\n // Ignore descendants of other DebuggerAsyncTaskRuns since they\n // are part of another async task and have to be handled separately\n return findFirstDescendantsOfType(\n asyncTaskRun, entryToNode, acceptJSInvocationsPredicate, Types.Events.isDebuggerAsyncTaskRun)\n .at(0);\n}\n\n/**\n * Given an async task run event, returns the top level call frames\n * (profile calls) directly called by the async task. This implies that\n * any profile calls under another async task run event are ignored.\n * These profile calls represent the JS task being scheduled, AKA\n * the other part of the async stack.\n *\n * For example, here the profile calls \"js 1\", \"js 2\" and \"js 4\" would\n * be returned:\n *\n * |------------------Async Task Run------------------|\n * |--FunctionCall--| |--FunctionCall--|\n * |-js 1-||-js 2-| |-js 4-|\n * |-js 3-|\n *\n * But here, only \"js 1\" and \"js 2\" would be returned:\n *\n * |------------------Async Task Run------------------|\n * |--FunctionCall--| |------------------------|\n * |-js 1-||-js 2-| |---Async Task Run--|\n * |-js 3-| |--FunctionCall--|\n * |-js 4-|\n */\nfunction findFirstJSCallsForAsyncTaskRun(\n asyncTaskRun: Types.Events.DebuggerAsyncTaskRun,\n entryToNode: Map<Types.Events.Event, Helpers.TreeHelpers.TraceEntryNode>): Types.Events.SyntheticProfileCall[] {\n // Ignore descendants of other DebuggerAsyncTaskRuns since they\n // are part of another async task and have to be handled separately\n return findFirstDescendantsOfType(\n asyncTaskRun, entryToNode, Types.Events.isProfileCall, Types.Events.isDebuggerAsyncTaskRun);\n}\n\n/**\n * Given a root event returns all the first descendants that meet a\n * predicate condition (predicateAccept) while ignoring subtrees whose\n * top event meets an ignore condition (predicateIgnore).\n */\nfunction findFirstDescendantsOfType<T extends Types.Events.Event>(\n root: Types.Events.Event, entryToNode: Map<Types.Events.Event, Helpers.TreeHelpers.TraceEntryNode>,\n predicateAccept: (event: Types.Events.Event) => event is T,\n predicateIgnore: (event: Types.Events.Event) => boolean): T[] {\n const node = entryToNode.get(root);\n if (!node) {\n return [];\n }\n const childrenGroups = [[...node.children]];\n const firstDescendants = [];\n for (let i = 0; i < childrenGroups.length; i++) {\n const siblings = childrenGroups[i];\n for (let j = 0; j < siblings.length; j++) {\n const node = siblings[j];\n if (predicateAccept(node.entry)) {\n firstDescendants.push(node.entry);\n } else if (!predicateIgnore(node.entry)) {\n childrenGroups.push([...node.children]);\n }\n }\n }\n return firstDescendants;\n}\n\nexport function data(): {\n // Given a profile call, returns the JS entrypoint it scheduled (if any).\n // For example, given a setTimeout call, returns the JS entry point\n // trace event for the timeout callback run event (usually a\n // FunctionCall event).\n schedulerToRunEntryPoints: typeof schedulerToRunEntryPoints,\n // Given a profile call, returns the profile call that scheduled it.\n // For example given a timeout callback run event, returns its\n // setTimeout call event.\n asyncCallToScheduler: typeof asyncCallToScheduler,\n // Given a trace event, returns its corresponding async parent trace\n // event caused by an async js call. This can be used as a fallback\n // for cases where a corresponding JS call is not found at either\n // end of the async task scheduling pair (e.g. due to sampling data\n // incompleteness).\n // In the StackTraceForEvent helper, as we move up the call tree,\n // this is used to jump to an async parent stack from a\n // non-profile call trace event in cases where a profile call wasn't\n // found before. In theory we should make the jump from the scheduled\n // profile call using `asyncCallToScheduler`, but its possible that\n // the the call information isn't available to us as a consequence of\n // missing samples.\n runEntryPointToScheduler: typeof runEntryPointToScheduler,\n} {\n return {\n schedulerToRunEntryPoints,\n asyncCallToScheduler,\n runEntryPointToScheduler,\n };\n}\n\nexport function deps(): ['Renderer', 'Flows'] {\n return ['Renderer', 'Flows'];\n}\n"]}
|
|
@@ -114,7 +114,7 @@ export function extractConsoleAPIExtensionEntries() {
|
|
|
114
114
|
ph: Types.Events.Phase.COMPLETE,
|
|
115
115
|
ts: entryStartTime,
|
|
116
116
|
dur: Types.Timing.Micro(entryEndTime - entryStartTime),
|
|
117
|
-
rawSourceEvent: currentTimeStamp
|
|
117
|
+
rawSourceEvent: currentTimeStamp,
|
|
118
118
|
};
|
|
119
119
|
const syntheticTimeStamp = Helpers.SyntheticEvents.SyntheticEventsManager.registerSyntheticEvent(unregisteredSyntheticTimeStamp);
|
|
120
120
|
syntheticConsoleEntriesForTimingsTrack.push(syntheticTimeStamp);
|