Skip to content

Commit

Permalink
incl critical-request-chains in traceprocessor example
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish authored Jul 12, 2016
1 parent eb81929 commit 4636ffe
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,14 @@ You can supply your own run configuration to customize what audits you want deta

## Trace processing

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:
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:

##### `config.json`
```js
{
"audits": [
"user-timings"
"user-timings",
"critical-request-chains"
],

"artifacts": {
Expand All @@ -87,7 +88,8 @@ Lighthouse can be used to analyze trace and performance data collected from othe
"categorizable": false,
"items": [{
"criteria": {
"user-timings": { "rawValue": 0, "weight": 1 }
"user-timings": { "rawValue": 0, "weight": 1 },
"critical-request-chains": { "rawValue": 0, "weight": 1}
}
}]
}]
Expand Down

0 comments on commit 4636ffe

Please sign in to comment.