performanceNodeEntry.kind
版本历史
| 版本 | 变更 |
|---|---|
| v16.0.0 | 运行时已弃用。当 entryType 为 'gc' 时,现在移至 detail 属性。 |
| v8.5.0 | 新增于: v8.5.0 |
稳定性: 0 - 已弃用:改用
performanceNodeEntry.detail。\Stability: 0 - Deprecated: Use performanceNodeEntry.detail instead.
当 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_MAJOR -
perf_hooks.constants.NODE_PERFORMANCE_GC_MINOR -
perf_hooks.constants.NODE_PERFORMANCE_GC_INCREMENTAL -
perf_hooks.constants.NODE_PERFORMANCE_GC_WEAKCB