Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gc-profiler

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gc-profiler - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0

6

main.js

@@ -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
};
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc