0e2bae7e94d98ea33b26873c725b4ae5c0eb93a7
[WebKit-https.git] / Source / JavaScriptCore / inspector / protocol / Heap.json
1 {
2     "domain": "Heap",
3     "description": "Heap domain exposes JavaScript heap attributes and capabilities.",
4     "types": [
5         {
6             "id": "GarbageCollection",
7             "description": "Information about a garbage collection.",
8             "type": "object",
9             "properties": [
10                 { "name": "type", "type": "string", "enum": ["full", "partial"], "description": "The type of garbage collection." },
11                 { "name": "startTime", "type": "number" },
12                 { "name": "endTime", "type": "number" }
13             ]
14         },
15         {
16             "id": "HeapSnapshotData",
17             "description": "JavaScriptCore HeapSnapshot JSON data.",
18             "type": "string"
19         }
20     ],
21     "commands": [
22         {
23             "name": "enable",
24             "description": "Enables Heap domain events."
25         },
26         {
27             "name": "disable",
28             "description": "Disables Heap domain events."
29         },
30         {
31             "name": "gc",
32             "description": "Trigger a full garbage collection."
33         },
34         {
35             "name": "snapshot",
36             "description": "Take a heap snapshot.",
37             "returns": [
38                 { "name": "timestamp", "type": "number" },
39                 { "name": "snapshotData", "$ref": "HeapSnapshotData" }
40             ]
41         }
42     ],
43     "events": [
44         {
45             "name": "garbageCollected",
46             "description": "Information about the garbage collection.",
47             "parameters": [
48                 { "name": "collection", "type": "GarbageCollection" }
49             ]
50         }
51     ]
52 }