File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,8 @@ const log = require('../lib/log');
2828// and to change TracingStartedInBrowser events into TracingStartedInPage.
2929// This is done by searching for most occuring threads and basing new events
3030// off of those.
31- function cleanTrace ( traceEvents ) {
31+ function cleanTrace ( trace ) {
32+ const traceEvents = trace . traceEvents ;
3233 // Keep track of most occuring threads
3334 const threads = [ ] ;
3435 const countsByThread = { } ;
@@ -103,7 +104,7 @@ function cleanTrace(traceEvents) {
103104 // and using TS of first found TracingStartedIn* event
104105 traceEvents . unshift ( makeMockEvent ( mostActiveFrame , ts ) ) ;
105106
106- return traceEvents ;
107+ return trace ;
107108}
108109
109110function filterPasses ( passes , audits ) {
@@ -196,7 +197,7 @@ function expandArtifacts(artifacts, includeSpeedline) {
196197 traceEvents : trace
197198 } ;
198199 }
199- cleanTrace ( trace . traceEvents ) ;
200+ trace = cleanTrace ( trace ) ;
200201
201202 expandedArtifacts . traces [ key ] = trace ;
202203 } ) ;
You can’t perform that action at this time.
0 commit comments