@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
package/models/trace/Styles.js
CHANGED
|
@@ -7,87 +7,87 @@ import * as Helpers from './helpers/helpers.js';
|
|
|
7
7
|
import * as Types from './types/types.js';
|
|
8
8
|
const UIStrings = {
|
|
9
9
|
/**
|
|
10
|
-
* @description Category in the
|
|
10
|
+
* @description Category in the summary view of the Performance panel to indicate time spent to load resources.
|
|
11
11
|
*/
|
|
12
12
|
loading: 'Loading',
|
|
13
13
|
/**
|
|
14
|
-
* @description
|
|
14
|
+
* @description Event category in the Performance panel for user experience events, such as layout shifts and event timing.
|
|
15
15
|
*/
|
|
16
16
|
experience: 'Experience',
|
|
17
17
|
/**
|
|
18
|
-
* @description Category in the
|
|
18
|
+
* @description Category in the summary view of the Performance panel to indicate time spent in script execution.
|
|
19
19
|
*/
|
|
20
20
|
scripting: 'Scripting',
|
|
21
21
|
/**
|
|
22
|
-
* @description Category in the
|
|
22
|
+
* @description Category in the summary view of the Performance panel to indicate time spent in rendering the web page.
|
|
23
23
|
*/
|
|
24
24
|
rendering: 'Rendering',
|
|
25
25
|
/**
|
|
26
|
-
* @description Category in the
|
|
26
|
+
* @description Category in the summary view of the Performance panel to indicate time spent to visually represent the web page.
|
|
27
27
|
*/
|
|
28
28
|
painting: 'Painting',
|
|
29
29
|
/**
|
|
30
|
-
* @description Event category in the Performance panel for time spent in the GPU
|
|
30
|
+
* @description Event category in the Performance panel for time spent in the GPU.
|
|
31
31
|
*/
|
|
32
32
|
gpu: 'GPU',
|
|
33
33
|
/**
|
|
34
|
-
* @description
|
|
34
|
+
* @description Event category in the Performance panel for asynchronous tasks.
|
|
35
35
|
*/
|
|
36
36
|
async: 'Async',
|
|
37
37
|
/**
|
|
38
|
-
* @description Category in the
|
|
38
|
+
* @description Category in the summary view of the Performance panel to indicate time spent in the rest of the system.
|
|
39
39
|
*/
|
|
40
40
|
system: 'System',
|
|
41
41
|
/**
|
|
42
|
-
* @description Category in the
|
|
42
|
+
* @description Category in the summary view of the Performance panel to indicate idle time.
|
|
43
43
|
*/
|
|
44
44
|
idle: 'Idle',
|
|
45
45
|
/**
|
|
46
|
-
* @description
|
|
46
|
+
* @description Label for main thread tasks in the Performance panel.
|
|
47
47
|
*/
|
|
48
48
|
task: 'Task',
|
|
49
49
|
/**
|
|
50
|
-
* @description Text
|
|
50
|
+
* @description Text for running a console task in the Performance panel.
|
|
51
51
|
*/
|
|
52
52
|
consoleTaskRun: 'Run console task',
|
|
53
53
|
/**
|
|
54
|
-
* @description Text for
|
|
54
|
+
* @description Text shown in the Performance panel timeline for the Program trace event, which represents uncategorized or internal browser execution time.
|
|
55
55
|
*/
|
|
56
56
|
other: 'Other',
|
|
57
57
|
/**
|
|
58
|
-
* @description Text that refers to the animation of the web page
|
|
58
|
+
* @description Text that refers to the animation of the web page.
|
|
59
59
|
*/
|
|
60
60
|
animation: 'Animation',
|
|
61
61
|
/**
|
|
62
|
-
* @description Text that refers to some events
|
|
62
|
+
* @description Text that refers to some events.
|
|
63
63
|
*/
|
|
64
64
|
event: 'Event',
|
|
65
65
|
/**
|
|
66
|
-
* @description Text
|
|
66
|
+
* @description Text for an event requesting a main thread frame in the Performance panel.
|
|
67
67
|
*/
|
|
68
68
|
requestMainThreadFrame: 'Request main thread frame',
|
|
69
69
|
/**
|
|
70
|
-
* @description Text
|
|
70
|
+
* @description Text indicating the start of a frame in the Performance panel.
|
|
71
71
|
*/
|
|
72
72
|
frameStart: 'Frame start',
|
|
73
73
|
/**
|
|
74
|
-
* @description Text
|
|
74
|
+
* @description Text for an event when a message is received in the Performance panel.
|
|
75
75
|
*/
|
|
76
76
|
onMessage: 'On message',
|
|
77
77
|
/**
|
|
78
|
-
* @description Text
|
|
78
|
+
* @description Text for an event scheduling a postMessage in the Performance panel.
|
|
79
79
|
*/
|
|
80
80
|
schedulePostMessage: 'Schedule postMessage',
|
|
81
81
|
/**
|
|
82
|
-
* @description
|
|
82
|
+
* @description Category for messaging events in the Performance panel.
|
|
83
83
|
*/
|
|
84
84
|
messaging: 'Messaging',
|
|
85
85
|
/**
|
|
86
|
-
* @description Text
|
|
86
|
+
* @description Text indicating the start of a frame on the main thread in the Performance panel.
|
|
87
87
|
*/
|
|
88
88
|
frameStartMainThread: 'Frame start (main thread)',
|
|
89
89
|
/**
|
|
90
|
-
* @description Text
|
|
90
|
+
* @description Text for drawing a frame in the Performance panel.
|
|
91
91
|
*/
|
|
92
92
|
drawFrame: 'Draw frame',
|
|
93
93
|
/**
|
|
@@ -97,57 +97,57 @@ const UIStrings = {
|
|
|
97
97
|
profilingOverhead: 'Profiling overhead',
|
|
98
98
|
/**
|
|
99
99
|
* @description The process the browser uses to determine a target element for a
|
|
100
|
-
*pointer event. Typically, this is determined by considering the pointer's
|
|
101
|
-
*location and also the visual layout of elements on the screen.
|
|
100
|
+
* pointer event. Typically, this is determined by considering the pointer's
|
|
101
|
+
* location and also the visual layout of elements on the screen.
|
|
102
102
|
*/
|
|
103
103
|
hitTest: 'Hit test',
|
|
104
104
|
/**
|
|
105
105
|
* @description Noun for an event in the Performance panel. The browser has decided
|
|
106
|
-
*that the styles for some elements need to be recalculated and scheduled that
|
|
107
|
-
*recalculation process at some time in the future.
|
|
106
|
+
* that the styles for some elements need to be recalculated and scheduled that
|
|
107
|
+
* recalculation process at some time in the future.
|
|
108
108
|
*/
|
|
109
109
|
scheduleStyleRecalculation: 'Schedule style recalculation',
|
|
110
110
|
/**
|
|
111
|
-
* @description Text
|
|
111
|
+
* @description Text for an event recalculating element styles in the Performance panel.
|
|
112
112
|
*/
|
|
113
113
|
recalculateStyle: 'Recalculate style',
|
|
114
114
|
/**
|
|
115
|
-
* @description Text
|
|
115
|
+
* @description Text for an event invalidating page layout in the Performance panel.
|
|
116
116
|
*/
|
|
117
|
-
invalidateLayout: 'Invalidate
|
|
117
|
+
invalidateLayout: 'Invalidate layout',
|
|
118
118
|
/**
|
|
119
119
|
* @description Noun for an event in the Performance panel. Layerize is a step
|
|
120
|
-
*where we calculate which layers to create.
|
|
120
|
+
* where we calculate which layers to create.
|
|
121
121
|
*/
|
|
122
122
|
layerize: 'Layerize',
|
|
123
123
|
/**
|
|
124
|
-
* @description Text
|
|
124
|
+
* @description Text for a page layout event in the Performance panel.
|
|
125
125
|
*/
|
|
126
126
|
layout: 'Layout',
|
|
127
127
|
/**
|
|
128
128
|
* @description Noun for an event in the Performance panel. Paint setup is a
|
|
129
|
-
*step before the 'Paint' event. A paint event is when the browser draws pixels
|
|
130
|
-
*to the screen. This step is the setup beforehand.
|
|
129
|
+
* step before the 'Paint' event. A paint event is when the browser draws pixels
|
|
130
|
+
* to the screen. This step is the setup beforehand.
|
|
131
131
|
*/
|
|
132
132
|
paintSetup: 'Paint setup',
|
|
133
133
|
/**
|
|
134
134
|
* @description Noun for a paint event in the Performance panel, where an image
|
|
135
|
-
*was being painted. A paint event is when the browser draws pixels to the
|
|
136
|
-
*screen, in this case specifically for an image in a website.
|
|
135
|
+
* was being painted. A paint event is when the browser draws pixels to the
|
|
136
|
+
* screen, in this case specifically for an image in a website.
|
|
137
137
|
*/
|
|
138
138
|
paintImage: 'Paint image',
|
|
139
139
|
/**
|
|
140
140
|
* @description Noun for an event in the Performance panel. Pre-paint is a
|
|
141
|
-
*step before the 'Paint' event. A paint event is when the browser records the
|
|
142
|
-
*instructions for drawing the page. This step is the setup beforehand.
|
|
141
|
+
* step before the 'Paint' event. A paint event is when the browser records the
|
|
142
|
+
* instructions for drawing the page. This step is the setup beforehand.
|
|
143
143
|
*/
|
|
144
144
|
prePaint: 'Pre-paint',
|
|
145
145
|
/**
|
|
146
|
-
* @description Text
|
|
146
|
+
* @description Text for an event updating a compositing layer in the Performance panel.
|
|
147
147
|
*/
|
|
148
148
|
updateLayer: 'Update layer',
|
|
149
149
|
/**
|
|
150
|
-
* @description Text
|
|
150
|
+
* @description Text for an event updating the layer tree in the Performance panel.
|
|
151
151
|
*/
|
|
152
152
|
updateLayerTree: 'Update layer tree',
|
|
153
153
|
/**
|
|
@@ -155,46 +155,46 @@ const UIStrings = {
|
|
|
155
155
|
*/
|
|
156
156
|
paint: 'Paint',
|
|
157
157
|
/**
|
|
158
|
-
* @description Text
|
|
158
|
+
* @description Text for an event rasterizing paint operations in the Performance panel.
|
|
159
159
|
*/
|
|
160
160
|
rasterizePaint: 'Rasterize paint',
|
|
161
161
|
/**
|
|
162
|
-
* @description
|
|
162
|
+
* @description Text shown in the Performance panel timeline for a scroll event, when the browser scrolls a layer.
|
|
163
163
|
*/
|
|
164
164
|
scroll: 'Scroll',
|
|
165
165
|
/**
|
|
166
166
|
* @description Noun for an event in the Performance panel. Commit is a step
|
|
167
|
-
*where we send (also known as "commit") layers to the compositor thread. This
|
|
168
|
-
*step follows the "Layerize" step which is what calculates which layers to
|
|
169
|
-
*create.
|
|
167
|
+
* where we send (also known as "commit") layers to the compositor thread. This
|
|
168
|
+
* step follows the "Layerize" step which is what calculates which layers to
|
|
169
|
+
* create.
|
|
170
170
|
*/
|
|
171
171
|
commit: 'Commit',
|
|
172
172
|
/**
|
|
173
|
-
* @description Text
|
|
173
|
+
* @description Text for an event compositing layers in the Performance panel.
|
|
174
174
|
*/
|
|
175
175
|
compositeLayers: 'Composite layers',
|
|
176
176
|
/**
|
|
177
|
-
* @description Text
|
|
177
|
+
* @description Text for an event computing element intersections in the Performance panel.
|
|
178
178
|
*/
|
|
179
179
|
computeIntersections: 'Compute intersections',
|
|
180
180
|
/**
|
|
181
|
-
* @description Text
|
|
181
|
+
* @description Text for an event parsing HTML in the Performance panel.
|
|
182
182
|
*/
|
|
183
183
|
parseHtml: 'Parse HTML',
|
|
184
184
|
/**
|
|
185
|
-
* @description Text
|
|
185
|
+
* @description Text for an event parsing a CSS stylesheet in the Performance panel.
|
|
186
186
|
*/
|
|
187
187
|
parseStylesheet: 'Parse stylesheet',
|
|
188
188
|
/**
|
|
189
|
-
* @description Text
|
|
189
|
+
* @description Text for an event installing a timer in the Performance panel.
|
|
190
190
|
*/
|
|
191
191
|
installTimer: 'Install timer',
|
|
192
192
|
/**
|
|
193
|
-
* @description Text
|
|
193
|
+
* @description Text for an event removing a timer in the Performance panel.
|
|
194
194
|
*/
|
|
195
195
|
removeTimer: 'Remove timer',
|
|
196
196
|
/**
|
|
197
|
-
* @description Text
|
|
197
|
+
* @description Text for an event when a timer fires in the Performance panel.
|
|
198
198
|
*/
|
|
199
199
|
timerFired: 'Timer fired',
|
|
200
200
|
/**
|
|
@@ -211,31 +211,31 @@ const UIStrings = {
|
|
|
211
211
|
*/
|
|
212
212
|
xhrLoad: '`XHR` load',
|
|
213
213
|
/**
|
|
214
|
-
* @description Text
|
|
214
|
+
* @description Text for an event compiling a script in the Performance panel.
|
|
215
215
|
*/
|
|
216
216
|
compileScript: 'Compile script',
|
|
217
217
|
/**
|
|
218
|
-
* @description Text
|
|
218
|
+
* @description Text for an event caching script code in the Performance panel.
|
|
219
219
|
*/
|
|
220
220
|
cacheScript: 'Cache script code',
|
|
221
221
|
/**
|
|
222
|
-
* @description Text
|
|
222
|
+
* @description Text for an event compiling code in the Performance panel.
|
|
223
223
|
*/
|
|
224
224
|
compileCode: 'Compile code',
|
|
225
225
|
/**
|
|
226
|
-
* @description Text
|
|
226
|
+
* @description Text for an event optimizing code in the Performance panel.
|
|
227
227
|
*/
|
|
228
228
|
optimizeCode: 'Optimize code',
|
|
229
229
|
/**
|
|
230
|
-
* @description Text
|
|
230
|
+
* @description Text for an event evaluating a script in the Performance panel.
|
|
231
231
|
*/
|
|
232
232
|
evaluateScript: 'Evaluate script',
|
|
233
233
|
/**
|
|
234
|
-
* @description Text
|
|
234
|
+
* @description Text for an event compiling a JavaScript module in the Performance panel.
|
|
235
235
|
*/
|
|
236
236
|
compileModule: 'Compile module',
|
|
237
237
|
/**
|
|
238
|
-
* @description Text
|
|
238
|
+
* @description Text for an event caching a JavaScript module in the Performance panel.
|
|
239
239
|
*/
|
|
240
240
|
cacheModule: 'Cache module code',
|
|
241
241
|
/**
|
|
@@ -250,69 +250,77 @@ const UIStrings = {
|
|
|
250
250
|
*/
|
|
251
251
|
streamingCompileTask: 'Streaming compile task',
|
|
252
252
|
/**
|
|
253
|
-
* @description Text
|
|
253
|
+
* @description Text for an event waiting for network responses in the Performance panel.
|
|
254
254
|
*/
|
|
255
255
|
waitingForNetwork: 'Waiting for network',
|
|
256
256
|
/**
|
|
257
|
-
* @description Text
|
|
257
|
+
* @description Text for an event parsing and compiling code in the Performance panel.
|
|
258
258
|
*/
|
|
259
259
|
parseAndCompile: 'Parse and compile',
|
|
260
260
|
/**
|
|
261
|
-
* @description Text in
|
|
261
|
+
* @description Text in the Performance panel.
|
|
262
262
|
* "Code Cache" refers to JavaScript bytecode cache: https://v8.dev/blog/code-caching-for-devs
|
|
263
263
|
* "Deserialize" refers to the process of reading the code cache.
|
|
264
264
|
*/
|
|
265
265
|
deserializeCodeCache: 'Deserialize code cache',
|
|
266
266
|
/**
|
|
267
|
-
* @description Text
|
|
267
|
+
* @description Text for an event streaming a WebAssembly response in the Performance panel.
|
|
268
268
|
*/
|
|
269
269
|
streamingWasmResponse: 'Streaming Wasm response',
|
|
270
270
|
/**
|
|
271
|
-
* @description Text
|
|
271
|
+
* @description Text for an event compiling a WebAssembly module in the Performance panel.
|
|
272
272
|
*/
|
|
273
273
|
compiledWasmModule: 'Compiled Wasm module',
|
|
274
274
|
/**
|
|
275
|
-
* @description Text
|
|
275
|
+
* @description Text for an event caching a WebAssembly module in the Performance panel.
|
|
276
276
|
*/
|
|
277
277
|
cachedWasmModule: 'Cached Wasm module',
|
|
278
278
|
/**
|
|
279
|
-
* @description Text
|
|
279
|
+
* @description Text for a WebAssembly module cache hit in the Performance panel.
|
|
280
280
|
*/
|
|
281
281
|
wasmModuleCacheHit: 'Wasm module cache hit',
|
|
282
282
|
/**
|
|
283
|
-
* @description Text
|
|
283
|
+
* @description Text for an invalid WebAssembly module cache in the Performance panel.
|
|
284
284
|
*/
|
|
285
285
|
wasmModuleCacheInvalid: 'Wasm module cache invalid',
|
|
286
286
|
/**
|
|
287
|
-
* @description Text
|
|
287
|
+
* @description Text for an event when a frame started loading in the Performance panel.
|
|
288
288
|
*/
|
|
289
289
|
frameStartedLoading: 'Frame started loading',
|
|
290
290
|
/**
|
|
291
|
-
* @description Text
|
|
291
|
+
* @description Text for a soft navigation start marker in the Performance panel.
|
|
292
|
+
*/
|
|
293
|
+
softNavigationStart: 'Soft navigation start',
|
|
294
|
+
/**
|
|
295
|
+
* @description Text for an onload event marker in the Performance panel.
|
|
292
296
|
*/
|
|
293
297
|
onloadEvent: 'Onload event',
|
|
294
298
|
/**
|
|
295
|
-
* @description Text
|
|
299
|
+
* @description Text for a DOMContentLoaded event marker in the Performance panel.
|
|
296
300
|
*/
|
|
297
301
|
domcontentloadedEvent: 'DOMContentLoaded event',
|
|
298
302
|
/**
|
|
299
|
-
* @description Text
|
|
303
|
+
* @description Text for the First Paint metric marker in the Performance panel.
|
|
300
304
|
*/
|
|
301
305
|
firstPaint: 'First Paint',
|
|
302
306
|
/**
|
|
303
|
-
* @description Text
|
|
307
|
+
* @description Text for the First Contentful Paint metric marker in the Performance panel.
|
|
304
308
|
*/
|
|
305
309
|
firstContentfulPaint: 'First Contentful Paint',
|
|
306
310
|
/**
|
|
307
|
-
* @description Text
|
|
311
|
+
* @description Text for the Soft First Contentful Paint metric marker in the Performance panel.
|
|
312
|
+
*/
|
|
313
|
+
softFirstContentfulPaint: 'Soft First Contentful Paint',
|
|
314
|
+
/**
|
|
315
|
+
* @description Text for the Largest Contentful Paint metric marker in the Performance panel.
|
|
308
316
|
*/
|
|
309
317
|
largestContentfulPaint: 'Largest Contentful Paint',
|
|
310
318
|
/**
|
|
311
|
-
* @description Text
|
|
319
|
+
* @description Text for the Soft Largest Contentful Paint metric marker in the Performance panel.
|
|
312
320
|
*/
|
|
313
321
|
softLargestContentfulPaint: 'Soft Largest Contentful Paint',
|
|
314
322
|
/**
|
|
315
|
-
* @description Text for
|
|
323
|
+
* @description Text shown in the Performance panel timeline for a `console.timeStamp()` event.
|
|
316
324
|
*/
|
|
317
325
|
timestamp: 'Timestamp',
|
|
318
326
|
/**
|
|
@@ -324,7 +332,7 @@ const UIStrings = {
|
|
|
324
332
|
*/
|
|
325
333
|
consoleTime: 'Console time',
|
|
326
334
|
/**
|
|
327
|
-
* @description Text
|
|
335
|
+
* @description Text for a user timing entry in the Performance panel.
|
|
328
336
|
*/
|
|
329
337
|
userTiming: 'User timing',
|
|
330
338
|
/**
|
|
@@ -334,119 +342,119 @@ const UIStrings = {
|
|
|
334
342
|
*/
|
|
335
343
|
willSendRequest: 'Will send request',
|
|
336
344
|
/**
|
|
337
|
-
* @description Text
|
|
345
|
+
* @description Text for an event sending a network request in the Performance panel.
|
|
338
346
|
*/
|
|
339
347
|
sendRequest: 'Send request',
|
|
340
348
|
/**
|
|
341
|
-
* @description Text
|
|
349
|
+
* @description Text for an event receiving a network response in the Performance panel.
|
|
342
350
|
*/
|
|
343
351
|
receiveResponse: 'Receive response',
|
|
344
352
|
/**
|
|
345
|
-
* @description Text
|
|
353
|
+
* @description Text for an event finishing resource loading in the Performance panel.
|
|
346
354
|
*/
|
|
347
355
|
finishLoading: 'Finish loading',
|
|
348
356
|
/**
|
|
349
|
-
* @description Text
|
|
357
|
+
* @description Text for an event receiving network data in the Performance panel.
|
|
350
358
|
*/
|
|
351
359
|
receiveData: 'Receive data',
|
|
352
360
|
/**
|
|
353
|
-
* @description Event category in the Performance panel for time spent to execute microtasks in JavaScript
|
|
361
|
+
* @description Event category in the Performance panel for time spent to execute microtasks in JavaScript.
|
|
354
362
|
*/
|
|
355
363
|
runMicrotasks: 'Run microtasks',
|
|
356
364
|
/**
|
|
357
|
-
* @description Text
|
|
365
|
+
* @description Text for a function call event in the Performance panel.
|
|
358
366
|
*/
|
|
359
367
|
functionCall: 'Function call',
|
|
360
368
|
/**
|
|
361
|
-
* @description Text
|
|
369
|
+
* @description Text for a garbage collection event in the Performance panel.
|
|
362
370
|
*/
|
|
363
371
|
gcEvent: 'GC event',
|
|
364
372
|
/**
|
|
365
|
-
* @description Event category in the Performance panel for time spent to perform a full
|
|
373
|
+
* @description Event category in the Performance panel for time spent to perform a full garbage collection pass.
|
|
366
374
|
*/
|
|
367
375
|
majorGc: 'Major GC',
|
|
368
376
|
/**
|
|
369
|
-
* @description Event category in the Performance panel for time spent to perform a quick
|
|
377
|
+
* @description Event category in the Performance panel for time spent to perform a quick garbage collection pass.
|
|
370
378
|
*/
|
|
371
379
|
minorGc: 'Minor GC',
|
|
372
380
|
/**
|
|
373
|
-
* @description Text for the request animation frame event
|
|
381
|
+
* @description Text for the request animation frame event.
|
|
374
382
|
*/
|
|
375
383
|
requestAnimationFrame: 'Request animation frame',
|
|
376
384
|
/**
|
|
377
|
-
* @description Text to cancel the animation frame
|
|
385
|
+
* @description Text to cancel the animation frame.
|
|
378
386
|
*/
|
|
379
387
|
cancelAnimationFrame: 'Cancel animation frame',
|
|
380
388
|
/**
|
|
381
|
-
* @description Text for the event that an animation frame is fired
|
|
389
|
+
* @description Text for the event that an animation frame is fired.
|
|
382
390
|
*/
|
|
383
391
|
animationFrameFired: 'Animation frame fired',
|
|
384
392
|
/**
|
|
385
|
-
* @description Text
|
|
393
|
+
* @description Text for an event requesting an idle callback in the Performance panel.
|
|
386
394
|
*/
|
|
387
395
|
requestIdleCallback: 'Request idle callback',
|
|
388
396
|
/**
|
|
389
|
-
* @description Text
|
|
397
|
+
* @description Text for an event cancelling an idle callback in the Performance panel.
|
|
390
398
|
*/
|
|
391
399
|
cancelIdleCallback: 'Cancel idle callback',
|
|
392
400
|
/**
|
|
393
|
-
* @description Text
|
|
401
|
+
* @description Text for an event firing an idle callback in the Performance panel.
|
|
394
402
|
*/
|
|
395
403
|
fireIdleCallback: 'Fire idle callback',
|
|
396
404
|
/**
|
|
397
|
-
* @description Text
|
|
405
|
+
* @description Text for an event creating a WebSocket connection in the Performance panel.
|
|
398
406
|
*/
|
|
399
407
|
createWebsocket: 'Create WebSocket',
|
|
400
408
|
/**
|
|
401
|
-
* @description Text
|
|
409
|
+
* @description Text for an event sending a WebSocket handshake in the Performance panel.
|
|
402
410
|
*/
|
|
403
411
|
sendWebsocketHandshake: 'Send WebSocket handshake',
|
|
404
412
|
/**
|
|
405
|
-
* @description Text
|
|
413
|
+
* @description Text for an event receiving a WebSocket handshake in the Performance panel.
|
|
406
414
|
*/
|
|
407
415
|
receiveWebsocketHandshake: 'Receive WebSocket handshake',
|
|
408
416
|
/**
|
|
409
|
-
* @description Text in
|
|
417
|
+
* @description Text in the flame chart of the Performance panel for receiving a WebSocket message.
|
|
410
418
|
*/
|
|
411
419
|
wsMessageReceived: 'Receive WebSocket message',
|
|
412
420
|
/**
|
|
413
|
-
* @description Text in
|
|
421
|
+
* @description Text in the flame chart of the Performance panel for sending a WebSocket message.
|
|
414
422
|
*/
|
|
415
423
|
wsMessageSent: 'Send WebSocket message',
|
|
416
424
|
/**
|
|
417
|
-
* @description Text
|
|
425
|
+
* @description Text for an event destroying a WebSocket connection in the Performance panel.
|
|
418
426
|
*/
|
|
419
427
|
destroyWebsocket: 'Destroy WebSocket',
|
|
420
428
|
/**
|
|
421
|
-
* @description Event category in the Performance panel for time spent in the embedder of the WebView
|
|
429
|
+
* @description Event category in the Performance panel for time spent in the embedder of the WebView.
|
|
422
430
|
*/
|
|
423
431
|
embedderCallback: 'Embedder callback',
|
|
424
432
|
/**
|
|
425
|
-
* @description Event category in the Performance panel for time spent decoding an image
|
|
433
|
+
* @description Event category in the Performance panel for time spent decoding an image.
|
|
426
434
|
*/
|
|
427
435
|
imageDecode: 'Image decode',
|
|
428
436
|
/**
|
|
429
|
-
* @description Event category in the Performance panel for time spent to perform
|
|
437
|
+
* @description Event category in the Performance panel for time spent to perform garbage collection for the Document Object Model.
|
|
430
438
|
*/
|
|
431
439
|
domGc: 'DOM GC',
|
|
432
440
|
/**
|
|
433
|
-
* @description Event category in the Performance panel for time spent to perform
|
|
441
|
+
* @description Event category in the Performance panel for time spent to perform garbage collection for C++: https://chromium.googlesource.com/v8/v8/+/main/include/cppgc/README.md.
|
|
434
442
|
*/
|
|
435
443
|
cppGc: 'C++ GC',
|
|
436
444
|
/**
|
|
437
|
-
* @description Event category in the Performance panel for time spent to perform encryption
|
|
445
|
+
* @description Event category in the Performance panel for time spent to perform encryption.
|
|
438
446
|
*/
|
|
439
447
|
encrypt: 'Encrypt',
|
|
440
448
|
/**
|
|
441
|
-
* @description Text
|
|
449
|
+
* @description Text for an encryption reply event in the Performance panel.
|
|
442
450
|
*/
|
|
443
451
|
encryptReply: 'Encrypt reply',
|
|
444
452
|
/**
|
|
445
|
-
* @description Event category in the Performance panel for time spent to perform decryption
|
|
453
|
+
* @description Event category in the Performance panel for time spent to perform decryption.
|
|
446
454
|
*/
|
|
447
455
|
decrypt: 'Decrypt',
|
|
448
456
|
/**
|
|
449
|
-
* @description Text
|
|
457
|
+
* @description Text for a decryption reply event in the Performance panel.
|
|
450
458
|
*/
|
|
451
459
|
decryptReply: 'Decrypt reply',
|
|
452
460
|
/**
|
|
@@ -456,7 +464,7 @@ const UIStrings = {
|
|
|
456
464
|
digest: 'Digest',
|
|
457
465
|
/**
|
|
458
466
|
* @description Noun phrase meaning 'the browser was preparing the digest
|
|
459
|
-
*reply'. Digest: https://developer.mozilla.org/en-US/docs/Glossary/Digest
|
|
467
|
+
* reply'. Digest: https://developer.mozilla.org/en-US/docs/Glossary/Digest
|
|
460
468
|
*/
|
|
461
469
|
digestReply: 'Digest reply',
|
|
462
470
|
/**
|
|
@@ -469,39 +477,39 @@ const UIStrings = {
|
|
|
469
477
|
*/
|
|
470
478
|
signReply: 'Sign reply',
|
|
471
479
|
/**
|
|
472
|
-
* @description Text
|
|
480
|
+
* @description Text for a verification stage event in the Performance panel.
|
|
473
481
|
*/
|
|
474
482
|
verify: 'Verify',
|
|
475
483
|
/**
|
|
476
|
-
* @description Text
|
|
484
|
+
* @description Text for a verification reply event in the Performance panel.
|
|
477
485
|
*/
|
|
478
486
|
verifyReply: 'Verify reply',
|
|
479
487
|
/**
|
|
480
|
-
* @description Text
|
|
488
|
+
* @description Text for an asynchronous task in the Performance panel.
|
|
481
489
|
*/
|
|
482
490
|
asyncTask: 'Async task',
|
|
483
491
|
/**
|
|
484
|
-
* @description Text in
|
|
492
|
+
* @description Text in the Performance panel for layout shift records.
|
|
485
493
|
*/
|
|
486
494
|
layoutShift: 'Layout shift',
|
|
487
495
|
/**
|
|
488
|
-
* @description Text in
|
|
496
|
+
* @description Text in the Performance panel for layout shift cluster records.
|
|
489
497
|
*/
|
|
490
498
|
layoutShiftCluster: 'Layout shift cluster',
|
|
491
499
|
/**
|
|
492
|
-
* @description Text in
|
|
500
|
+
* @description Text in the Performance panel for an event timing record.
|
|
493
501
|
*/
|
|
494
502
|
eventTiming: 'Event timing',
|
|
495
503
|
/**
|
|
496
|
-
* @description Event category in the Performance panel for JavaScript nodes in CPUProfile
|
|
504
|
+
* @description Event category in the Performance panel for JavaScript nodes in CPUProfile.
|
|
497
505
|
*/
|
|
498
506
|
jsFrame: 'JS frame',
|
|
499
507
|
/**
|
|
500
|
-
* @description Text in UIDevtools Utils of the Performance panel
|
|
508
|
+
* @description Text in UIDevtools Utils of the Performance panel.
|
|
501
509
|
*/
|
|
502
510
|
rasterizing: 'Rasterizing',
|
|
503
511
|
/**
|
|
504
|
-
* @description Text in UIDevtools Utils of the Performance panel
|
|
512
|
+
* @description Text in UIDevtools Utils of the Performance panel.
|
|
505
513
|
*/
|
|
506
514
|
drawing: 'Drawing',
|
|
507
515
|
/**
|
|
@@ -685,8 +693,10 @@ export function maybeInitSylesMap() {
|
|
|
685
693
|
[Types.Events.Name.FRAME_STARTED_LOADING]: new TimelineRecordStyle(i18nString(UIStrings.frameStartedLoading), defaultCategoryStyles.loading, true),
|
|
686
694
|
[Types.Events.Name.MARK_LOAD]: new TimelineRecordStyle(i18nString(UIStrings.onloadEvent), defaultCategoryStyles.scripting, true),
|
|
687
695
|
[Types.Events.Name.MARK_DOM_CONTENT]: new TimelineRecordStyle(i18nString(UIStrings.domcontentloadedEvent), defaultCategoryStyles.scripting, true),
|
|
696
|
+
[Types.Events.Name.SOFT_NAVIGATION_START]: new TimelineRecordStyle(i18nString(UIStrings.softNavigationStart), defaultCategoryStyles.loading, true),
|
|
688
697
|
[Types.Events.Name.MARK_FIRST_PAINT]: new TimelineRecordStyle(i18nString(UIStrings.firstPaint), defaultCategoryStyles.painting, true),
|
|
689
698
|
[Types.Events.Name.MARK_FCP]: new TimelineRecordStyle(i18nString(UIStrings.firstContentfulPaint), defaultCategoryStyles.rendering, true),
|
|
699
|
+
[Types.Events.Name.MARK_SOFT_FCP]: new TimelineRecordStyle(i18nString(UIStrings.softFirstContentfulPaint), defaultCategoryStyles.rendering, true),
|
|
690
700
|
[Types.Events.Name.MARK_LCP_CANDIDATE]: new TimelineRecordStyle(i18nString(UIStrings.largestContentfulPaint), defaultCategoryStyles.rendering, true),
|
|
691
701
|
[Types.Events.Name.MARK_LCP_CANDIDATE_FOR_SOFT_NAVIGATION]: new TimelineRecordStyle(i18nString(UIStrings.softLargestContentfulPaint), defaultCategoryStyles.rendering, true),
|
|
692
702
|
[Types.Events.Name.TIME_STAMP]: new TimelineRecordStyle(i18nString(UIStrings.timestamp), defaultCategoryStyles.scripting),
|
|
@@ -732,7 +742,7 @@ export function maybeInitSylesMap() {
|
|
|
732
742
|
[Types.Events.Name.ASYNC_TASK]: new TimelineRecordStyle(i18nString(UIStrings.asyncTask), defaultCategoryStyles.async),
|
|
733
743
|
[Types.Events.Name.LAYOUT_SHIFT]: new TimelineRecordStyle(i18nString(UIStrings.layoutShift), defaultCategoryStyles.experience,
|
|
734
744
|
/* Mark LayoutShifts as hidden; in the timeline we render
|
|
735
|
-
|
|
745
|
+
* SyntheticLayoutShifts so those are the ones visible to the user */
|
|
736
746
|
true),
|
|
737
747
|
[Types.Events.Name.SYNTHETIC_LAYOUT_SHIFT]: new TimelineRecordStyle(i18nString(UIStrings.layoutShift), defaultCategoryStyles.experience),
|
|
738
748
|
[Types.Events.Name.SYNTHETIC_LAYOUT_SHIFT_CLUSTER]: new TimelineRecordStyle(i18nString(UIStrings.layoutShiftCluster), defaultCategoryStyles.experience),
|
|
@@ -796,9 +806,11 @@ export function setTimelineMainEventCategories(categories) {
|
|
|
796
806
|
export function markerDetailsForEvent(event) {
|
|
797
807
|
let title = '';
|
|
798
808
|
let color = 'var(--color-text-primary)';
|
|
799
|
-
if (Types.Events.
|
|
809
|
+
if (Types.Events.isAnyFirstContentfulPaint(event)) {
|
|
800
810
|
color = 'var(--sys-color-green-bright)';
|
|
801
|
-
title =
|
|
811
|
+
title = (Types.Events.isSoftFirstContentfulPaint(event)) ?
|
|
812
|
+
Handlers.ModelHandlers.PageLoadMetrics.MetricName.SOFT_FCP :
|
|
813
|
+
Handlers.ModelHandlers.PageLoadMetrics.MetricName.FCP;
|
|
802
814
|
}
|
|
803
815
|
if (Types.Events.isAnyLargestContentfulPaintCandidate(event)) {
|
|
804
816
|
color = 'var(--sys-color-green)';
|