{"_id":"@nearform/clinic-heap-profiler","_rev":"1763085","name":"@nearform/clinic-heap-profiler","description":"Programmable interface to Clinic.js Heap Profiler","dist-tags":{"latest":"1.1.0"},"maintainers":[{"name":"rafaelgss","email":"rafael.nunu@hotmail.com"},{"name":"capaj","email":"capajj@gmail.com"},{"name":"alan.slater","email":"alan.slater@nearform.com"},{"name":"davidefiorello","email":"davide@codeflyer.com"},{"name":"filippo.desantis","email":"filippo.desantis@gmail.com"},{"name":"jimmymintzer","email":"jimmymintzer@gmail.com"},{"name":"cianfoley_nearform","email":"cian.foley@nearform.com"},{"name":"mattrobinson","email":"matt.robinson@nearform.com"},{"name":"shogun_panda","email":"paolo@cowtech.it"},{"name":"shaunjbaker","email":"shaun@schb.co.uk"},{"name":"nearformer","email":"david.clements@nearform.com"},{"name":"matteo.collina","email":"hello@matteocollina.com"},{"name":"simoneb","email":"simone.busoli@gmail.com"},{"name":"iamsw","email":"sjwilson89@gmail.com"},{"name":"joezo","email":"joezo156@googlemail.com"},{"name":"jackdclark","email":"jack@jackdc.com"},{"name":"lpww","email":"thomas.treffry@nearform.com"},{"name":"chrisdwheatley","email":"chriswheatley87@gmail.com"},{"name":"admataz","email":"adam@admataz.com"},{"name":"ckiss","email":"kissdevel@gmail.com"},{"name":"ovhemert","email":"hello@ovhemert.dev"},{"name":"fiacc","email":"fiaccobm@gmail.com"},{"name":"zimny","email":"piotr.zimoch@cloudaemons.com"},{"name":"irelandm","email":"mark.ireland@nearform.com"},{"name":"dublx","email":"luis.faustino@gmail.com"},{"name":"paolochiodi","email":"chiodi84@gmail.com"},{"name":"eamonn.frisby","email":"eamonn.frisby@nearform.com"},{"name":"jackmurdoch","email":"jack.murdoch@nearform.com"},{"name":"sameer13","email":"sameer13@gmail.com"},{"name":"gilach","email":"grzegorz@ilach.pl"}],"time":{"modified":"2026-11-28T01:02:34.000Z","created":"2021-05-13T22:12:03.681Z","1.1.0":"2021-11-11T02:27:53.512Z","2.0.1":"2021-05-13T22:45:02.257Z","2.0.0":"2021-05-13T22:12:03.681Z"},"users":{},"author":"","repository":{"url":"git+https://github.com/clinicjs/node-clinic-heap-profiler.git","type":"git"},"versions":{"1.1.0":{"name":"@nearform/clinic-heap-profiler","version":"1.1.0","author":"","license":"MIT","_id":"@nearform/clinic-heap-profiler@1.1.0","maintainers":[{"name":"rafaelgss","email":"rafael.nunu@hotmail.com"},{"name":"capaj","email":"capajj@gmail.com"},{"name":"alan.slater","email":"alan.slater@nearform.com"},{"name":"davidefiorello","email":"davide@codeflyer.com"},{"name":"filippo.desantis","email":"filippo.desantis@gmail.com"},{"name":"jimmymintzer","email":"jimmymintzer@gmail.com"},{"name":"cianfoley_nearform","email":"cian.foley@nearform.com"},{"name":"mattrobinson","email":"matt.robinson@nearform.com"},{"name":"shogun_panda","email":"paolo@cowtech.it"},{"name":"shaunjbaker","email":"shaun@schb.co.uk"},{"name":"nearformer","email":"david.clements@nearform.com"},{"name":"matteo.collina","email":"hello@matteocollina.com"},{"name":"simoneb","email":"simone.busoli@gmail.com"},{"name":"iamsw","email":"sjwilson89@gmail.com"},{"name":"joezo","email":"joezo156@googlemail.com"},{"name":"jackdclark","email":"jack@jackdc.com"},{"name":"lpww","email":"thomas.treffry@nearform.com"},{"name":"chrisdwheatley","email":"chriswheatley87@gmail.com"},{"name":"admataz","email":"adam@admataz.com"},{"name":"ckiss","email":"kissdevel@gmail.com"},{"name":"ovhemert","email":"hello@ovhemert.dev"},{"name":"fiacc","email":"fiaccobm@gmail.com"},{"name":"zimny","email":"piotr.zimoch@cloudaemons.com"},{"name":"irelandm","email":"mark.ireland@nearform.com"},{"name":"dublx","email":"luis.faustino@gmail.com"},{"name":"paolochiodi","email":"chiodi84@gmail.com"},{"name":"eamonn.frisby","email":"eamonn.frisby@nearform.com"},{"name":"jackmurdoch","email":"jack.murdoch@nearform.com"},{"name":"sameer13","email":"sameer13@gmail.com"},{"name":"gilach","email":"grzegorz@ilach.pl"}],"homepage":"https://github.com/clinicjs/node-clinic-heap-profiler#readme","bugs":{"url":"https://github.com/clinicjs/node-clinic-heap-profiler/issues"},"tap":{"nyc-arg":["--exclude=test/*.js","--exclude=visualizer/d3.js","--exclude=visualizer/data-tree.js","--exclude=visualizer/no-data-node.js"]},"dist":{"shasum":"2c690cbe61f93f4395c940315be7a1d0ca0e4176","tarball":"http://registry-npm.ywwl.com/@nearform/clinic-heap-profiler/download/@nearform/clinic-heap-profiler-1.1.0.tgz","fileCount":152,"integrity":"sha512-HP8qhJKKBzm1++aj7PrvPjigbtDuy4zo0ntW0cpZhygHRrq14tZKfrn1CfA519BSMogxSsDlp2M+3+iVfX4gfQ==","signatures":[{"sig":"MEUCIQD0zgld37YTcQYm1LYbLLvLXmhoJpPmDIKdMfh9TACSJgIgJUE+bwLWAW+6JvPuOfv85l9a4jriTWkblPGec3wzkKM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":303881,"size":101423,"noattachment":false,"key":"/@nearform/clinic-heap-profiler/-/@nearform/clinic-heap-profiler-1.1.0.tgz"},"main":"src/index.js","engines":{"node":">= 12.13.0"},"gitHead":"98e8e2d8905b85d885c931db66a772dd936f66eb","scripts":{"lint":"standard --fix | snazzy","test":"npm run lint && tap","ci-lint":"npm run lint","test:file":"standard | snazzy && tap --no-cov","ci-test-cov":"tap","visualize-all":"node debug/visualize-all.js","ci-test-no-cov":"tap --no-cov","visualize-watch":"node debug/visualize-watch.js"},"_npmUser":{"name":"rafaelgss","email":"rafael.nunu@hotmail.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/clinicjs/node-clinic-heap-profiler.git","type":"git"},"_npmVersion":"8.1.2","description":"Programmable interface to Clinic.js Heap Profiler","directories":{},"_nodeVersion":"17.1.0","dependencies":{"pump":"^3.0.0","d3-fg":"^6.13.1","d3-array":"^2.0.2","fs-extra":"^9.0.1","d3-selection":"^1.3.2","on-net-listen":"1.1.2","querystringify":"^2.1.0","lodash.debounce":"^4.0.8","abort-controller":"^3.0.0","copy-to-clipboard":"^3.0.8","sinusoidal-decimal":"^1.0.0","@nearform/clinic-common":"^6.0.0","@nearform/heap-profiler":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^14.10.6","open":"^7.3.0","chalk":"^4.1.0","snazzy":"^8.0.0","fastify":"^3.7.0","ioredis":"^4.17.3","chokidar":"^3.4.2","standard":"^14.3.1","autocannon":"^6.5.0"},"_npmOperationalInternal":{"tmp":"tmp/clinic-heap-profiler_1.1.0_1636597673327_0.8568980576569047","host":"s3://npm-registry-packages"},"publish_time":1636597673512,"_cnpm_publish_time":1636597673512},"2.0.1":{"name":"@nearform/clinic-heap-profiler","version":"2.0.1","author":"","license":"MIT","_id":"@nearform/clinic-heap-profiler@2.0.1","maintainers":[{"name":"sameer13","email":"sameer13@gmail.com"},{"name":"jackmurdoch","email":"jack.murdoch@nearform.com"},{"name":"eamonn.frisby","email":"eamonn.frisby@nearform.com"},{"name":"leorossi","email":"leonardo.rossi@gmail.com"},{"name":"nigelhanlon","email":"nigel.hanlon@nearform.com"},{"name":"alan.slater","email":"alan.slater@nearform.com"},{"name":"davidefiorello","email":"davide@codeflyer.com"},{"name":"filippo.desantis","email":"filippo.desantis@gmail.com"},{"name":"jimmymintzer","email":"jimmymintzer@gmail.com"},{"name":"cianfoley_nearform","email":"cian.foley@nearform.com"},{"name":"mattrobinson","email":"matt.robinson@nearform.com"},{"name":"shogun_panda","email":"paolo@cowtech.it"},{"name":"shaunjbaker","email":"shaun@schb.co.uk"},{"name":"nearformer","email":"david.clements@nearform.com"},{"name":"davidmarkclements","email":"david.mark.clements@gmail.com"},{"name":"matteo.collina","email":"hello@matteocollina.com"},{"name":"conoro","email":"conor@conoroneill.com"},{"name":"mcdonnelldean","email":"mcdonnelldean@outlook.com"},{"name":"jasnell","email":"jasnell@gmail.com"},{"name":"simoneb","email":"simone.busoli@gmail.com"},{"name":"iamsw","email":"sjwilson89@gmail.com"},{"name":"donovanhutchinson","email":"donovan.hutchinson@nearform.com"},{"name":"joezo","email":"joezo156@googlemail.com"},{"name":"jackdclark","email":"jack@jackdc.com"},{"name":"lpww","email":"thomas.treffry@nearform.com"},{"name":"chrisdwheatley","email":"chriswheatley87@gmail.com"},{"name":"admataz","email":"adam@admataz.com"},{"name":"ckiss","email":"kissdevel@gmail.com"},{"name":"ovhemert","email":"hello@ovhemert.dev"},{"name":"fiacc","email":"fiaccobm@gmail.com"},{"name":"zimny","email":"piotr.zimoch@cloudaemons.com"},{"name":"irelandm","email":"mark.ireland@nearform.com"},{"name":"dublx","email":"luis.faustino@gmail.com"},{"name":"paolochiodi","email":"chiodi84@gmail.com"}],"homepage":"https://github.com/clinicjs/node-clinic-heap-profiler#readme","bugs":{"url":"https://github.com/clinicjs/node-clinic-heap-profiler/issues"},"tap":{"nyc-arg":["--exclude=test/*.js","--exclude=visualizer/d3.js","--exclude=visualizer/data-tree.js","--exclude=visualizer/no-data-node.js"]},"dist":{"shasum":"ebac9a28969c75bdac49ad827412fa948c2bfa27","tarball":"http://registry-npm.ywwl.com/@nearform/clinic-heap-profiler/download/@nearform/clinic-heap-profiler-2.0.1.tgz","fileCount":150,"integrity":"sha512-oPJUu7Hm+wSCEKfvDsDfX9VM+32Cipch2BAgkbc4TnUK25SMeiA8ZW7bZDPSpIbF3H7qyhLeOT1Z9JtTMyZe6w==","signatures":[{"sig":"MEUCIBqC+RbJCiCx5Ri6vqypZkseqyxYYqUigEnMLiFNHfQZAiEAmfNUyQACvtYE89gS/uM39CQfB9tEkR4nvmJVbzmob+0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":304056,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgnavuCRA9TVsSAnZWagAADS4P/0aqwiKPB4j3P2oqjwCN\nXxRFv1hDjM8Dsn7c1xvY4bo/L7rC3pq6wAq555mtwjSgbGlpf3yPJCG/vUL3\n7npM+Q+8dIUeEAJak2+9jtIgv5qKUt93O2qSjrcL/AGccUSGcCZmCq9/mUyL\nKARne5Ahr31QdCZ70N4w/Y506Io282dyR5/yil8iIEpAp/vecBdn8Bmd8QoL\nDfSDTOEaS9S3U01A9QEv70H30kaNo5L2v11G2HogPwVWkJ1zT0xIjhHlO/bN\nyDBFT887/fx3r4lQrGhxomnYJCPxCY+qA1TKGPip89SgjXAJ6WaoFQ8moY+c\nNjVWiLjodDPf6nCJ/kDO0iOb98Z0+eibrpOoogNx5nPCRT/i9dURIViwNfKI\nAQAHJ5fS9oOCZiEkWbFA3KUoz9LOyDxEssVEfs6dKMtPKoaY/8i6F2HiJRMr\nu/jY/Tok7ly7uiSodWnp8yx/Z0bpwk2zCQOVccKswEhzomcGZaHKcklmqIDf\nEkFQRv4ZjcKWJ+8xxvlx8PJXPChjVtVdK7+sXdFzJ/U3UDAdxEVBXbYNg93E\nGqKHw6Mvhzd3Azp6YoGDbOMwfFcW2iN/tdrRQfF0bBRUPsJjzSwLKYAtGFLd\n4F6I/YKEzsY0xhGtaHF75OmkUzHsCPXEFPgxdYUEaktCgYY1mWKmlAzlgPwK\nhUpo\r\n=fu8c\r\n-----END PGP SIGNATURE-----\r\n","size":102253,"noattachment":false,"key":"/@nearform/clinic-heap-profiler/-/@nearform/clinic-heap-profiler-2.0.1.tgz"},"main":"src/index.js","engines":{"node":">= 12.13.0"},"gitHead":"4b8551d87b94e7e598fc87f3ff3dc42e5781ae2a","scripts":{"lint":"standard --fix | snazzy","test":"npm run lint && tap","ci-lint":"npm run lint","test:file":"standard | snazzy && tap --no-cov","ci-test-cov":"tap","visualize-all":"node debug/visualize-all.js","ci-test-no-cov":"tap --no-cov","visualize-watch":"node debug/visualize-watch.js"},"_npmUser":{"name":"jasnell","email":"jasnell@gmail.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/clinicjs/node-clinic-heap-profiler.git","type":"git"},"_npmVersion":"6.14.12","description":"Programmable interface to Clinic.js Heap Profiler","directories":{},"_nodeVersion":"12.22.1","dependencies":{"pump":"^3.0.0","d3-fg":"^6.13.1","d3-array":"^2.0.2","fs-extra":"^9.0.1","d3-selection":"^1.3.2","on-net-listen":"1.1.2","querystringify":"^2.1.0","lodash.debounce":"^4.0.8","abort-controller":"^3.0.0","copy-to-clipboard":"^3.0.8","sinusoidal-decimal":"^1.0.0","@nearform/clinic-common":"^6.0.0","@nearform/heap-profiler":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^14.10.6","open":"^7.3.0","chalk":"^4.1.0","snazzy":"^8.0.0","fastify":"^3.7.0","ioredis":"^4.17.3","chokidar":"^3.4.2","standard":"^14.3.1","autocannon":"^6.5.0"},"_npmOperationalInternal":{"tmp":"tmp/clinic-heap-profiler_2.0.1_1620945902006_0.30744567013335344","host":"s3://npm-registry-packages"},"publish_time":1620945902257,"_cnpm_publish_time":1620945902257},"2.0.0":{"name":"@nearform/clinic-heap-profiler","version":"2.0.0","author":"","license":"MIT","_id":"@nearform/clinic-heap-profiler@2.0.0","maintainers":[{"name":"sameer13","email":"sameer13@gmail.com"},{"name":"jackmurdoch","email":"jack.murdoch@nearform.com"},{"name":"eamonn.frisby","email":"eamonn.frisby@nearform.com"},{"name":"leorossi","email":"leonardo.rossi@gmail.com"},{"name":"nigelhanlon","email":"nigel.hanlon@nearform.com"},{"name":"alan.slater","email":"alan.slater@nearform.com"},{"name":"davidefiorello","email":"davide@codeflyer.com"},{"name":"filippo.desantis","email":"filippo.desantis@gmail.com"},{"name":"jimmymintzer","email":"jimmymintzer@gmail.com"},{"name":"cianfoley_nearform","email":"cian.foley@nearform.com"},{"name":"mattrobinson","email":"matt.robinson@nearform.com"},{"name":"shogun_panda","email":"paolo@cowtech.it"},{"name":"shaunjbaker","email":"shaun@schb.co.uk"},{"name":"nearformer","email":"david.clements@nearform.com"},{"name":"davidmarkclements","email":"david.mark.clements@gmail.com"},{"name":"matteo.collina","email":"hello@matteocollina.com"},{"name":"conoro","email":"conor@conoroneill.com"},{"name":"mcdonnelldean","email":"mcdonnelldean@outlook.com"},{"name":"jasnell","email":"jasnell@gmail.com"},{"name":"simoneb","email":"simone.busoli@gmail.com"},{"name":"iamsw","email":"sjwilson89@gmail.com"},{"name":"donovanhutchinson","email":"donovan.hutchinson@nearform.com"},{"name":"joezo","email":"joezo156@googlemail.com"},{"name":"jackdclark","email":"jack@jackdc.com"},{"name":"lpww","email":"thomas.treffry@nearform.com"},{"name":"chrisdwheatley","email":"chriswheatley87@gmail.com"},{"name":"admataz","email":"adam@admataz.com"},{"name":"ckiss","email":"kissdevel@gmail.com"},{"name":"ovhemert","email":"hello@ovhemert.dev"},{"name":"fiacc","email":"fiaccobm@gmail.com"},{"name":"zimny","email":"piotr.zimoch@cloudaemons.com"},{"name":"irelandm","email":"mark.ireland@nearform.com"},{"name":"dublx","email":"luis.faustino@gmail.com"},{"name":"paolochiodi","email":"chiodi84@gmail.com"}],"homepage":"https://github.com/clinicjs/node-clinic-heap-profiler#readme","bugs":{"url":"https://github.com/clinicjs/node-clinic-heap-profiler/issues"},"tap":{"nyc-arg":["--exclude=test/*.js","--exclude=visualizer/d3.js","--exclude=visualizer/data-tree.js","--exclude=visualizer/no-data-node.js"]},"dist":{"shasum":"4a2f01efb0a222a7cf3a0e365039896024169f95","tarball":"http://registry-npm.ywwl.com/@nearform/clinic-heap-profiler/download/@nearform/clinic-heap-profiler-2.0.0.tgz","fileCount":150,"integrity":"sha512-KWtMEXRZQonVTm4Th1ftWwh30W2qgubTFs9c5OJ0DvnlLUgloI0Apv9W75+r7EUsj5Egg5fEHsrPqsYSmJQSTw==","signatures":[{"sig":"MEUCIQDWPXth9hTI33QiMGhKPeTVZ9MjBiMgrPHiXsSFtf0dfwIgQY5jEyX0bw7FkGTWdKqVy13DRnCf4j5GNm3jMR/31Cw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":304056,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgnaQzCRA9TVsSAnZWagAA3tQQAIUnC7LKqFoipcP6imKx\n7vVFkkrAeEF0tKZh8f+7uW/MgEl9agziPfVxDQz8a3s7jJuD73gQxWCbZYEb\nymsKE2t5hqhxZCyDzwke+x/fF84DX0GGJOpNY5H/wUcRyjdcQDlfT/yyKk5J\nIogEu7qqmY+WzcWqPw9PogY37+FEZBZvfedxTlbRn4CMjZSReN+3+Dd/mSNz\n1N6qKzQIpxPwD5z+QVYtWbT82N2uMSUWeM1Dk1zJC6qbzN2aEKx7H7wHgzcH\njn+xbuatwCOVGjF2PwNFiwsIuof46BhNtE5iBW+gYv0eMGY4nDX9rr0kNhRg\niAcDvC31tp26OAzBP74QReWuHZv3vBT5OtdIpT67T5q3tfY2uBjDa6uWkkUl\nRg3wJ7W+TuIZBMqc8Hn58WAPrA+2Nvb1sZzRH7yuKywOuuMtocaSZKOcAKCR\nqRRB6tSnSOUe/e0gl4w1B/d6Qzc/ZL+53/KZOAvBVx5RbkxJ+Iwty6BSeWos\nzYA9qXwVQ8sZAz9f3S5qZ5eda8tTmej0GLc6a3O/Ii4OSkRCLGmVXodZbCRU\n0f3Z1WxAjOsddSfAqJJC4u99nf5qRDe/I4zj3eHMNzE5CQxVtahEYoPZTzud\n3K6qH3EJ5hcXTGZvaHnMY1NTGSrUUcYASdY24DuoTPk5V6LUBQg6c9wT1ich\nr4rf\r\n=ehjY\r\n-----END PGP SIGNATURE-----\r\n","size":102248,"noattachment":false,"key":"/@nearform/clinic-heap-profiler/-/@nearform/clinic-heap-profiler-2.0.0.tgz"},"main":"src/index.js","engines":{"node":">= 12.13.0"},"gitHead":"4b8551d87b94e7e598fc87f3ff3dc42e5781ae2a","scripts":{"lint":"standard --fix | snazzy","test":"npm run lint && tap","ci-lint":"npm run lint","test:file":"standard | snazzy && tap --no-cov","ci-test-cov":"tap","visualize-all":"node debug/visualize-all.js","ci-test-no-cov":"tap --no-cov","visualize-watch":"node debug/visualize-watch.js"},"_npmUser":{"name":"jasnell","email":"jasnell@gmail.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/clinicjs/node-clinic-heap-profiler.git","type":"git"},"_npmVersion":"6.14.12","description":"Programmable interface to Clinic.js Heap Profiler","directories":{},"_nodeVersion":"12.22.1","dependencies":{"pump":"^3.0.0","d3-fg":"^6.13.1","d3-array":"^2.0.2","fs-extra":"^9.0.1","d3-selection":"^1.3.2","on-net-listen":"1.1.2","querystringify":"^2.1.0","lodash.debounce":"^4.0.8","abort-controller":"^3.0.0","copy-to-clipboard":"^3.0.8","sinusoidal-decimal":"^1.0.0","@nearform/clinic-common":"^6.0.0","@nearform/heap-profiler":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^14.10.6","open":"^7.3.0","chalk":"^4.1.0","snazzy":"^8.0.0","fastify":"^3.7.0","ioredis":"^4.17.3","chokidar":"^3.4.2","standard":"^14.3.1","autocannon":"^6.5.0"},"_npmOperationalInternal":{"tmp":"tmp/clinic-heap-profiler_2.0.0_1620943922702_0.42758959451481116","host":"s3://npm-registry-packages"},"publish_time":1620943923681,"_cnpm_publish_time":1620943923681}},"readme":"# Clinic.js Heap Profiler\n\n[![npm version][npm-version]][npm-url] [![Stability Stable][stability-stable]][stability-docs] [![Github Actions build status][actions-status]][actions-url]\n[![Downloads][npm-downloads]][npm-url] [![Code style][lint-standard]][lint-standard-url]\n\nProgrammable interface to [Clinic.js][clinic-url] Heap Profiler. Learn more about Clinic.js: https://clinicjs.org/\n\n## Installation\n\n```console\nnpm i -S @nearform/clinic-heap-profiler\n```\n\n## Supported node versions\n\n- Node.js 10 and above\n\n## Example\n\n```js\nconst ClinicHeapProfiler = require('@nearform/clinic-heap-profiler')\nconst heapProfiler = new ClinicHeapProfiler()\n\nheapProfiler.collect(['node', './path-to-script.js'], function (err, filepath) {\n  if (err) throw err\n\n  heapProfiler.visualize(filepath, filepath + '.html', function (err) {\n    if (err) throw err\n  })\n})\n```\n\n## Documentation\n\n```js\nconst ClinicHeapProfiler = require('@nearform/clinic-heap-profiler')\nconst heapProfiler = new ClinicHeapProfiler()\n```\n\n### new ClinicHeapProfiler([settings])\n\n- settings [`<Object>`][]\n  - detectPort [`<boolean>`][] **Default**: false\n  - collectOnFailure [`<boolean>`][] If set to true, the collected data will be returned even if the process exits with non-zero code.\n    **Default**: false\n  - debug [`<boolean>`][] If set to true, the generated html will not be minified.\n    **Default**: false\n  - dest [`<String>`][] The file where the collected data is stored.\n    **Default**: `./.clinic/<process.pid>.clinic-heapprofile`\n\n#### `heapProfiler.collect(args, callback)`\n\nStarts a process by using [@nearform/heap-profiler](https://github.com/nearform/heap-profiler).\n\nThe process sampling is started as soon as the process starts. The filepath with collected data will be the value in the callback.\n\n`stdout`, `stderr`, and `stdin` will be relayed to the calling process.\n\nThe sampling is stopped and data collected right before the process exits.\n\nIf you want to collect data earlier, you can send the process a `SIGINT` or, if `detectPort` is `true`, you can call `heapProfiler.stopViaIPC()`.\n\n#### `heapProfiler.visualize(dataFilename, outputFilename, callback)`\n\nWill consume the datafile specified by `dataFilename`, this datafile will be\nproduced by the sampler using `heapProfiler.collect`.\n\n`heapProfiler.visualize` will then output a standalone HTML file to `outputFilename`.\nWhen completed the `callback` will be called with no extra arguments, except a\npossible error.\n\n#### `heapProfiler.stopViaIPC()`\n\nWhen the profiler is started with `detectPort=true`, the profiler establish a TCP based IPC communication.\n\nThis method can therefore be called to collect the data at any time.\n\nIf no TCP channel is opened or available, the method will perform no operation so it is safe to call at all times.\n\n## Examples\n\nSee the `examples` folder. All example should be run from the repository main folder:\n\n```sh\nnode examples/redis-web-service\n```\n\nEach `index.js` will contain any specific setup step required by the example, if any.\n\n## License\n\n[MIT](LICENSE)\n\n[stability-stable]: https://img.shields.io/badge/stability-stable-green.svg?style=flat-square\n[stability-docs]: https://nodejs.org/api/documentation.html#documentation_stability_index\n[npm-version]: https://img.shields.io/npm/v/@nearform/clinic-heap-profiler.svg?style=flat-square\n[npm-url]: https://www.npmjs.org/@nearform/clinic-heap-profiler\n[npm-downloads]: http://img.shields.io/npm/dm/@nearform/clinic-heap-profiler.svg?style=flat-square\n[lint-standard]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square\n[lint-standard-url]: https://github.com/feross/standard\n[clinic-url]: https://github.com/clinicjs/node-clinic\n[`<object>`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object\n[`<number>`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number\n[`<boolean>`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type\n[`<string>`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String\n[actions-status]: https://github.com/clinicjs/node-clinic-flame/workflows/CI/badge.svg\n[actions-url]: https://github.com/clinicjs/node-clinic-flame/actions\n","_attachments":{},"homepage":"https://github.com/clinicjs/node-clinic-heap-profiler#readme","bugs":{"url":"https://github.com/clinicjs/node-clinic-heap-profiler/issues"},"license":"MIT"}