lighthouse 12.1.0-dev.20240804 → 12.1.0-dev.20240805
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.
|
@@ -19,7 +19,16 @@ class TraceEngineResult {
|
|
|
19
19
|
* @return {Promise<LH.Artifacts.TraceEngineResult>}
|
|
20
20
|
*/
|
|
21
21
|
static async runTraceEngine(traceEvents) {
|
|
22
|
-
const
|
|
22
|
+
const traceHandlers = {...TraceEngine.TraceHandlers};
|
|
23
|
+
|
|
24
|
+
// @ts-expect-error Temporarily disable this handler
|
|
25
|
+
// It's not currently used anywhere in trace engine insights or Lighthouse.
|
|
26
|
+
// TODO: Re-enable this when its memory usage is improved in the trace engine
|
|
27
|
+
// https://github.com/GoogleChrome/lighthouse/issues/16111
|
|
28
|
+
delete traceHandlers.Invalidations;
|
|
29
|
+
|
|
30
|
+
const processor = new TraceEngine.TraceProcessor(traceHandlers);
|
|
31
|
+
|
|
23
32
|
// eslint-disable-next-line max-len
|
|
24
33
|
await processor.parse(/** @type {import('@paulirish/trace_engine').Types.TraceEvents.TraceEventData[]} */ (
|
|
25
34
|
traceEvents
|
package/package.json
CHANGED