performanceEntry.kind
此属性是 Node.js 的扩展。在 Web 浏览器中不可用。
【This property is an extension by Node.js. It is not available in Web browsers.】
当 performanceEntry.entryType 等于 'gc' 时,performance.kind 属性会标识发生的垃圾回收操作类型。其值可能是以下之一:
【When 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_INCREMENTALperf_hooks.constants.NODE_PERFORMANCE_GC_WEAKCB