From d426ee9b17c778b4b0ebf9ab3860fef51fa914ec Mon Sep 17 00:00:00 2001 From: Christian Boehlke Date: Mon, 6 Sep 2021 17:53:48 +0200 Subject: [PATCH] doc: fix property name 'detail' of performanceEntry MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/40019 Reviewed-By: James M Snell Reviewed-By: Michaël Zasso Reviewed-By: Luigi Pinca Reviewed-By: Tobias Nießen --- doc/api/perf_hooks.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/api/perf_hooks.md b/doc/api/perf_hooks.md index 40d2d34178f8a6..30d24ca268211b 100644 --- a/doc/api/perf_hooks.md +++ b/doc/api/perf_hooks.md @@ -274,7 +274,7 @@ is similar to [`window.performance.toJSON`][] in browsers. added: v8.5.0 --> -### `performanceEntry.details` +### `performanceEntry.detail` @@ -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: @@ -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 @@ -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`. @@ -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`