| Index: third_party/WebKit/Source/core/inspector/protocol/Memory.json
|
| diff --git a/third_party/WebKit/Source/core/inspector/protocol/Memory.json b/third_party/WebKit/Source/core/inspector/protocol/Memory.json
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..9ce2d49b84d8506ee4761713036732cd854cc7d0
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/core/inspector/protocol/Memory.json
|
| @@ -0,0 +1,66 @@
|
| +{
|
| + "domain": "Memory",
|
| + "version": {
|
| + "major": "1",
|
| + "minor": "1"
|
| + },
|
| + "hidden": true,
|
| + "types": [
|
| + {
|
| + "id": "PressureLevel",
|
| + "type": "string",
|
| + "enum": [
|
| + "moderate",
|
| + "critical"
|
| + ],
|
| + "description": "Memory pressure level."
|
| + }
|
| + ],
|
| + "commands": [
|
| + {
|
| + "name": "getDOMCounters",
|
| + "returns": [
|
| + {
|
| + "name": "documents",
|
| + "type": "integer"
|
| + },
|
| + {
|
| + "name": "nodes",
|
| + "type": "integer"
|
| + },
|
| + {
|
| + "name": "jsEventListeners",
|
| + "type": "integer"
|
| + }
|
| + ]
|
| + },
|
| + {
|
| + "name": "setPressureNotificationsSuppressed",
|
| + "description": "Enable/disable suppressing memory pressure notifications in all processes.",
|
| + "parameters": [
|
| + {
|
| + "name": "suppressed",
|
| + "type": "boolean",
|
| + "description": "If true, memory pressure notifications will be suppressed."
|
| + }
|
| + ],
|
| + "handlers": [
|
| + "browser"
|
| + ]
|
| + },
|
| + {
|
| + "name": "simulatePressureNotification",
|
| + "description": "Simulate a memory pressure notification in all processes.",
|
| + "parameters": [
|
| + {
|
| + "name": "level",
|
| + "$ref": "PressureLevel",
|
| + "description": "Memory pressure level of the notification."
|
| + }
|
| + ],
|
| + "handlers": [
|
| + "browser"
|
| + ]
|
| + }
|
| + ]
|
| +}
|
|
|