@paulirish/trace_engine 0.0.65 → 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 +49 -0
- package/core/platform/StringUtilities.js +141 -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 +25 -0
- 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 +90 -0
- 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 +47 -2
- 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 +782 -685
- package/generated/protocol.js +3300 -1
- package/locales/af.json +154 -133
- package/locales/am.json +156 -135
- package/locales/ar.json +157 -136
- package/locales/as.json +156 -135
- package/locales/az.json +156 -135
- package/locales/be.json +153 -132
- package/locales/bg.json +154 -133
- package/locales/bn.json +156 -135
- package/locales/bs.json +152 -131
- package/locales/ca.json +157 -136
- package/locales/cs.json +148 -127
- package/locales/cy.json +155 -134
- package/locales/da.json +153 -132
- package/locales/de.json +152 -131
- package/locales/el.json +153 -132
- package/locales/en-GB.json +160 -139
- package/locales/en-US.json +153 -141
- package/locales/en-XL.json +153 -141
- package/locales/es-419.json +150 -129
- package/locales/es.json +149 -128
- package/locales/et.json +124 -103
- package/locales/eu.json +151 -130
- package/locales/fa.json +155 -134
- package/locales/fi.json +151 -130
- package/locales/fil.json +154 -133
- package/locales/fr-CA.json +154 -133
- package/locales/fr.json +150 -129
- package/locales/gl.json +153 -132
- package/locales/gu.json +156 -135
- package/locales/he.json +160 -139
- package/locales/hi.json +156 -135
- package/locales/hr.json +154 -133
- package/locales/hu.json +111 -90
- package/locales/hy.json +147 -126
- package/locales/id.json +153 -132
- package/locales/is.json +149 -128
- package/locales/it.json +153 -132
- package/locales/ja.json +150 -129
- package/locales/ka.json +159 -138
- package/locales/kk.json +62 -41
- package/locales/km.json +157 -136
- package/locales/kn.json +159 -138
- package/locales/ko.json +42 -21
- package/locales/ky.json +155 -134
- package/locales/lo.json +154 -133
- package/locales/lt.json +152 -131
- package/locales/lv.json +93 -72
- package/locales/mk.json +154 -133
- package/locales/ml.json +153 -132
- package/locales/mn.json +150 -129
- package/locales/mr.json +152 -131
- package/locales/ms.json +153 -132
- package/locales/my.json +156 -135
- package/locales/ne.json +152 -131
- package/locales/nl.json +149 -128
- package/locales/no.json +152 -131
- package/locales/or.json +152 -131
- package/locales/pa.json +154 -133
- package/locales/pl.json +153 -132
- package/locales/pt-PT.json +152 -131
- package/locales/pt.json +157 -136
- package/locales/ro.json +149 -128
- package/locales/ru.json +73 -52
- package/locales/si.json +156 -135
- package/locales/sk.json +153 -132
- package/locales/sl.json +149 -128
- package/locales/sq.json +150 -129
- package/locales/sr-Latn.json +151 -130
- package/locales/sr.json +151 -130
- package/locales/sv.json +152 -131
- package/locales/sw.json +160 -139
- package/locales/ta.json +156 -135
- package/locales/te.json +157 -136
- package/locales/th.json +111 -90
- package/locales/tr.json +153 -132
- package/locales/uk.json +149 -128
- package/locales/ur.json +151 -130
- package/locales/uz.json +151 -130
- package/locales/vi.json +162 -141
- package/locales/zh-HK.json +150 -129
- package/locales/zh-TW.json +154 -133
- package/locales/zh.json +152 -131
- package/locales/zu.json +159 -138
- 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 -13
- 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 +2 -2
- 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 -17
- 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 +4 -5
- 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 -20
- 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 -19
- 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.js +21 -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 +13 -8
- package/models/trace/insights/DuplicatedJavaScript.js +7 -3
- package/models/trace/insights/DuplicatedJavaScript.js.map +1 -1
- package/models/trace/insights/FontDisplay.d.ts +16 -10
- package/models/trace/insights/FontDisplay.js +9 -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 +13 -8
- package/models/trace/insights/LegacyJavaScript.js +7 -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 +1 -0
- package/models/trace/lantern/core/NetworkAnalyzer.js +6 -2
- 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 -20
- 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 +1 -0
- 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 -16
- 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 -60
- package/models/trace/types/devtools_entrypoint-bundle-typescript-tsconfig.json +0 -48
|
@@ -0,0 +1,99 @@
|
|
|
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/handlers",
|
|
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/handlers/AnimationFramesHandler.test.ts",
|
|
51
|
+
"../../../../../../../front_end/models/trace/handlers/AnimationHandler.test.ts",
|
|
52
|
+
"../../../../../../../front_end/models/trace/handlers/AsyncJSCallsHandler.test.ts",
|
|
53
|
+
"../../../../../../../front_end/models/trace/handlers/DOMStatsHandler.test.ts",
|
|
54
|
+
"../../../../../../../front_end/models/trace/handlers/ExtensionTraceDataHandler.test.ts",
|
|
55
|
+
"../../../../../../../front_end/models/trace/handlers/FlowsHandler.test.ts",
|
|
56
|
+
"../../../../../../../front_end/models/trace/handlers/FramesHandler.test.ts",
|
|
57
|
+
"../../../../../../../front_end/models/trace/handlers/GPUHandler.test.ts",
|
|
58
|
+
"../../../../../../../front_end/models/trace/handlers/ImagePaintingHandler.test.ts",
|
|
59
|
+
"../../../../../../../front_end/models/trace/handlers/InitiatorsHandler.test.ts",
|
|
60
|
+
"../../../../../../../front_end/models/trace/handlers/InvalidationsHandler.test.ts",
|
|
61
|
+
"../../../../../../../front_end/models/trace/handlers/LargestImagePaintHandler.test.ts",
|
|
62
|
+
"../../../../../../../front_end/models/trace/handlers/LargestTextPaintHandler.test.ts",
|
|
63
|
+
"../../../../../../../front_end/models/trace/handlers/LayerTreeHandler.test.ts",
|
|
64
|
+
"../../../../../../../front_end/models/trace/handlers/LayoutShiftsHandler.test.ts",
|
|
65
|
+
"../../../../../../../front_end/models/trace/handlers/MemoryHandler.test.ts",
|
|
66
|
+
"../../../../../../../front_end/models/trace/handlers/MetaHandler.test.ts",
|
|
67
|
+
"../../../../../../../front_end/models/trace/handlers/NetworkRequestsHandler.test.ts",
|
|
68
|
+
"../../../../../../../front_end/models/trace/handlers/PageFramesHandler.test.ts",
|
|
69
|
+
"../../../../../../../front_end/models/trace/handlers/PageLoadMetricsHandler.test.ts",
|
|
70
|
+
"../../../../../../../front_end/models/trace/handlers/RendererHandler.test.ts",
|
|
71
|
+
"../../../../../../../front_end/models/trace/handlers/SamplesHandler.test.ts",
|
|
72
|
+
"../../../../../../../front_end/models/trace/handlers/ScreenshotsHandler.test.ts",
|
|
73
|
+
"../../../../../../../front_end/models/trace/handlers/ScriptsHandler.test.ts",
|
|
74
|
+
"../../../../../../../front_end/models/trace/handlers/SelectorStatsHandler.test.ts",
|
|
75
|
+
"../../../../../../../front_end/models/trace/handlers/Threads.test.ts",
|
|
76
|
+
"../../../../../../../front_end/models/trace/handlers/UserInteractionsHandler.test.ts",
|
|
77
|
+
"../../../../../../../front_end/models/trace/handlers/UserTimingsHandler.test.ts",
|
|
78
|
+
"../../../../../../../front_end/models/trace/handlers/WarningsHandler.test.ts",
|
|
79
|
+
"../../../../../../../front_end/models/trace/handlers/WorkersHandler.test.ts",
|
|
80
|
+
"../../../../../../../front_end/models/trace/handlers/helpers.test.ts"
|
|
81
|
+
],
|
|
82
|
+
"references": [
|
|
83
|
+
{
|
|
84
|
+
"path": "../../../core/sdk/bundle-tsconfig.ref.json"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"path": "../../../generated/generated-tsconfig.ref.json"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"path": "../bundle-tsconfig.ref.json"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"path": "../../../testing/testing-tsconfig.ref.json"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"path": "../../cpu_profile/bundle-tsconfig.ref.json"
|
|
97
|
+
}
|
|
98
|
+
]
|
|
99
|
+
}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
"allowJs":
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
3
|
+
"allowJs": false,
|
|
4
|
+
"allowSyntheticDefaultImports": true,
|
|
5
|
+
"checkJs": false,
|
|
6
|
+
"composite": false,
|
|
7
|
+
"declaration": false,
|
|
8
|
+
"disableSourceOfProjectReferenceRedirect": true,
|
|
7
9
|
"experimentalDecorators": true,
|
|
8
10
|
"forceConsistentCasingInFileNames": true,
|
|
11
|
+
"incremental": false,
|
|
9
12
|
"inlineSources": true,
|
|
10
13
|
"lib": [
|
|
11
14
|
"dom",
|
|
@@ -17,28 +20,34 @@
|
|
|
17
20
|
"ESNext.Array"
|
|
18
21
|
],
|
|
19
22
|
"module": "esnext",
|
|
23
|
+
"moduleResolution": "bundler",
|
|
20
24
|
"noEmitOnError": true,
|
|
21
25
|
"noFallthroughCasesInSwitch": true,
|
|
22
26
|
"noImplicitOverride": true,
|
|
23
27
|
"noImplicitReturns": true,
|
|
24
|
-
"noUnusedLocals": false,
|
|
25
|
-
"noUnusedParameters": false,
|
|
26
28
|
"outDir": ".",
|
|
29
|
+
"preserveConstEnums": true,
|
|
27
30
|
"rootDir": "../../../../../../../front_end/models/trace/handlers",
|
|
31
|
+
"rootDirs": [
|
|
32
|
+
"../../../../../../../",
|
|
33
|
+
"../../../../"
|
|
34
|
+
],
|
|
28
35
|
"skipLibCheck": true,
|
|
29
36
|
"sourceMap": true,
|
|
30
37
|
"strict": true,
|
|
31
|
-
"target": "
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
38
|
+
"target": "es2023",
|
|
39
|
+
"typeRoots": [
|
|
40
|
+
|
|
41
|
+
],
|
|
42
|
+
"types": [
|
|
43
|
+
|
|
44
|
+
],
|
|
35
45
|
"useUnknownInCatchVariables": false
|
|
36
46
|
},
|
|
37
47
|
"files": [
|
|
38
48
|
"../../../../../../../front_end/models/trace/handlers/AnimationFramesHandler.ts",
|
|
39
49
|
"../../../../../../../front_end/models/trace/handlers/AnimationHandler.ts",
|
|
40
50
|
"../../../../../../../front_end/models/trace/handlers/AsyncJSCallsHandler.ts",
|
|
41
|
-
"../../../../../../../front_end/models/trace/handlers/AuctionWorkletsHandler.ts",
|
|
42
51
|
"../../../../../../../front_end/models/trace/handlers/DOMStatsHandler.ts",
|
|
43
52
|
"../../../../../../../front_end/models/trace/handlers/ExtensionTraceDataHandler.ts",
|
|
44
53
|
"../../../../../../../front_end/models/trace/handlers/FlowsHandler.ts",
|
|
@@ -71,32 +80,33 @@
|
|
|
71
80
|
"../../../../../../../front_end/models/trace/handlers/types.ts",
|
|
72
81
|
"../../../../../../../front_end/legacy/legacy-defs.d.ts",
|
|
73
82
|
"../../../../../../../front_end/global_typings/global_defs.d.ts",
|
|
74
|
-
"../../../../../../../node_modules/@types/filesystem/index.d.ts"
|
|
83
|
+
"../../../../../../../node_modules/@types/filesystem/index.d.ts",
|
|
84
|
+
"../../../../../../../node_modules/@types/filewriter/index.d.ts"
|
|
75
85
|
],
|
|
76
86
|
"references": [
|
|
77
87
|
{
|
|
78
|
-
"path": "../../../core/common/bundle-tsconfig.json"
|
|
88
|
+
"path": "../../../core/common/bundle-tsconfig.ref.json"
|
|
79
89
|
},
|
|
80
90
|
{
|
|
81
|
-
"path": "../../../core/platform/bundle-tsconfig.json"
|
|
91
|
+
"path": "../../../core/platform/bundle-tsconfig.ref.json"
|
|
82
92
|
},
|
|
83
93
|
{
|
|
84
|
-
"path": "../../../core/sdk/bundle-tsconfig.json"
|
|
94
|
+
"path": "../../../core/sdk/bundle-tsconfig.ref.json"
|
|
85
95
|
},
|
|
86
96
|
{
|
|
87
|
-
"path": "../../../generated/generated-tsconfig.json"
|
|
97
|
+
"path": "../../../generated/generated-tsconfig.ref.json"
|
|
88
98
|
},
|
|
89
99
|
{
|
|
90
|
-
"path": "../../../third_party/third-party-web/bundle-tsconfig.json"
|
|
100
|
+
"path": "../../../third_party/third-party-web/bundle-tsconfig.ref.json"
|
|
91
101
|
},
|
|
92
102
|
{
|
|
93
|
-
"path": "../../cpu_profile/bundle-tsconfig.json"
|
|
103
|
+
"path": "../../cpu_profile/bundle-tsconfig.ref.json"
|
|
94
104
|
},
|
|
95
105
|
{
|
|
96
|
-
"path": "../helpers/bundle-tsconfig.json"
|
|
106
|
+
"path": "../helpers/bundle-tsconfig.ref.json"
|
|
97
107
|
},
|
|
98
108
|
{
|
|
99
|
-
"path": "../types/bundle-tsconfig.json"
|
|
109
|
+
"path": "../types/bundle-tsconfig.ref.json"
|
|
100
110
|
}
|
|
101
111
|
]
|
|
102
112
|
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"composite": true,
|
|
4
|
+
"declaration": true,
|
|
5
|
+
"declarationDir": ".",
|
|
6
|
+
"emitDeclarationOnly": true,
|
|
7
|
+
"outDir": ".",
|
|
8
|
+
"rootDir": "../../../../../../../front_end/models/trace/handlers",
|
|
9
|
+
"rootDirs": [
|
|
10
|
+
"../../../../../../../",
|
|
11
|
+
"../../../../"
|
|
12
|
+
],
|
|
13
|
+
"skipLibCheck": true
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"../../../../../../../front_end/models/trace/handlers/AnimationFramesHandler.ts",
|
|
17
|
+
"../../../../../../../front_end/models/trace/handlers/AnimationHandler.ts",
|
|
18
|
+
"../../../../../../../front_end/models/trace/handlers/AsyncJSCallsHandler.ts",
|
|
19
|
+
"../../../../../../../front_end/models/trace/handlers/DOMStatsHandler.ts",
|
|
20
|
+
"../../../../../../../front_end/models/trace/handlers/ExtensionTraceDataHandler.ts",
|
|
21
|
+
"../../../../../../../front_end/models/trace/handlers/FlowsHandler.ts",
|
|
22
|
+
"../../../../../../../front_end/models/trace/handlers/FramesHandler.ts",
|
|
23
|
+
"../../../../../../../front_end/models/trace/handlers/GPUHandler.ts",
|
|
24
|
+
"../../../../../../../front_end/models/trace/handlers/ImagePaintingHandler.ts",
|
|
25
|
+
"../../../../../../../front_end/models/trace/handlers/InitiatorsHandler.ts",
|
|
26
|
+
"../../../../../../../front_end/models/trace/handlers/InvalidationsHandler.ts",
|
|
27
|
+
"../../../../../../../front_end/models/trace/handlers/LargestImagePaintHandler.ts",
|
|
28
|
+
"../../../../../../../front_end/models/trace/handlers/LargestTextPaintHandler.ts",
|
|
29
|
+
"../../../../../../../front_end/models/trace/handlers/LayerTreeHandler.ts",
|
|
30
|
+
"../../../../../../../front_end/models/trace/handlers/LayoutShiftsHandler.ts",
|
|
31
|
+
"../../../../../../../front_end/models/trace/handlers/MemoryHandler.ts",
|
|
32
|
+
"../../../../../../../front_end/models/trace/handlers/MetaHandler.ts",
|
|
33
|
+
"../../../../../../../front_end/models/trace/handlers/ModelHandlers.ts",
|
|
34
|
+
"../../../../../../../front_end/models/trace/handlers/NetworkRequestsHandler.ts",
|
|
35
|
+
"../../../../../../../front_end/models/trace/handlers/PageFramesHandler.ts",
|
|
36
|
+
"../../../../../../../front_end/models/trace/handlers/PageLoadMetricsHandler.ts",
|
|
37
|
+
"../../../../../../../front_end/models/trace/handlers/RendererHandler.ts",
|
|
38
|
+
"../../../../../../../front_end/models/trace/handlers/SamplesHandler.ts",
|
|
39
|
+
"../../../../../../../front_end/models/trace/handlers/ScreenshotsHandler.ts",
|
|
40
|
+
"../../../../../../../front_end/models/trace/handlers/ScriptsHandler.ts",
|
|
41
|
+
"../../../../../../../front_end/models/trace/handlers/SelectorStatsHandler.ts",
|
|
42
|
+
"../../../../../../../front_end/models/trace/handlers/Threads.ts",
|
|
43
|
+
"../../../../../../../front_end/models/trace/handlers/UserInteractionsHandler.ts",
|
|
44
|
+
"../../../../../../../front_end/models/trace/handlers/UserTimingsHandler.ts",
|
|
45
|
+
"../../../../../../../front_end/models/trace/handlers/WarningsHandler.ts",
|
|
46
|
+
"../../../../../../../front_end/models/trace/handlers/WorkersHandler.ts",
|
|
47
|
+
"../../../../../../../front_end/models/trace/handlers/helpers.ts",
|
|
48
|
+
"../../../../../../../front_end/models/trace/handlers/types.ts",
|
|
49
|
+
"../../../../../../../front_end/legacy/legacy-defs.d.ts",
|
|
50
|
+
"../../../../../../../front_end/global_typings/global_defs.d.ts",
|
|
51
|
+
"../../../../../../../node_modules/@types/filesystem/index.d.ts",
|
|
52
|
+
"../../../../../../../node_modules/@types/filewriter/index.d.ts"
|
|
53
|
+
],
|
|
54
|
+
"references": [
|
|
55
|
+
{
|
|
56
|
+
"path": "../../../core/common/bundle-tsconfig.ref.json"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"path": "../../../core/platform/bundle-tsconfig.ref.json"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"path": "../../../core/sdk/bundle-tsconfig.ref.json"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"path": "../../../generated/generated-tsconfig.ref.json"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"path": "../../../third_party/third-party-web/bundle-tsconfig.ref.json"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"path": "../../cpu_profile/bundle-tsconfig.ref.json"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"path": "../helpers/bundle-tsconfig.ref.json"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"path": "../types/bundle-tsconfig.ref.json"
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
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/handlers",
|
|
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/handlers/AnimationFramesHandler.ts",
|
|
50
|
+
"../../../../../../../front_end/models/trace/handlers/AnimationHandler.ts",
|
|
51
|
+
"../../../../../../../front_end/models/trace/handlers/AsyncJSCallsHandler.ts",
|
|
52
|
+
"../../../../../../../front_end/models/trace/handlers/DOMStatsHandler.ts",
|
|
53
|
+
"../../../../../../../front_end/models/trace/handlers/ExtensionTraceDataHandler.ts",
|
|
54
|
+
"../../../../../../../front_end/models/trace/handlers/FlowsHandler.ts",
|
|
55
|
+
"../../../../../../../front_end/models/trace/handlers/FramesHandler.ts",
|
|
56
|
+
"../../../../../../../front_end/models/trace/handlers/GPUHandler.ts",
|
|
57
|
+
"../../../../../../../front_end/models/trace/handlers/ImagePaintingHandler.ts",
|
|
58
|
+
"../../../../../../../front_end/models/trace/handlers/InitiatorsHandler.ts",
|
|
59
|
+
"../../../../../../../front_end/models/trace/handlers/InvalidationsHandler.ts",
|
|
60
|
+
"../../../../../../../front_end/models/trace/handlers/LargestImagePaintHandler.ts",
|
|
61
|
+
"../../../../../../../front_end/models/trace/handlers/LargestTextPaintHandler.ts",
|
|
62
|
+
"../../../../../../../front_end/models/trace/handlers/LayerTreeHandler.ts",
|
|
63
|
+
"../../../../../../../front_end/models/trace/handlers/LayoutShiftsHandler.ts",
|
|
64
|
+
"../../../../../../../front_end/models/trace/handlers/MemoryHandler.ts",
|
|
65
|
+
"../../../../../../../front_end/models/trace/handlers/MetaHandler.ts",
|
|
66
|
+
"../../../../../../../front_end/models/trace/handlers/ModelHandlers.ts",
|
|
67
|
+
"../../../../../../../front_end/models/trace/handlers/NetworkRequestsHandler.ts",
|
|
68
|
+
"../../../../../../../front_end/models/trace/handlers/PageFramesHandler.ts",
|
|
69
|
+
"../../../../../../../front_end/models/trace/handlers/PageLoadMetricsHandler.ts",
|
|
70
|
+
"../../../../../../../front_end/models/trace/handlers/RendererHandler.ts",
|
|
71
|
+
"../../../../../../../front_end/models/trace/handlers/SamplesHandler.ts",
|
|
72
|
+
"../../../../../../../front_end/models/trace/handlers/ScreenshotsHandler.ts",
|
|
73
|
+
"../../../../../../../front_end/models/trace/handlers/ScriptsHandler.ts",
|
|
74
|
+
"../../../../../../../front_end/models/trace/handlers/SelectorStatsHandler.ts",
|
|
75
|
+
"../../../../../../../front_end/models/trace/handlers/Threads.ts",
|
|
76
|
+
"../../../../../../../front_end/models/trace/handlers/UserInteractionsHandler.ts",
|
|
77
|
+
"../../../../../../../front_end/models/trace/handlers/UserTimingsHandler.ts",
|
|
78
|
+
"../../../../../../../front_end/models/trace/handlers/WarningsHandler.ts",
|
|
79
|
+
"../../../../../../../front_end/models/trace/handlers/WorkersHandler.ts",
|
|
80
|
+
"../../../../../../../front_end/models/trace/handlers/helpers.ts",
|
|
81
|
+
"../../../../../../../front_end/models/trace/handlers/types.ts"
|
|
82
|
+
],
|
|
83
|
+
"references": [
|
|
84
|
+
{
|
|
85
|
+
"path": "../../../core/common/bundle-tsconfig.ref.json"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"path": "../../../core/platform/bundle-tsconfig.ref.json"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"path": "../../../core/sdk/bundle-tsconfig.ref.json"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"path": "../../../generated/generated-tsconfig.ref.json"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"path": "../../../third_party/third-party-web/bundle-tsconfig.ref.json"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"path": "../../cpu_profile/bundle-tsconfig.ref.json"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"path": "../helpers/bundle-tsconfig.ref.json"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"path": "../types/bundle-tsconfig.ref.json"
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
}
|
|
File without changes
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as Protocol from '../../../generated/protocol.js';
|
|
2
|
-
import type
|
|
2
|
+
import type * as Types from '../types/types.js';
|
|
3
|
+
type SyntheticNetworkRequest = Types.Events.SyntheticNetworkRequest;
|
|
3
4
|
export declare function isSyntheticNetworkRequestEventRenderBlocking(event: SyntheticNetworkRequest): boolean;
|
|
4
5
|
export declare function isSyntheticNetworkRequestHighPriority(event: SyntheticNetworkRequest): boolean;
|
|
5
6
|
export interface CacheControl {
|
|
@@ -24,3 +25,4 @@ export declare function parseCacheControl(header: string | null): CacheControl |
|
|
|
24
25
|
* https://github.com/GoogleChrome/lighthouse/pull/11766#discussion_r582340683
|
|
25
26
|
*/
|
|
26
27
|
export declare function isSyntheticNetworkRequestLocalhost(event: SyntheticNetworkRequest): boolean;
|
|
28
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Network.js","sourceRoot":"","sources":["../../../../../../../front_end/models/trace/helpers/Network.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Network.js","sourceRoot":"","sources":["../../../../../../../front_end/models/trace/helpers/Network.ts"],"names":[],"mappings":"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","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 Protocol from '../../../generated/protocol.js';\nimport type * as Types from '../types/types.js';\n\ntype RenderBlocking = Types.Events.RenderBlocking;\ntype SyntheticNetworkRequest = Types.Events.SyntheticNetworkRequest;\n\n// Important: we purposefully treat `potentially_blocking` as\n// non-render-blocking here because:\n// 1. An async script can run on the main thread at any point, including before\n// the page is loaded\n// 2. An async script will never block the parsing and rendering process of the\n// browser.\n// 3. Therefore, from a developer's point of view, there is nothing more they\n// can do if they've put `async` on, and within the context of Insights, we\n// shouldn't report an async script as render-blocking.\n// In the future we may want to consider suggesting the use of `defer` over\n// `async`, as it doesn't have this concern, but for now we'll allow `async`\n// and not report it as an issue.\nconst NON_RENDER_BLOCKING_VALUES = new Set<RenderBlocking>([\n 'non_blocking',\n 'dynamically_injected_non_blocking',\n 'potentially_blocking',\n]);\n\nexport function isSyntheticNetworkRequestEventRenderBlocking(event: SyntheticNetworkRequest): boolean {\n return !NON_RENDER_BLOCKING_VALUES.has(event.args.data.renderBlocking);\n}\n\nconst HIGH_NETWORK_PRIORITIES = new Set<Protocol.Network.ResourcePriority>([\n Protocol.Network.ResourcePriority.VeryHigh,\n Protocol.Network.ResourcePriority.High,\n Protocol.Network.ResourcePriority.Medium,\n]);\n\nexport function isSyntheticNetworkRequestHighPriority(event: SyntheticNetworkRequest): boolean {\n return HIGH_NETWORK_PRIORITIES.has(event.args.data.priority);\n}\n\nexport interface CacheControl {\n 'max-age'?: number;\n 'no-cache'?: boolean;\n 'no-store'?: boolean;\n 'must-revalidate'?: boolean;\n // eslint-disable-next-line @stylistic/quote-props\n 'private'?: boolean;\n}\n\nexport const CACHEABLE_STATUS_CODES: Set<number> = new Set([200, 203, 206]);\n\n/** @type {Set<LH.Crdp.Network.ResourceType>} */\nexport const STATIC_RESOURCE_TYPES: Set<Protocol.Network.ResourceType> = new Set([\n Protocol.Network.ResourceType.Font,\n Protocol.Network.ResourceType.Image,\n Protocol.Network.ResourceType.Media,\n Protocol.Network.ResourceType.Script,\n Protocol.Network.ResourceType.Stylesheet,\n]);\n\nexport const NON_NETWORK_SCHEMES: string[] = [\n 'blob', // @see https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL\n 'data', // @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs\n 'intent', // @see https://developer.chrome.com/docs/multidevice/android/intents/\n 'file', // @see https://en.wikipedia.org/wiki/File_URI_scheme\n 'filesystem', // @see https://developer.mozilla.org/en-US/docs/Web/API/FileSystem\n 'chrome-extension',\n];\n\n/**\n * Parses Cache-Control directives based on https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control\n * eg. 'no-cache, no-store, max-age=0, no-transform, private' will return\n * {no-cache: true, no-store: true, max-age: 0, no-transform: true, private: true}\n */\nexport function parseCacheControl(header: string|null): CacheControl|null {\n if (!header) {\n return null;\n }\n\n const directives = header.split(',').map(directive => directive.trim());\n const cacheControlOptions: CacheControl = {};\n\n for (const directive of directives) {\n const [key, value] = directive.split('=').map(part => part.trim());\n\n switch (key) {\n case 'max-age': {\n const maxAge = parseInt(value, 10);\n if (!isNaN(maxAge)) {\n cacheControlOptions['max-age'] = maxAge;\n }\n break;\n }\n case 'no-cache':\n cacheControlOptions['no-cache'] = true;\n break;\n case 'no-store':\n cacheControlOptions['no-store'] = true;\n break;\n case 'must-revalidate':\n cacheControlOptions['must-revalidate'] = true;\n break;\n case 'private':\n cacheControlOptions['private'] = true;\n break;\n default:\n // Ignore unknown directives\n break;\n }\n }\n\n return cacheControlOptions;\n}\n\nconst SECURE_LOCALHOST_DOMAINS = ['localhost', '127.0.0.1'];\n\n/**\n * Is the host localhost-enough to satisfy the \"secure context\" definition\n * https://github.com/GoogleChrome/lighthouse/pull/11766#discussion_r582340683\n */\nexport function isSyntheticNetworkRequestLocalhost(event: SyntheticNetworkRequest): boolean {\n try {\n const hostname = new URL(event.args.data.url).hostname;\n // Any hostname terminating in `.localhost` is considered to be local.\n // https://w3c.github.io/webappsec-secure-contexts/#localhost\n // This method doesn't consider IPs that resolve to loopback, IPv6 or other loopback edgecases\n return SECURE_LOCALHOST_DOMAINS.includes(hostname) || hostname.endsWith('.localhost');\n } catch {\n return false;\n }\n}\n"]}
|
|
@@ -68,9 +68,13 @@ export class SamplesIntegrator {
|
|
|
68
68
|
#lockedJsStackDepth = [];
|
|
69
69
|
/**
|
|
70
70
|
* Used to keep track when samples should be integrated even if they
|
|
71
|
-
* are not children of invocation trace events. This is
|
|
72
|
-
*
|
|
73
|
-
*
|
|
71
|
+
* are not children of invocation trace events. This is used in two cases:
|
|
72
|
+
* 1. We start tracing half-way through, so we miss the start of JS
|
|
73
|
+
* invocation events.
|
|
74
|
+
* 2. On threads (like Web Workers) without real JS invocation parent events,
|
|
75
|
+
* but where trace events (like SchedulePostMessage) integrate stack traces.
|
|
76
|
+
* Enabling fake JS mode allows subsequent samples to be processed and
|
|
77
|
+
* eventually correct the stack, preventing a deadlock.
|
|
74
78
|
*/
|
|
75
79
|
#fakeJSInvocation = false;
|
|
76
80
|
/**
|
|
@@ -141,7 +145,7 @@ export class SamplesIntegrator {
|
|
|
141
145
|
this.#onProfileCall(event, parentEvent);
|
|
142
146
|
continue;
|
|
143
147
|
}
|
|
144
|
-
this.#onTraceEventStart(event);
|
|
148
|
+
this.#onTraceEventStart(event, parentEvent);
|
|
145
149
|
stack.push(event);
|
|
146
150
|
}
|
|
147
151
|
while (stack.length) {
|
|
@@ -153,7 +157,7 @@ export class SamplesIntegrator {
|
|
|
153
157
|
sortTraceEventsInPlace(this.jsSampleEvents);
|
|
154
158
|
return this.#constructedProfileCalls;
|
|
155
159
|
}
|
|
156
|
-
#onTraceEventStart(event) {
|
|
160
|
+
#onTraceEventStart(event, parent) {
|
|
157
161
|
// Top level events cannot be nested into JS frames so we reset
|
|
158
162
|
// the stack when we find one.
|
|
159
163
|
if (event.name === Types.Events.Name.RUN_MICROTASKS || event.name === Types.Events.Name.RUN_TASK) {
|
|
@@ -166,6 +170,18 @@ export class SamplesIntegrator {
|
|
|
166
170
|
this.#fakeJSInvocation = false;
|
|
167
171
|
}
|
|
168
172
|
this.#extractStackTrace(event);
|
|
173
|
+
if (extractSampleTraceId(event)) {
|
|
174
|
+
const hasJSInvocationParent = parent && Types.Events.isJSInvocationEvent(parent);
|
|
175
|
+
if (!hasJSInvocationParent) {
|
|
176
|
+
// If the event has a sampleTraceId (meaning it has a stack trace) but
|
|
177
|
+
// no JS invocation parent, we enter fake JS mode. This ensures that
|
|
178
|
+
// subsequent samples on this thread are processed, allowing the stack
|
|
179
|
+
// to be correctly updated/truncated. Without this, subsequent samples
|
|
180
|
+
// would be ignored because the stack is non-empty but we are not
|
|
181
|
+
// considered to be in JS.
|
|
182
|
+
this.#fakeJSInvocation = true;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
169
185
|
// Keep track of the call frames in the stack before the event
|
|
170
186
|
// happened. For the duration of this event, these frames cannot
|
|
171
187
|
// change (none can be terminated before this event finishes).
|
|
@@ -473,7 +489,7 @@ export class SamplesIntegrator {
|
|
|
473
489
|
traceEvents: [cpuProfileEvent],
|
|
474
490
|
metadata: {
|
|
475
491
|
dataOrigin: Types.File.DataOrigin.CPU_PROFILE,
|
|
476
|
-
}
|
|
492
|
+
},
|
|
477
493
|
};
|
|
478
494
|
}
|
|
479
495
|
static extractCpuProfileFromFakeTrace(traceEvents) {
|