Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Unified Diff: third_party/WebKit/Source/devtools/front_end/audits2_worker/Audits2Service.js

Issue 2863533002: DevTools: Roll lighthouse w/ artifact delivery (Closed)
Patch Set: extra roll of css tweaks Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/audits2/lighthouse/templates.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/audits2_worker/Audits2Service.js
diff --git a/third_party/WebKit/Source/devtools/front_end/audits2_worker/Audits2Service.js b/third_party/WebKit/Source/devtools/front_end/audits2_worker/Audits2Service.js
index a1a4afad0a2442d663df1198d80e8ad6d36a97db..31068b2515b93694237f1a71574934f7f594c2d6 100644
--- a/third_party/WebKit/Source/devtools/front_end/audits2_worker/Audits2Service.js
+++ b/third_party/WebKit/Source/devtools/front_end/audits2_worker/Audits2Service.js
@@ -46,7 +46,14 @@ var Audits2Service = class {
return Promise.resolve()
.then(_ => self.runLighthouseInWorker(this, params.url, undefined, params.categoryIDs))
- .then(/** @type {!ReportRenderer.ReportJSON} */ result => result)
+ .then(/** @type {!ReportRenderer.ReportJSON} */ result => {
+ // Filter out artifacts except for screenshots in traces to minimize report size.
+ var traces = result.artifacts.traces;
+ for (var pass in traces)
+ traces[pass]['traceEvents'] = traces[pass]['traceEvents'].filter(e => e['cat'] === 'disabled-by-default-devtools.screenshot');
+ result.artifacts = { traces: traces };
+ return result;
+ })
.catchException(null);
}
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/audits2/lighthouse/templates.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698