-
-
Notifications
You must be signed in to change notification settings - Fork 35.4k
perf_hooks: add property flags to GCPerformanceEntry #29547
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
ca67e58
f23b4ff
4b55aac
36b01b7
d5e1a8a
bce3cb6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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 v? | ||
| --> | ||
|
|
||
| * {number} | ||
|
|
||
| When `performanceEntry.entryType` is equal to `'gc'`, the `performance.flags` | ||
| property contain additional information about garbage collection operation. | ||
|
fanatid marked this conversation as resolved.
Outdated
|
||
| The value may be one of: | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we are exposing this we at least need a note similar to the one in https://nodejs.org/api/v8.html#v8_v8_getheapspacestatistics
As compared to the GC kind the flags here seem to be even less stable. This also lacks explanation and they are less self-explanatory compared to the gc kinds. I guess we could link to the v8 docs of
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Looks good for adding after constants list? |
||
|
|
||
| * `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 | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.