gc-stats stats summarized by gc type through pm2/pmx
npm i pm2 -g
npm install
pm2 start -i max example.js
pm2 monit
require('pmx-gc-stats-sum')()
or
require('pmx-gc-stats-sum')(
{
gcTypes: [1, 2],
gcDiffProps: [
"totalHeapExecutableSize",
"usedHeapSize"
]
}
)
// your app here