Skip to content

Commit 4636ffe

Browse files
authored
incl critical-request-chains in traceprocessor example
1 parent eb81929 commit 4636ffe

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

readme.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,14 @@ You can supply your own run configuration to customize what audits you want deta
6666

6767
## Trace processing
6868

69-
Lighthouse can be used to analyze trace and performance data collected from other tools (like WebPageTest and ChromeDriver). The `traceContents` and `performanceLog` artifact items can be provided using a string for the absolute path on disk. The perf log is captured from the Network domain (a la ChromeDriver's [`enableNetwork` option](https://sites.google.com/a/chromium.org/chromedriver/capabilities#TOC-perfLoggingPrefs-object) and reformatted slightly. As an example, here's a trace-only run that's also evaluating just user-timings:
69+
Lighthouse can be used to analyze trace and performance data collected from other tools (like WebPageTest and ChromeDriver). The `traceContents` and `performanceLog` artifact items can be provided using a string for the absolute path on disk. The perf log is captured from the Network domain (a la ChromeDriver's [`enableNetwork` option](https://sites.google.com/a/chromium.org/chromedriver/capabilities#TOC-perfLoggingPrefs-object) and reformatted slightly. As an example, here's a trace-only run that's reporting on user timings and critical request chains:
7070

7171
##### `config.json`
7272
```js
7373
{
7474
"audits": [
75-
"user-timings"
75+
"user-timings",
76+
"critical-request-chains"
7677
],
7778

7879
"artifacts": {
@@ -87,7 +88,8 @@ Lighthouse can be used to analyze trace and performance data collected from othe
8788
"categorizable": false,
8889
"items": [{
8990
"criteria": {
90-
"user-timings": { "rawValue": 0, "weight": 1 }
91+
"user-timings": { "rawValue": 0, "weight": 1 },
92+
"critical-request-chains": { "rawValue": 0, "weight": 1}
9193
}
9294
}]
9395
}]

0 commit comments

Comments
 (0)