Skip to content

Commit eefb6f4

Browse files
authored
Merge pull request #94 from soulgalore/tracecategories
Add support for setting trace categories in Chrome
2 parents 0f2f73a + 19929c4 commit eefb6f4

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ $ webpagetest test https://twitter.com/marcelduran
2323
### Docker
2424
#### Build
2525
```bash
26-
$ docker build -t webpagetest-api .
26+
$ docker build -t webpagetest-api .
2727
```
2828
#### Run
2929
```bash
@@ -109,6 +109,7 @@ _The default WPT server can also be specified via environment variable `WEBPAGET
109109
* **-M, --timeline**: capture Developer Tools Timeline (Chrome only)
110110
* **-J, --callstack**: set between 1-5 to include the JS call stack. must be used in conjunction with timeline (increases overhead) (Chrome only)
111111
* **-q, --chrometrace**: capture chrome trace (about://tracing) (Chrome only)
112+
* **--tracecategories** _\<categories>\>_: trace categories (when chrometrace enabled) (Chrome only)
112113
* **-G, --netlog**: capture Network Log (Chrome only)
113114
* **-Q, --datareduction**: enable data reduction on Chrome 34+ Android (Chrome only)
114115
* **-x, --useragent** _\<string\>_: custom user agent string (Chrome only)

lib/mapping.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,12 @@ var options = {
184184
bool: true,
185185
info: 'capture chrome trace (about://tracing) (Chrome only)'
186186
},
187+
'tracecategories': {
188+
name: 'traceCategories',
189+
api: 'traceCategories',
190+
param: 'categories',
191+
info: 'trace categories (when chrometrace enabled) (Chrome only)'
192+
},
187193
'netlog': {
188194
name: 'netLog',
189195
key: 'G',

test/fixtures/command-line/help-test.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
-M, --timeline capture Developer Tools Timeline (Chrome only)
3030
-J, --callstack set between 1-5 to include the JS call stack. must be used in conjunction with timeline (increases overhead) (Chrome only)
3131
-q, --chrometrace capture chrome trace (about://tracing) (Chrome only)
32+
--tracecategories <categories> trace categories (when chrometrace enabled) (Chrome only)
3233
-G, --netlog capture Network Log (Chrome only)
3334
-Q, --datareduction enable data reduction on Chrome 34+ Android (Chrome only)
3435
-x, --useragent <string> custom user agent string (Chrome only)

0 commit comments

Comments
 (0)