Skip to content

Commit 9efa0a6

Browse files
added cputhrottle param (throttle_cpu)
1 parent 190c91c commit 9efa0a6

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

lib/mapping.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@ var options = {
2323
},
2424
},
2525
test: {
26+
//new throttle_cpu
27+
cputhrottle: {
28+
name: "cputhrottle",
29+
key: "thc",
30+
api: "throttle_cpu",
31+
param: "number",
32+
info: "custom cpu throttling",
33+
},
34+
2635
location: {
2736
name: "location",
2837
key: "l",

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"name": "webpagetest",
33
"version": "0.5.1",
44
"description": "WebPageTest API wrapper for NodeJS",
5-
"author": "WebPageTest <github@WebPageTest.com> (http://github.com/WebPageTest)",
6-
"homepage": "http://github.com/WebPageTest/webpagetest-api",
5+
"author": "Siddhantshukla814 <github@Siddhantshukla814.com> (http://github.com/Siddhantshukla814)",
6+
"homepage": "http://github.com/Siddhantshukla814/webpagetest-api",
77
"keywords": [
88
"webpagetest",
99
"api",
@@ -14,10 +14,12 @@
1414
"license": "MIT",
1515
"repository": {
1616
"type": "git",
17-
"url": "git://github.com/WebPageTest/webpagetest-api.git"
17+
"url": "git://github.com/WebPageTest/webpagetest-api.git",
18+
"url": "http://github.com/Siddhantshukla814/webpagetest-api"
1819
},
1920
"bugs": {
20-
"url": "http://github.com/WebPageTest/webpagetest-api/issues"
21+
"url": "http://github.com/WebPageTest/webpagetest-api/issues",
22+
"url": "http://github.com/Siddhantshukla814/webpagetest-api/issues"
2123
},
2224
"main": "lib/webpagetest.js",
2325
"bin": "bin/webpagetest",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ Options:
8888
specifying a custom connectivity profile)
8989
-U, --bwup <bandwidth> upload bandwidth in Kbps (used when
9090
specifying a custom connectivity profile)
91+
-thc, --cputhrottle <number> Custom cpu throttling
9192
-bw, --browserwidth <pixels> Browser window width (in display pixels)
9293
-bh, --browserheight <pixels> Browser window height (in display pixels)
9394
-vh, --viewportheight <pixels> Viewport Height in css pixels

0 commit comments

Comments
 (0)