From 82b65214e833a2657bd34c1d2f13d678a9981fc6 Mon Sep 17 00:00:00 2001 From: Adam Raine <6752989+adamraine@users.noreply.github.com> Date: Tue, 7 Jan 2025 10:21:20 -0800 Subject: [PATCH] core(trace-engine): re-enable invalidations handler (#16293) --- core/computed/trace-engine-result.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/core/computed/trace-engine-result.js b/core/computed/trace-engine-result.js index bfa6fa1939fa..3acc45613bd7 100644 --- a/core/computed/trace-engine-result.js +++ b/core/computed/trace-engine-result.js @@ -20,15 +20,7 @@ class TraceEngineResult { * @return {Promise} */ static async runTraceEngine(traceEvents) { - const traceHandlers = {...TraceEngine.TraceHandlers}; - - // @ts-expect-error Temporarily disable this handler - // It's not currently used anywhere in trace engine insights or Lighthouse. - // TODO: Re-enable this when its memory usage is improved in the trace engine - // https://github.com/GoogleChrome/lighthouse/issues/16111 - delete traceHandlers.Invalidations; - - const processor = new TraceEngine.TraceProcessor(traceHandlers); + const processor = new TraceEngine.TraceProcessor(TraceEngine.TraceHandlers); // eslint-disable-next-line max-len await processor.parse(/** @type {import('@paulirish/trace_engine').Types.Events.Event[]} */ (