Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: fix property name 'detail' of performanceEntry #40019

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 6 additions & 6 deletions doc/api/perf_hooks.md
Expand Up @@ -274,7 +274,7 @@ is similar to [`window.performance.toJSON`][] in browsers.
added: v8.5.0
-->

### `performanceEntry.details`
### `performanceEntry.detail`
<!-- YAML
added: v16.0.0
-->
Expand Down Expand Up @@ -382,7 +382,7 @@ Performance Entry.

### Garbage Collection ('gc') Details

When `performanceEntry.type` is equal to `'gc'`, the `performanceEntry.details`
When `performanceEntry.type` is equal to `'gc'`, the `performanceEntry.detail`
property will be an {Object} with two properties:

* `kind` {number} One of:
Expand All @@ -402,10 +402,10 @@ property will be an {Object} with two properties:
### HTTP/2 ('http2') Details

When `performanceEntry.type` is equal to `'http2'`, the
`performanceEntry.details` property will be an {Object} containing
`performanceEntry.detail` property will be an {Object} containing
additional performance information.

If `performanceEntry.name` is equal to `Http2Stream`, the `details`
If `performanceEntry.name` is equal to `Http2Stream`, the `detail`
will contain the following properties:

* `bytesRead` {number} The number of `DATA` frame bytes received for this
Expand All @@ -420,7 +420,7 @@ will contain the following properties:
* `timeToFirstHeader` {number} The number of milliseconds elapsed between the
`PerformanceEntry` `startTime` and the reception of the first header.

If `performanceEntry.name` is equal to `Http2Session`, the `details` will
If `performanceEntry.name` is equal to `Http2Session`, the `detail` will
contain the following properties:

* `bytesRead` {number} The number of bytes received for this `Http2Session`.
Expand All @@ -443,7 +443,7 @@ contain the following properties:
### Timerify ('function') Details

When `performanceEntry.type` is equal to `'function'`, the
`performanceEntry.details` property will be an {Array} listing
`performanceEntry.detail` property will be an {Array} listing
the input arguments to the timed function.

## Class: `PerformanceNodeTiming`
Expand Down