gc-profiler
Advanced tools
Comparing version 1.1.1 to 1.2.0
@@ -15,3 +15,3 @@ "use strict"; | ||
var GCCallbackFlags = { | ||
main.GCCallbackFlags = { | ||
kNoGCCallbackFlags: 0, | ||
@@ -29,4 +29,4 @@ kGCCallbackFlagCompacted: 1 << 0, | ||
type: GC_TYPES[type], | ||
compacted: !!(flags & GCCallbackFlags.kGCCallbackFlagCompacted), | ||
forced: !!(flags && GCCallbackFlags.kGCCallbackFlagForced) | ||
forced: !!(flags && main.GCCallbackFlags.kGCCallbackFlagForced), | ||
flags: flags | ||
}; | ||
@@ -33,0 +33,0 @@ |
{ | ||
"name": "gc-profiler", | ||
"description": "Allows you to profile when the garbage collector runs, and how long it takes.", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"author": "Bret Copeland <bret@atlantisflight.org>", | ||
@@ -6,0 +6,0 @@ "main": "./main.js", |
@@ -25,3 +25,14 @@ # node-gc-profiler | ||
| type | string | Either `Scavenge` or `MarkSweepCompact` depending on the type of GC cycle. | | ||
| compacted | boolean | True for a compacted cycle. | | ||
| forced | boolean | True for a forced cycle. | | ||
| flags | number | The raw GCCallbackFlags provided from v8. | | ||
The `profiler.GCCallbackFlags` enumeration is provided to help decode the `flags` property. | ||
```js | ||
profiler.GCCallbackFlags = { | ||
kNoGCCallbackFlags: 0, | ||
kGCCallbackFlagCompacted: 1 << 0, // this flag is never set in v8 versions >= 3.6.5 | ||
kGCCallbackFlagConstructRetainedObjectInfos: 1 << 1, | ||
kGCCallbackFlagForced: 1 << 2 | ||
}; | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7800
38