-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Expand file tree
/
Copy pathMemory.json
More file actions
74 lines (74 loc) · 2.5 KB
/
Memory.json
File metadata and controls
74 lines (74 loc) · 2.5 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
"domain": "Memory",
"description": "Memory domain exposes page memory tracking.",
"condition": "defined(ENABLE_RESOURCE_USAGE) && ENABLE_RESOURCE_USAGE",
"debuggableTypes": ["web-page"],
"targetTypes": ["page"],
"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.",
"parameters": [
{ "name": "timestamp", "type": "number" }
]
}
]
}