Commit 6b605a1
committed
inspector: expose precise coverage start to JS runtime
Add a `startCoverage` method on the `profiler` internal binding so
that V8 precise coverage can be enabled after bootstrap. The method
is idempotent against the existing bootstrap path (which creates a
V8CoverageConnection when NODE_V8_COVERAGE or
--experimental-test-coverage is set) and a no-op when the inspector
is unavailable, e.g. in the parent process of
`--test --test-isolation=process` where workers handle coverage and
Environment::should_create_inspector() returns false.
Refs: #60023
Signed-off-by: sangwook <rewq5991@gmail.com>1 parent 2b112e7 commit 6b605a1
1 file changed
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
548 | 548 | | |
549 | 549 | | |
550 | 550 | | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
551 | 575 | | |
552 | 576 | | |
553 | 577 | | |
| |||
601 | 625 | | |
602 | 626 | | |
603 | 627 | | |
| 628 | + | |
604 | 629 | | |
605 | 630 | | |
606 | 631 | | |
| |||
609 | 634 | | |
610 | 635 | | |
611 | 636 | | |
| 637 | + | |
612 | 638 | | |
613 | 639 | | |
614 | 640 | | |
| |||
0 commit comments