From b526eb345bd093872308e079b6996cca9291d398 Mon Sep 17 00:00:00 2001 From: Paul Irish Date: Tue, 30 Aug 2016 23:33:28 -0700 Subject: [PATCH] Update tracing-processor.js --- lighthouse-core/lib/traces/tracing-processor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lighthouse-core/lib/traces/tracing-processor.js b/lighthouse-core/lib/traces/tracing-processor.js index eb03ff2febdb..82de3aeeaaeb 100644 --- a/lighthouse-core/lib/traces/tracing-processor.js +++ b/lighthouse-core/lib/traces/tracing-processor.js @@ -193,7 +193,7 @@ class TraceProcessor { percentiles = [0.5, 0.75, 0.9, 0.99, 1]; } - // Find the main thread. + // Find the main thread via the first TracingStartedInPage event in the trace const startEvent = trace.traceEvents.find(event => { return event.name === 'TracingStartedInPage'; });