summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/inspector/protocol/Memory.json
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
commit1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch)
tree46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/JavaScriptCore/inspector/protocol/Memory.json
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/JavaScriptCore/inspector/protocol/Memory.json')
-rw-r--r--Source/JavaScriptCore/inspector/protocol/Memory.json70
1 files changed, 70 insertions, 0 deletions
diff --git a/Source/JavaScriptCore/inspector/protocol/Memory.json b/Source/JavaScriptCore/inspector/protocol/Memory.json
new file mode 100644
index 000000000..7dcfe59ae
--- /dev/null
+++ b/Source/JavaScriptCore/inspector/protocol/Memory.json
@@ -0,0 +1,70 @@
+{
+ "domain": "Memory",
+ "description": "Memory domain exposes page memory tracking.",
+ "featureGuard": "ENABLE(RESOURCE_USAGE)",
+ "availability": "web",
+ "types": [
+ {
+ "id": "Event",
+ "type": "object",
+ "properties": [
+ { "name": "timestamp", "type": "number" },
+ { "name": "categories", "type": "array", "items": { "$ref": "CategoryData" }, "description": "Breakdown of memory in categories." }
+ ]
+ },
+ {
+ "id": "CategoryData",
+ "type": "object",
+ "properties": [
+ { "name": "type", "type": "string", "enum": ["javascript", "jit", "images", "layers", "page", "other"], "description": "Category type." },
+ { "name": "size", "type": "number", "description": "Category size in bytes." }
+ ]
+ }
+ ],
+ "commands": [
+ {
+ "name": "enable",
+ "description": "Enables Memory domain events."
+ },
+ {
+ "name": "disable",
+ "description": "Disables Memory domain events."
+ },
+ {
+ "name": "startTracking",
+ "description": "Start tracking memory. This will produce a `trackingStart` event."
+ },
+ {
+ "name": "stopTracking",
+ "description": "Stop tracking memory. This will produce a `trackingComplete` event."
+ }
+ ],
+ "events": [
+ {
+ "name": "memoryPressure",
+ "description": "Memory pressure was encountered.",
+ "parameters": [
+ { "name": "timestamp", "type": "number" },
+ { "name": "severity", "type": "string", "enum": ["critical", "non-critical"], "description": "The severity of the memory pressure event." }
+ ]
+ },
+ {
+ "name": "trackingStart",
+ "description": "Tracking started.",
+ "parameters": [
+ { "name": "timestamp", "type": "number" }
+ ]
+ },
+ {
+ "name": "trackingUpdate",
+ "description": "Periodic tracking updates with event data.",
+ "parameters": [
+ { "name": "event", "$ref": "Event" }
+ ]
+ },
+ {
+ "name": "trackingComplete",
+ "description": "Tracking stopped."
+ }
+ ]
+}