class PerformanceNodeEntry extends PerformanceEntry
This class is an extension by Node.js. It is not available in Web browsers.
Provides detailed Node.js timing data.
The constructor of this class is not exposed to users directly.
performanceNodeEntry.detail
History
PerformanceNodeEntry object as the receiver.anyAdditional detail specific to the entryType.
performanceNodeEntry.flags
History
performanceNodeEntry.detail instead.numberWhen performanceEntry.entryType is equal to 'gc', the performance.flags
property contains additional information about garbage collection operation.
The value may be one of:
perf_hooks.constants.NODE_PERFORMANCE_GC_FLAGS_NOperf_hooks.constants.NODE_PERFORMANCE_GC_FLAGS_CONSTRUCT_RETAINEDperf_hooks.constants.NODE_PERFORMANCE_GC_FLAGS_FORCEDperf_hooks.constants.NODE_PERFORMANCE_GC_FLAGS_SYNCHRONOUS_PHANTOM_PROCESSINGperf_hooks.constants.NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGEperf_hooks.constants.NODE_PERFORMANCE_GC_FLAGS_ALL_EXTERNAL_MEMORYperf_hooks.constants.NODE_PERFORMANCE_GC_FLAGS_SCHEDULE_IDLE
performanceNodeEntry.kind
History
performanceNodeEntry.detail instead.numberWhen performanceEntry.entryType is equal to 'gc', the performance.kind
property identifies the type of garbage collection operation that occurred.
The value may be one of:
perf_hooks.constants.NODE_PERFORMANCE_GC_MAJORperf_hooks.constants.NODE_PERFORMANCE_GC_MINORperf_hooks.constants.NODE_PERFORMANCE_GC_MINOR_MARK_SWEEPperf_hooks.constants.NODE_PERFORMANCE_GC_INCREMENTALperf_hooks.constants.NODE_PERFORMANCE_GC_WEAKCB
When performanceEntry.type is equal to 'gc', the
performanceNodeEntry.detail property will be an Object with two properties:
numbernumberWhen performanceEntry.type is equal to 'http', the
performanceNodeEntry.detail property will be an Object containing
additional information.
If performanceEntry.name is equal to HttpClient, the detail
will contain the following properties: req, res. And the req property
will be an Object containing method, url, headers, the res property
will be an Object containing statusCode, statusMessage, headers.
If performanceEntry.name is equal to HttpRequest, the detail
will contain the following properties: req, res. And the req property
will be an Object containing method, url, headers, the res property
will be an Object containing statusCode, statusMessage, headers.
This could add additional memory overhead and should only be used for diagnostic purposes, not left turned on in production by default.
When performanceEntry.type is equal to 'http2', the
performanceNodeEntry.detail property will be an Object containing
additional performance information.
If performanceEntry.name is equal to Http2Stream, the detail
will contain the following properties:
numberDATA frame bytes received for this
Http2Stream.numberDATA frame bytes sent for this
Http2Stream.numberHttp2StreamnumberPerformanceEntry startTime and the reception of the first DATA frame.numberPerformanceEntry startTime and sending of the first DATA frame.numberPerformanceEntry startTime and the reception of the first header.If performanceEntry.name is equal to Http2Session, the detail will
contain the following properties:
numberHttp2Session.numberHttp2Session.numberHttp2Session.numberHttp2Session.numberHttp2Session.numberPING frame and the reception of its acknowledgment. Only present if
a PING frame has been sent on the Http2Session.numberHttp2Stream instances.numberHttp2Stream instances processed by
the Http2Session.string'server' or 'client' to identify the type of
Http2Session.When performanceEntry.type is equal to 'function', the
performanceNodeEntry.detail property will be an Array listing
the input arguments to the timed function.
When performanceEntry.type is equal to 'net', the
performanceNodeEntry.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.
When performanceEntry.type is equal to 'dns', the
performanceNodeEntry.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,
addresses.
If performanceEntry.name is equal to lookupService, the detail will
contain the following properties: host, port, hostname, service.
If performanceEntry.name is equal to queryxxx or getHostByAddr, the detail will
contain the following properties: host, ttl, result. The value of result is
same as the result of queryxxx or getHostByAddr.