Skip to content

Commit c8eef5b

Browse files
kovanclaude
andcommitted
doc: fix perf_hooks documentation gaps and inaccuracies
- Fix introductory ESM example that references undefined `doSomeLongRunningProcess` and prematurely clears marks - Add missing PerformanceResourceTiming properties: initiatorType (added v18.6.0/v16.17.0 per PR nodejs#43593), nextHopProtocol, responseStart (added v18.2.0/v16.17.0 per PR nodejs#42725), deliveryType, responseStatus (added v22.2.0 per PR nodejs#51589) - Correct PerformanceMark version metadata from v18.2.0/v16.17.0 to v16.0.0 (introduced in PR nodejs#37136) - Correct PerformanceMeasure version metadata from v18.2.0/v16.17.0 to v16.7.0 (exported from module in PR nodejs#39297) - Fix histogram.exceeds description: it counts values exceeding the histogram's configured `highest` value, not a "1 hour" threshold (verified in src/histogram-inl.h: exceeds_ increments when hdr_record_value returns false) - Generalize Histogram property descriptions (min, max, mean, stddev) to not reference "event loop delay" since Histogram is a generic class Fixes: nodejs#40558 Fixes: nodejs#40096 Fixes: nodejs#40723 Fixes: nodejs#55792 Fixes: nodejs#55793 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c5e056c commit c8eef5b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

doc/api/perf_hooks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ Additional detail specified when creating with `Performance.mark()` method.
534534
## Class: `PerformanceMeasure`
535535

536536
<!-- YAML
537-
added: v16.0.0
537+
added: v16.7.0
538538
-->
539539

540540
* Extends: {PerformanceEntry}
@@ -904,7 +904,7 @@ The constructor of this class is not exposed to users directly.
904904

905905
<!-- YAML
906906
added:
907-
- v18.2.0
907+
- v18.6.0
908908
- v16.17.0
909909
changes:
910910
- version: v19.0.0

0 commit comments

Comments
 (0)