垃圾收集 ('gc') 详细信息
¥Garbage Collection ('gc') Details
当 performanceEntry.type 等于 'gc' 时,则 performanceNodeEntry.detail 属性将是具有两个属性的 <Object>:
¥When performanceEntry.type is equal to 'gc', the
performanceNodeEntry.detail property will be an <Object> with two properties:
-
kind<number> 其中之一:¥
kind<number> 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
-
-
flags<number> 其中之一:¥
flags<number> One of:-
perf_hooks.constants.NODE_PERFORMANCE_GC_FLAGS_NO -
perf_hooks.constants.NODE_PERFORMANCE_GC_FLAGS_CONSTRUCT_RETAINED -
perf_hooks.constants.NODE_PERFORMANCE_GC_FLAGS_FORCED -
perf_hooks.constants.NODE_PERFORMANCE_GC_FLAGS_SYNCHRONOUS_PHANTOM_PROCESSING -
perf_hooks.constants.NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE -
perf_hooks.constants.NODE_PERFORMANCE_GC_FLAGS_ALL_EXTERNAL_MEMORY -
perf_hooks.constants.NODE_PERFORMANCE_GC_FLAGS_SCHEDULE_IDLE
-