{"name":"@nearform/bubbleprof","version":"6.0.0","keywords":[],"license":"MIT","_id":"@nearform/bubbleprof@6.0.0","maintainers":[{"name":"admataz","email":"adam@admataz.com"},{"name":"iamsw","email":"sjwilson89@gmail.com"},{"name":"alan.slater","email":"alan.slater@nearform.com"},{"name":"mattrobinson","email":"matt.robinson@nearform.com"},{"name":"davidmarkclements","email":"david.mark.clements@gmail.com"},{"name":"matteo.collina","email":"hello@matteocollina.com"},{"name":"jasnell","email":"jasnell@gmail.com"},{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"homepage":"https://github.com/nearform/node-clinic-bubbleprof#readme","bugs":{"url":"https://github.com/nearform/node-clinic-bubbleprof/issues"},"dist":{"shasum":"66d6b770c368ac86a03774b4190417d5a358fbf9","tarball":"http://registry-npm.ywwl.com/@nearform/bubbleprof/download/@nearform/bubbleprof-6.0.0.tgz","fileCount":179,"integrity":"sha512-Kuj6I24ndR27oeTgctt/Tt74WQJxQkqq02NJwr6c58Vc9TxiWeL8JIrkr7fsFeRzX26dd4pH+/p/GDgzMxxyCg==","signatures":[{"sig":"MEUCIQCzj8IDUebaXb1eZrzALyEJ1VQLkP+fWc5YluJl1Gq7NgIgSAM8g+9aaO/m1u9ekfvfj4H742wR6YjliMRrqRDdShM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1442274,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfvZtsCRA9TVsSAnZWagAA1sgP/iF7BhdNEXlQ+h7+ypEN\nLPDOoeTDpr1J0WjrNvdYQx02vrwrCO12A276l8aUlhagDynESbAM+siTc++C\nfZ13WbW5eKoVIvn72Foe6J4tAIPckuYgZ38fiVAKpkU8sQx5Vm31By0EBjlU\nSK2Edmi3G74x4MllboafBth0Ppe+mUrhnfP27DaXSn6VL5oUCpZ34I6pb/JQ\nFarr9+W8nh1tpGQF6UsND01PU13Zx7evUGb5bZRI9L+XTug3xju3Ef2UV+4v\nq+yf/vk37DeoX92gImdabtXQf/IbggLHQj6pX4gP1L2CJzjVXIcZ5udTBser\nro61GeyRXZ0iFijflXmHVzQJk1oCakNq7mj/D50xK1ACb9Ji9TJs6wUsPCfJ\ne71peN5A/0n26i/+NgtdW51MLv5PuJfJq9xDS8ONpL9KcRxYemz4Rtz/3uMw\nGxFRopKLPiSe6yRAOwZxk/DYrp2I7rjtGsSg67Fz+N8V8rBhfHlz+0AqIzQz\n9wVKE6+nlze9BaG5Shu4VqJcTkOU9yefVgdP3wGXclZMfDopwvnrCJVekOyY\nJeZZLlkMwRXBVfLELhW1WW/CwothuvmJ5aAomXMQnPnrSHPtvNBwc7dIMSqg\nlnhCFLFXwBIVrl+8hpu+bCfzcfBfDjWaTmzF5NTqXM8Ogxrkgo51chLK2gT6\ngls+\r\n=JSGf\r\n-----END PGP SIGNATURE-----\r\n","size":351549,"noattachment":false,"key":"/@nearform/bubbleprof/-/@nearform/bubbleprof-6.0.0.tgz"},"engines":{"node":">=10.12.0"},"gitHead":"8ac11c4cf4feddce7fbdfd701dbccbf8d59f0662","scripts":{"lint":"standard --fix | snazzy","test":"standard | snazzy && tap -j1 --no-cov --timeout=50 test/*.test.js","ci-cov":"tap -j1 --statements=95 --branches=90 --functions=95 --lines=98 --timeout=60 test/*.test.js","ci-lint":"standard | snazzy","ci-test":"tap -j1 --timeout=50 test/*.test.js","test:file":"standard | snazzy && tap -j1 --no-cov --timeout=50","visualize-all":"node debug/visualize-all.js","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/nearform/node-clinic-bubbleprof.git","type":"git"},"_npmVersion":"7.0.8","description":"Programmable interface to Clinic.js Bubbleprof","directories":{},"_nodeVersion":"15.1.0","dependencies":{"pump":"^3.0.0","async":"^3.0.1","lodash":"^4.14.0","mkdirp":"^1.0.0","d3-axis":"^2.0.0","d3-drag":"^2.0.0","d3-ease":"^2.0.0","d3-time":"^2.0.0","d3-color":"^2.0.0","d3-scale":"^3.2.3","d3-shape":"^2.0.0","endpoint":"^0.4.5","d3-format":"^2.0.0","d3-selection":"^2.0.0","array-flatten":"^3.0.0","d3-transition":"^2.0.0","minify-stream":"^2.0.1","on-net-listen":"^1.0.0","d3-interpolate":"^2.0.1","d3-time-format":"^3.0.0","protocol-buffers":"^4.0.4","@nearform/clinic-common":"^5.0.0","@nearform/node-trace-log-join":"2.0.0-0","@nearform/trace-events-parser":"^1.0.4"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^14.11.0","rimraf":"^3.0.0","semver":"^7.0.0","snazzy":"^9.0.0","express":"^4.16.2","chokidar":"^3.4.3","standard":"^16.0.3","startpoint":"^0.3.2","inspectpoint":"^0.2.2","shuffle-array":"^1.0.1","cross-platform-sock":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/bubbleprof_6.0.0_1606261612368_0.5581067292533883","host":"s3://npm-registry-packages"},"readme":"# Clinic.js Bubbleprof\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/nearform/node-clinic-bubbleprof.svg)](https://greenkeeper.io/)\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] Bubbleprof. Learn more about Clinic.js: https://clinicjs.org/\n\n![Screenshot](screenshot.png)\n\n## Supported node versions\n\n* Node.js 10.0.0 and above\n* Node.js 9.4.0 and above\n* Node.js 8.10.0 and above\n\n## Example\n\n```js\nconst ClinicBubbleprof = require('@nearform/bubbleprof')\nconst bubbleprof = new ClinicBubbleprof()\n\nbubbleprof.collect(['node', './path-to-script.js'], function (err, filepath) {\n  if (err) throw err\n\n  bubbleprof.visualize(filepath, filepath + '.html', function (err) {\n    if (err) throw err\n  })\n})\n```\n\nTo get started with Clinic.js Bubbleprof you might want to take a look at the [examples\nrepo](https://github.com/clinicjs/node-clinic-bubbleprof-examples).\n\n## Documentation\n\n```js\nconst ClinicBubbleprof = require('@nearform/bubbleprof')\nconst bubbleprof = new ClinicBubbleprof()\n```\n\n### new ClinicBubbleprof([settings])\n\n* settings [`<Object>`][]\n  * detectPort [`<boolean>`][] **Default**: false\n  * debug [`<boolean>`][] If set to true, the generated html will not be minified.\n    **Default**: false\n  * dest [`<String>`][] The folder where the collected data is stored.\n    **Default**: '.'\n\n#### `bubbleprof.collect(args, callback)`\n\nStarts a process by using:\n\n```js\nconst { spawn } = require('child_process')\nspawn(args[0], ['-r', 'sampler.js'].concat(args.slice(1)))\n```\n\nThe injected sampler will produce a file in the current working directory, with\nthe process `PID` in its filename. The filepath relative to the current working\ndirectory will be the value in the callback.\n\nstdout, stderr, and stdin will be relayed to the calling process. As will the\n`SIGINT` event.\n\n#### `bubbleprof.visualize(dataFilename, outputFilename, callback)`\n\nWill consume the data file specified by `dataFilename`, this data file will be\nproduced by the sampler using `bubbleprof.collect`.\n\n`bubbleprof.visualize` will then output a standalone HTML file to\n`outputFilename`. When completed the callback will be called with no extra\narguments, except a possible error.\n\n## License\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/bubbleprof.svg?style=flat-square\n[npm-url]: https://www.npmjs.org/@nearform/bubbleprof\n[npm-downloads]: http://img.shields.io/npm/dm/@nearform/bubbleprof.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[`<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-bubbleprof/workflows/CI/badge.svg\n[actions-url]: https://github.com/clinicjs/node-clinic-bubbleprof/actions\n","publish_time":1606261612550,"_cnpm_publish_time":1606261612550,"dist-tags":{"latest":"7.0.1","next":"2.0.0-beta.0"}}