3 "description": "Heap domain exposes JavaScript heap attributes and capabilities.",
6 "id": "GarbageCollection",
7 "description": "Information about a garbage collection.",
10 { "name": "type", "type": "string", "enum": ["full", "partial"], "description": "The type of garbage collection." },
11 { "name": "startTime", "type": "number" },
12 { "name": "endTime", "type": "number" }
16 "id": "HeapSnapshotData",
17 "description": "JavaScriptCore HeapSnapshot JSON data.",
24 "description": "Enables Heap domain events."
28 "description": "Disables Heap domain events."
32 "description": "Trigger a full garbage collection."
36 "description": "Take a heap snapshot.",
38 { "name": "timestamp", "type": "number" },
39 { "name": "snapshotData", "$ref": "HeapSnapshotData" }
43 "name": "startTracking",
44 "description": "Start tracking heap changes. This will produce a `trackingStart` event."
47 "name": "stopTracking",
48 "description": "Stop tracking heap changes. This will produce a `trackingComplete` event."
53 "name": "garbageCollected",
54 "description": "Information about the garbage collection.",
56 { "name": "collection", "type": "GarbageCollection" }
60 "name": "trackingStart",
61 "description": "Tracking started.",
63 { "name": "timestamp", "type": "number" },
64 { "name": "snapshotData", "$ref": "HeapSnapshotData", "description": "Snapshot at the start of tracking." }
68 "name": "trackingComplete",
69 "description": "Tracking stopped.",
71 { "name": "timestamp", "type": "number" },
72 { "name": "snapshotData", "$ref": "HeapSnapshotData", "description": "Snapshot at the end of tracking." }