{"name":"gc-stats","version":"1.4.0","description":"Exposes node v8 garbage collection stats","main":"index.js","repository":{"type":"git","url":"git+ssh://git@github.com/dainis/node-gcstats.git"},"license":"Unlicense","engines":{"node":">=6"},"scripts":{"install":"node-pre-gyp install --fallback-to-build","test":"mocha --expose-gc tests","example":"node --expose-gc example.js","prepublish":"npm ls","build":"node-pre-gyp build","pretest":"npm run build","clean":"node-pre-gyp clean"},"dependencies":{"nan":"^2.13.2","node-pre-gyp":"^0.13.0"},"gypfile":true,"devDependencies":{"aws-sdk":"^2.449.0","mocha":"^6.1.4","semver":"^5.7.0","should":"^13.2.3"},"binary":{"module_name":"gcstats","module_path":"./build/{module_name}/v{version}/{configuration}/{node_abi}-{platform}-{arch}/","remote_path":"./{module_name}/v{version}/{configuration}/","package_name":"{node_abi}-{platform}-{arch}.tar.gz","host":"https://node-binaries.s3.amazonaws.com"},"gitHead":"739a6b823950bd6649915a63a82a8b4d8fec592a","bugs":{"url":"https://github.com/dainis/node-gcstats/issues"},"homepage":"https://github.com/dainis/node-gcstats#readme","bundleDependencies":["node-pre-gyp"],"_id":"gc-stats@1.4.0","_nodeVersion":"12.3.1","_npmVersion":"6.9.0","_npmUser":{"name":"dainis","email":"dainis@tillers.lv"},"dist":{"integrity":"sha512-4FcCj9e8j8rCjvLkqRpGZBLgTC/xr9XEf5By3x77cDucWWB3pJK6FEwXZCTCbb4z8xdaOoi4owBNrvn3ciDdxA==","shasum":"66cd194c5a8eae1138407300bc6cb42c2f6f3cd6","tarball":"http://registry-npm.ywwl.com/gc-stats/download/gc-stats-1.4.0.tgz","fileCount":526,"unpackedSize":1898571,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc75LtCRA9TVsSAnZWagAAhgsP/1gYoIJpRBOmUsfEqYPo\nrQIeLz0E88XL3ZCsXojgAoC1DIYcDhTL3o/2spGVFciYOCnRxNBqWz5rLYbM\nU+mXtgVh9ceKGNMiYxbXmM3GAt8dG7ruUj9Q6Rs5fJ+WZ6jLb2QsQxp6Nnje\nhZDf8Tl/tSGCZ7BjnxzSvFKvL1mEobmEfIU5UFkqJVLcjSlPBwl+MAIaQNSl\n7zyf23kpitoasRubjVFx9ZYASSRhRgfgUKGn1lsEi76tqLAjwxPH4I0QPCiJ\np5fPf5rwlVFXMFnE7uFSy/w961I7XbUH+1sFS4lsJEkKEapdkeiyGXb6f5ZX\nFlaXa1PfHG/4qTyzFL0lA5DV3HZAH3vqV48rBjucwuI5FqYNIaT3wYxECigh\nVKqQ1kkYKrispZCaJ9d63S/Fe0E7utXtkxfidYci1mBF6wDaa8KaOyCrOFWE\nZPBJ5Ob1oKLisxKeQHg1uNlvTz8k4aOjrLKbqAiPsEdP5Z9Zwl9QE9J+Gibz\nmLhDQHIGJJ/gGv2luL+qMeodUTAyEtdwXgxymlD6yXSW8aomK6FubQhkxfFx\nsjBAJyl/DZj3lgVnPqaAyBoKQF4fhTuCcpySeDldR+VyFCzQzFCFEqmbxLwQ\nC9U24gnQgM6T1drcvzlwyCWH4NoAvp5K8zJL1+3Vyl8uP4mftiyvZFd8E2kV\ncTT5\r\n=jvms\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFn6gPQHuBPIbBbDUZRStI1jUfUJVAdoDFf+eGr8mSHyAiBJA/16m8pc4dXXodZ8uzrd/cefS33ideErke5WNeqzwQ=="}],"size":608952,"noattachment":false,"key":"/gc-stats/-/gc-stats-1.4.0.tgz"},"maintainers":[{"name":"dainis","email":"dainis@tillers.lv"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gc-stats_1.4.0_1559204588407_0.26664799055233734"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","readme":"# GCStats\n[![Build Status](https://travis-ci.org/dainis/node-gcstats.svg?branch=master)](https://travis-ci.org/dainis/node-gcstats) [![Build status](https://ci.appveyor.com/api/projects/status/oeu171tgxbsac88q/branch/master?svg=true)](https://ci.appveyor.com/project/dainis/node-gcstats/branch/master)\n\nExposes stats about V8 GC after it has been executed.\n\n# Usage\n\nCreate a new instance of the module and subscribe to `stats`-events from that:\n\n    var gc = (require('gc-stats'))();\n\n    gc.on('stats', function (stats) {\n        console.log('GC happened', stats);\n    });\n\nThis will print blobs like this whenever a GC happened:\n\n    GC happened {\n      startTime: 9426055813976,\n      endTime: 9426057735390,\n      pause: 1921414,\n      pauseMS: 1,\n      gctype: 1,\n      before: {\n         totalHeapSize: 11354112,\n         totalHeapExecutableSize: 3670016,\n         usedHeapSize: 7457184,\n         heapSizeLimit: 1501560832,\n         totalPhysicalSize: 9725880,\n         totalAvailableSize: 1488434544,\n         mallocedMemory: 8192,\n         peakMallocedMemory: 1186040\n      },\n      after: {\n         totalHeapSize: 12402688,\n         totalHeapExecutableSize: 3670016,\n         usedHeapSize: 6485792,\n         heapSizeLimit: 1501560832,\n         totalPhysicalSize: 10166144,\n         totalAvailableSize: 1489388528,\n         mallocedMemory: 8192,\n         peakMallocedMemory: 1186040\n      },\n      diff: {\n         totalHeapSize: 1048576,\n         totalHeapExecutableSize: 0,\n         usedHeapSize: -971392,\n         heapSizeLimit: 0,\n         totalPhysicalSize: 440264,\n         totalAvailableSize: 953984,\n         mallocedMemory: 0,\n         peakMallocedMemory: 0\n      }\n    }\n\n## Property insights\n* totalHeapSize: Number of bytes V8 has allocated for the heap. This can grow if usedHeap needs more.\n* usedHeapSize: Number of bytes in use by application data\n* total HeapExecutableSize: Number of bytes for compiled bytecode and JITed code\n* heapSizeLimit: The absolute limit the heap cannot exceed\n* totalPhysicalSize: Committed size (node 0.11+)\n* totalAvailableSize: Available heap size(node 4+)\n* startTime: Nanoseconds for start, using hrtime()\n* endTime: Nanoseconds for end, using hrtime()\n* pause: Nanoseconds from start to end of GC using hrtime()\n* pauseMS: pause expressed in milliseconds\n* mallocedMemory\n* peakMallocedMemory\n* numberOfNativeContexts\n* numberOfDetachedContexts\n* gctype can have the following values([v8 source](https://github.com/nodejs/node/blob/554fa24916c5c6d052b51c5cee9556b76489b3f7/deps/v8/include/v8.h#L6137-L6144)):\n  * 1: Scavenge (minor GC)\n  * 2: Mark/Sweep/Compact (major GC)\n  * 4: Incremental marking\n  * 8: Weak/Phantom callback processing\n  * 15: All\n\n# Installation\n\n    npm install gc-stats\n\n# Node version support\nnode-gcstats depends on C++ extensions which are compiled when the *gc-stats* module is installed. Compatibility information can be inspected via the [Travis-CI build jobs](https://travis-ci.org/dainis/node-gcstats/).\n","publish_time":1559204588592,"_cnpm_publish_time":1559204588592,"dist-tags":{"latest":"1.4.1","next":"1.4.1-0"}}