@agoric/swingset-vat 0.33.0-u19.2 → 0.33.0-u21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +38 -36
- package/src/controller/controller.js +424 -330
- package/src/controller/startNodeSubprocess.js +6 -0
- package/src/controller/upgradeSwingset.js +2 -4
- package/src/devices/bridge/device-bridge.js +2 -0
- package/src/devices/timer/device-timer.js +41 -22
- package/src/kernel/kernel.js +79 -17
- package/src/kernel/slogger.js +109 -35
- package/src/kernel/state/deviceKeeper.js +4 -3
- package/src/kernel/state/kernelKeeper.js +39 -31
- package/src/kernel/state/stats.js +12 -9
- package/src/kernel/state/storageHelper.js +7 -2
- package/src/kernel/state/vatKeeper.js +5 -3
- package/src/kernel/vat-warehouse.js +22 -11
- package/src/lib/capdata.js +4 -17
- package/src/lib/message.js +4 -0
- package/src/types-external.js +33 -9
- package/src/vats/plugin-manager.js +3 -9
- package/src/vats/timer/vat-timer.js +12 -5
- package/src/vats/vat-admin/vat-vat-admin.js +2 -2
- package/tools/manual-timer.js +3 -2
- package/tools/run-utils.js +2 -1
- package/src/kernel/metrics.js +0 -152
package/src/kernel/metrics.js
DELETED
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
// All the kernel metrics we are prepared for.
|
|
2
|
-
export const KERNEL_STATS_SUM_METRICS = /** @type {const} */ ([
|
|
3
|
-
{
|
|
4
|
-
key: 'syscalls',
|
|
5
|
-
name: 'swingset_all_syscall_total',
|
|
6
|
-
description: 'Total number of SwingSet kernel calls',
|
|
7
|
-
},
|
|
8
|
-
{
|
|
9
|
-
key: 'syscallSend',
|
|
10
|
-
name: 'swingset_syscall_total',
|
|
11
|
-
sub: { dimension: 'syscall', value: 'send' },
|
|
12
|
-
description: 'Total number of SwingSet message send kernel calls',
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
key: 'syscallCallNow',
|
|
16
|
-
name: 'swingset_syscall_total',
|
|
17
|
-
sub: { dimension: 'syscall', value: 'callNow' },
|
|
18
|
-
description: 'Total number of SwingSet synchronous device kernel calls',
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
key: 'syscallSubscribe',
|
|
22
|
-
name: 'swingset_syscall_total',
|
|
23
|
-
sub: { dimension: 'syscall', value: 'subscribe' },
|
|
24
|
-
description: 'Total number of SwingSet promise subscription kernel calls',
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
key: 'syscallResolve',
|
|
28
|
-
name: 'swingset_syscall_total',
|
|
29
|
-
sub: { dimension: 'syscall', value: 'resolve' },
|
|
30
|
-
description: 'Total number of SwingSet promise resolution kernel calls',
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
key: 'syscallExit',
|
|
34
|
-
name: 'swingset_syscall_total',
|
|
35
|
-
sub: { dimension: 'syscall', value: 'exit' },
|
|
36
|
-
description: 'Total number of SwingSet vat exit kernel calls',
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
key: 'syscallVatstoreGet',
|
|
40
|
-
name: 'swingset_syscall_total',
|
|
41
|
-
sub: { dimension: 'syscall', value: 'vatstoreGet' },
|
|
42
|
-
description: 'Total number of SwingSet vatstore get kernel calls',
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
key: 'syscallVatstoreSet',
|
|
46
|
-
name: 'swingset_syscall_total',
|
|
47
|
-
sub: { dimension: 'syscall', value: 'vatstoreSet' },
|
|
48
|
-
description: 'Total number of SwingSet vatstore set kernel calls',
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
key: 'syscallVatstoreGetNextKey',
|
|
52
|
-
name: 'swingset_syscall_total',
|
|
53
|
-
sub: { dimension: 'syscall', value: 'vatstoreGetNext' },
|
|
54
|
-
description: 'Total number of SwingSet vatstore getNextKey kernel calls',
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
key: 'syscallVatstoreDelete',
|
|
58
|
-
name: 'swingset_syscall_total',
|
|
59
|
-
sub: { dimension: 'syscall', value: 'vatstoreDelete' },
|
|
60
|
-
description: 'Total number of SwingSet vatstore delete kernel calls',
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
key: 'syscallDropImports',
|
|
64
|
-
name: 'swingset_syscall_total',
|
|
65
|
-
sub: { dimension: 'syscall', value: 'dropImports' },
|
|
66
|
-
description: 'Total number of SwingSet drop imports kernel calls',
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
key: 'dispatches',
|
|
70
|
-
name: 'swingset_dispatch_total',
|
|
71
|
-
description: 'Total number of SwingSet vat calls',
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
key: 'dispatchDeliver',
|
|
75
|
-
name: 'swingset_dispatch_deliver_total',
|
|
76
|
-
description: 'Total number of SwingSet vat message deliveries',
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
key: 'dispatchNotify',
|
|
80
|
-
name: 'swingset_dispatch_notify_total',
|
|
81
|
-
description: 'Total number of SwingSet vat promise notifications',
|
|
82
|
-
},
|
|
83
|
-
]);
|
|
84
|
-
|
|
85
|
-
export const KERNEL_STATS_UPDOWN_METRICS = /** @type {const} */ ([
|
|
86
|
-
{
|
|
87
|
-
key: 'kernelObjects',
|
|
88
|
-
name: 'swingset_kernel_objects',
|
|
89
|
-
description: 'Active kernel objects',
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
key: 'kernelDevices',
|
|
93
|
-
name: 'swingset_kernel_devices',
|
|
94
|
-
description: 'Active kernel devices',
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
key: 'kernelPromises',
|
|
98
|
-
name: 'swingset_kernel_promises',
|
|
99
|
-
description: 'Active kernel promises',
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
key: 'kpUnresolved',
|
|
103
|
-
name: 'swingset_unresolved_kernel_promises',
|
|
104
|
-
description: 'Unresolved kernel promises',
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
key: 'kpFulfilled',
|
|
108
|
-
name: 'swingset_fulfilled_kernel_promises',
|
|
109
|
-
description: 'Fulfilled kernel promises',
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
key: 'kpRejected',
|
|
113
|
-
name: 'swingset_rejected_kernel_promises',
|
|
114
|
-
description: 'Rejected kernel promises',
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
key: 'runQueueLength',
|
|
118
|
-
name: 'swingset_run_queue_length',
|
|
119
|
-
consensus: true,
|
|
120
|
-
description: 'Length of the kernel run queue',
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
key: 'acceptanceQueueLength',
|
|
124
|
-
name: 'swingset_acceptance_queue_length',
|
|
125
|
-
consensus: true,
|
|
126
|
-
description: 'Length of the kernel acceptance queue',
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
key: 'promiseQueuesLength',
|
|
130
|
-
name: 'swingset_promise_queues_length',
|
|
131
|
-
consensus: true,
|
|
132
|
-
description: 'Combined length of all kernel promise queues',
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
key: 'clistEntries',
|
|
136
|
-
name: 'swingset_clist_entries',
|
|
137
|
-
description: 'Number of entries in the kernel c-list',
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
key: 'vats',
|
|
141
|
-
name: 'swingset_vats',
|
|
142
|
-
description: 'Number of active vats',
|
|
143
|
-
},
|
|
144
|
-
]);
|
|
145
|
-
|
|
146
|
-
const COUNTER = /** @type {const} */ ('counter');
|
|
147
|
-
const GAUGE = /** @type {const} */ ('gauge');
|
|
148
|
-
|
|
149
|
-
export const KERNEL_STATS_METRICS = harden([
|
|
150
|
-
...KERNEL_STATS_SUM_METRICS.map(m => ({ ...m, metricType: COUNTER })),
|
|
151
|
-
...KERNEL_STATS_UPDOWN_METRICS.map(m => ({ ...m, metricType: GAUGE })),
|
|
152
|
-
]);
|