summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/inspector/protocol/Heap.json
blob: eac33464eb70a1ab91d5bf333a78444336eb8581 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{
    "domain": "Heap",
    "description": "Heap domain exposes JavaScript heap attributes and capabilities.",
    "types": [
        {
            "id": "GarbageCollection",
            "description": "Information about a garbage collection.",
            "type": "object",
            "properties": [
                { "name": "type", "type": "string", "enum": ["full", "partial"], "description": "The type of garbage collection." },
                { "name": "startTime", "type": "number" },
                { "name": "endTime", "type": "number" }
            ]
        }
    ],
    "commands": [
        {
            "name": "enable",
            "description": "Enables Heap domain events."
        },
        {
            "name": "disable",
            "description": "Disables Heap domain events."
        },
        {
            "name": "gc",
            "description": "Trigger a full garbage collection."
        }
    ],
    "events": [
        {
            "name": "garbageCollected",
            "description": "Information about the garbage collection.",
            "parameters": [
                { "name": "collection", "type": "GarbageCollection" }
            ]
        }
    ]
}