Commit 46ee1ed
src: add C++ support for diagnostics channels
Add a C++ API for diagnostics channels that allows native code to check
for subscribers and publish messages without unnecessary JS boundary
crossings. Uses a shared AliasedUint32Array buffer between C++ and JS
to track subscriber counts per channel, enabling a fast inline check
(HasSubscribers) that reads the buffer directly.
PR-URL: #61869
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>1 parent 33a364c commit 46ee1edCopy full SHA for 46ee1ed
11 files changed
+697-1Lines changed: 697 additions & 1 deletion
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- lib
- internal/process
- src
- test/cctest
Expand file treeCollapse file tree
Open diff view settings
Collapse file
+15-1Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
31 | 31 | |
32 | 32 | |
33 | 33 | |
| 34 | + |
| 35 | + |
| 36 | + |
34 | 37 | |
35 | 38 | |
36 | 39 | |
| ||
108 | 111 | |
109 | 112 | |
110 | 113 | |
| 114 | + |
111 | 115 | |
112 | 116 | |
113 | 117 | |
| ||
120 | 124 | |
121 | 125 | |
122 | 126 | |
| 127 | + |
123 | 128 | |
124 | 129 | |
125 | 130 | |
126 | 131 | |
127 | 132 | |
128 | 133 | |
129 | 134 | |
130 | | - |
| 135 | + |
| 136 | + |
| 137 | + |
| 138 | + |
131 | 139 | |
132 | 140 | |
133 | 141 | |
| ||
139 | 147 | |
140 | 148 | |
141 | 149 | |
| 150 | + |
142 | 151 | |
143 | 152 | |
144 | 153 | |
| ||
183 | 192 | |
184 | 193 | |
185 | 194 | |
| 195 | + |
| 196 | + |
| 197 | + |
186 | 198 | |
187 | 199 | |
188 | 200 | |
| ||
434 | 446 | |
435 | 447 | |
436 | 448 | |
| 449 | + |
| 450 | + |
437 | 451 | |
438 | 452 | |
439 | 453 | |
|
Collapse file
lib/internal/process/pre_execution.js
Copy file name to clipboardExpand all lines: lib/internal/process/pre_execution.js+10Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
124 | 124 | |
125 | 125 | |
126 | 126 | |
| 127 | + |
| 128 | + |
127 | 129 | |
128 | 130 | |
129 | 131 | |
| ||
604 | 606 | |
605 | 607 | |
606 | 608 | |
| 609 | + |
| 610 | + |
| 611 | + |
| 612 | + |
| 613 | + |
| 614 | + |
| 615 | + |
| 616 | + |
607 | 617 | |
608 | 618 | |
609 | 619 | |
|
Collapse file
+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
133 | 133 | |
134 | 134 | |
135 | 135 | |
| 136 | + |
136 | 137 | |
137 | 138 | |
138 | 139 | |
| ||
270 | 271 | |
271 | 272 | |
272 | 273 | |
| 274 | + |
273 | 275 | |
274 | 276 | |
275 | 277 | |
|
Collapse file
+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
10 | 10 | |
11 | 11 | |
12 | 12 | |
| 13 | + |
13 | 14 | |
14 | 15 | |
15 | 16 | |
|
Collapse file
+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
48 | 48 | |
49 | 49 | |
50 | 50 | |
| 51 | + |
51 | 52 | |
52 | 53 | |
53 | 54 | |
|
Collapse file
+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
49 | 49 | |
50 | 50 | |
51 | 51 | |
| 52 | + |
52 | 53 | |
53 | 54 | |
54 | 55 | |
|
0 commit comments