Commit 02f1e64
process: refactor coverage setup during bootstrap
- Renamed `internal/process/write-coverage.js` to
`internal/coverage-gen/with_instrumentation.js`,
`internal/process/coverage.js` to
`internal/coverage-gen/with_profiler.js` to distinguish
the two better and added comments.
- Separate the coverage directory setup and the connection
setup, moves the directory setup into `node.js` and
closer to the exit hooks because that's where it's used.
- Moves the `process.reallyExit` overwrite and
`process.on('exit')` hooks setup into bootstrap/node.js
for clarity, and move them to a later stage of
bootstrap since they do not have to happen that early.
PR-URL: #25398
Reviewed-By: Ben Coe <bencoe@gmail.com>1 parent f4fa04e commit 02f1e64Copy full SHA for 02f1e64
File tree
Expand file treeCollapse file tree
6 files changed
+71
-54
lines changedOpen diff view settings
Filter options
- lib/internal
- bootstrap
- coverage-gen
- process
Expand file treeCollapse file tree
6 files changed
+71
-54
lines changedOpen diff view settings
Collapse file
lib/internal/bootstrap/loaders.js
Copy file name to clipboardExpand all lines: lib/internal/bootstrap/loaders.js+8-1Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
357 | 357 | |
358 | 358 | |
359 | 359 | |
360 | | - |
| 360 | + |
| 361 | + |
| 362 | + |
| 363 | + |
| 364 | + |
| 365 | + |
| 366 | + |
| 367 | + |
361 | 368 | |
362 | 369 | |
363 | 370 | |
|
Collapse file
lib/internal/bootstrap/node.js
Copy file name to clipboardExpand all lines: lib/internal/bootstrap/node.js+39-7Lines changed: 39 additions & 7 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
150 | 150 | |
151 | 151 | |
152 | 152 | |
153 | | - |
154 | | - |
155 | | - |
156 | | - |
157 | | - |
158 | | - |
159 | | - |
160 | 153 | |
161 | 154 | |
162 | 155 | |
| ||
311 | 304 | |
312 | 305 | |
313 | 306 | |
| 307 | + |
| 308 | + |
| 309 | + |
| 310 | + |
| 311 | + |
| 312 | + |
| 313 | + |
| 314 | + |
| 315 | + |
| 316 | + |
| 317 | + |
| 318 | + |
| 319 | + |
| 320 | + |
| 321 | + |
| 322 | + |
| 323 | + |
| 324 | + |
| 325 | + |
| 326 | + |
| 327 | + |
| 328 | + |
| 329 | + |
| 330 | + |
| 331 | + |
| 332 | + |
| 333 | + |
| 334 | + |
| 335 | + |
| 336 | + |
| 337 | + |
| 338 | + |
| 339 | + |
| 340 | + |
| 341 | + |
| 342 | + |
| 343 | + |
| 344 | + |
| 345 | + |
314 | 346 | |
315 | 347 | |
316 | 348 | |
|
Collapse file
lib/internal/process/write-coverage.js …nal/coverage-gen/with_instrumentation.jslib/internal/process/write-coverage.js renamed to lib/internal/coverage-gen/with_instrumentation.js lib/internal/process/write-coverage.js renamed to lib/internal/coverage-gen/with_instrumentation.js
Copy file name to clipboard+9-14Lines changed: 9 additions & 14 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | | - |
3 | | - |
4 | 2 | |
| 3 | + |
| 4 | + |
| 5 | + |
5 | 6 | |
6 | 7 | |
7 | 8 | |
8 | 9 | |
9 | 10 | |
| 11 | + |
| 12 | + |
| 13 | + |
10 | 14 | |
11 | 15 | |
12 | 16 | |
| ||
27 | 31 | |
28 | 32 | |
29 | 33 | |
30 | | - |
31 | | - |
32 | | - |
33 | | - |
34 | | - |
35 | | - |
36 | | - |
37 | | - |
38 | | - |
39 | | - |
40 | | - |
41 | | - |
| 34 | + |
| 35 | + |
| 36 | + |
Collapse file
lib/internal/process/coverage.js …b/internal/coverage-gen/with_profiler.jslib/internal/process/coverage.js renamed to lib/internal/coverage-gen/with_profiler.js lib/internal/process/coverage.js renamed to lib/internal/coverage-gen/with_profiler.js
Copy file name to clipboardExpand all lines: lib/internal/coverage-gen/with_profiler.js+12-29Lines changed: 12 additions & 29 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
2 | 6 | |
3 | 7 | |
4 | 8 | |
| ||
48 | 52 | |
49 | 53 | |
50 | 54 | |
51 | | - |
52 | | - |
53 | | - |
54 | | - |
55 | | - |
56 | | - |
57 | | - |
58 | | - |
59 | | - |
| 55 | + |
60 | 56 | |
61 | 57 | |
62 | 58 | |
| ||
75 | 71 | |
76 | 72 | |
77 | 73 | |
78 | | - |
79 | | - |
80 | | - |
81 | | - |
82 | | - |
83 | | - |
84 | | - |
85 | | - |
86 | | - |
87 | 74 | |
88 | 75 | |
89 | | - |
90 | | - |
91 | | - |
92 | | - |
93 | | - |
94 | | - |
95 | | - |
96 | | - |
97 | | - |
98 | | - |
| 76 | + |
| 77 | + |
99 | 78 | |
100 | 79 | |
101 | | - |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | + |
Collapse file
lib/internal/process/per_thread.js
Copy file name to clipboardExpand all lines: lib/internal/process/per_thread.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
155 | 155 | |
156 | 156 | |
157 | 157 | |
158 | | - |
| 158 | + |
159 | 159 | |
160 | 160 | |
161 | 161 | |
|
Collapse file
+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
99 | 99 | |
100 | 100 | |
101 | 101 | |
| 102 | + |
| 103 | + |
102 | 104 | |
103 | 105 | |
104 | 106 | |
| ||
153 | 155 | |
154 | 156 | |
155 | 157 | |
156 | | - |
157 | | - |
158 | 158 | |
159 | 159 | |
160 | 160 | |
|
0 commit comments