diff --git a/doc/api/perf_hooks.md b/doc/api/perf_hooks.md index 0bbd4af4e6f3f2..937990ff47ef65 100644 --- a/doc/api/perf_hooks.md +++ b/doc/api/perf_hooks.md @@ -531,6 +531,30 @@ When `performanceEntry.type` is equal to `'function'`, the `performanceEntry.detail` property will be an {Array} listing the input arguments to the timed function. +### Net ('net') Details + +When `performanceEntry.type` is equal to `'net'`, the +`performanceEntry.detail` property will be an {Object} containing +additional information. + +If `performanceEntry.name` is equal to `connect`, the `detail` +will contain the following properties: `host`, `port`. + +### DNS ('dns') Details + +When `performanceEntry.type` is equal to `'dns'`, the +`performanceEntry.detail` property will be an {Object} containing +additional information. + +If `performanceEntry.name` is equal to `lookup`, the `detail` +will contain the following properties: `hostname`, `family`, `hints`, `verbatim`. + +If `performanceEntry.name` is equal to `lookupService`, the `detail` will +contain the following properties: `host`, `port`. + +If `performanceEntry.name` is equal to `queryxxx` or `getHostByAddr`, the `detail` will +contain the following properties: `host`, `ttl`. + ## Class: `PerformanceNodeTiming`