diff options
author | Kirill Fomichev <fanatid@ya.ru> | 2019-09-13 17:25:31 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2020-02-04 19:41:44 +0300 |
commit | 018c3e8949e925efc8077801d44c2b2feb974750 (patch) | |
tree | ef8e6e43c89df503aff29546daa75a8455f9bf6f /doc/api/perf_hooks.md | |
parent | 60de60a0ce21378c80353489759dc70f05156cc7 (diff) |
perf_hooks: add property flags to GCPerformanceEntry
PR-URL: https://github.com/nodejs/node/pull/29547
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Diffstat (limited to 'doc/api/perf_hooks.md')
-rw-r--r-- | doc/api/perf_hooks.md | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/api/perf_hooks.md b/doc/api/perf_hooks.md index 02dee38bae1..36668b5cc53 100644 --- a/doc/api/perf_hooks.md +++ b/doc/api/perf_hooks.md @@ -201,6 +201,25 @@ The value may be one of: * `perf_hooks.constants.NODE_PERFORMANCE_GC_INCREMENTAL` * `perf_hooks.constants.NODE_PERFORMANCE_GC_WEAKCB` +### performanceEntry.flags +<!-- YAML +added: REPLACEME +--> + +* {number} + +When `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_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` + ## Class: `PerformanceNodeTiming extends PerformanceEntry` <!-- YAML added: v8.5.0 |