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

Unified Diff: third_party/WebKit/Source/devtools/protocol.json

Issue 1521113002: DevTools: Initial implementation of slow CPU emulation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 4 landing Created 5 years 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
Index: third_party/WebKit/Source/devtools/protocol.json
diff --git a/third_party/WebKit/Source/devtools/protocol.json b/third_party/WebKit/Source/devtools/protocol.json
index 7314906dd1ac2c82dd8c4597f83f233969525795..eb12b962450c3d469e5ed1f8d7073775721dca32 100644
--- a/third_party/WebKit/Source/devtools/protocol.json
+++ b/third_party/WebKit/Source/devtools/protocol.json
@@ -715,6 +715,13 @@
"description": "Emulates the given media for CSS media queries."
},
{
+ "name": "setCPUThrottlingRate",
+ "parameters": [
+ { "name": "rate", "type": "number", "description": "Throttling rate as a slowdown factor (1 is no throttle, 2 is 2x slowdown, etc)." }
+ ],
+ "description": "Enables CPU throttling to emulate slow CPUs."
+ },
+ {
"name": "canEmulate",
"description": "Tells whether emulation is supported.",
"returns": [

Powered by Google App Engine
This is Rietveld 408576698