src,lib: add performance.uvMetricsInfo
This commit exposes a new API to the perf_hooks.performance module. This wraps uv_metrics_info into performance.uvMetricsInfo() function.
cc: @trevnorris
CI: https://ci.nodejs.org/job/node-test-pull-request/61185/
Codecov Report
Attention: Patch coverage is 96.42857% with 1 line in your changes missing coverage. Please review.
Project coverage is 87.31%. Comparing base (
123693c) to head (0e9cf0e). Report is 155 commits behind head on main.
| Files with missing lines | Patch % | Lines |
|---|---|---|
| src/node_perf.cc | 95.00% | 0 Missing and 1 partial :warning: |
Additional details and impacted files
@@ Coverage Diff @@
## main #54413 +/- ##
==========================================
+ Coverage 87.10% 87.31% +0.21%
==========================================
Files 648 649 +1
Lines 182215 182783 +568
Branches 34955 35046 +91
==========================================
+ Hits 158712 159606 +894
+ Misses 16789 16465 -324
+ Partials 6714 6712 -2
| Files with missing lines | Coverage Δ | |
|---|---|---|
| lib/internal/perf/nodetiming.js | 94.64% <100.00%> (+0.26%) |
:arrow_up: |
| src/node_perf.cc | 86.83% <95.00%> (+0.73%) |
:arrow_up: |
CI: https://ci.nodejs.org/job/node-test-pull-request/61295/
CI: https://ci.nodejs.org/job/node-test-pull-request/61330/
CI: https://ci.nodejs.org/job/node-test-pull-request/61514/
CI: https://ci.nodejs.org/job/node-test-pull-request/61663/
CI: https://ci.nodejs.org/job/node-test-pull-request/61670/
Landed in 9a275e15c3dab7eb5673fac81eabac77fdd58d28