{"name":"@nearform/bubbleprof","version":"2.0.0-beta.0","keywords":[],"license":"GPL-3.0-or-later","_id":"@nearform/bubbleprof@2.0.0-beta.0","maintainers":[{"name":"alan.slater","email":"alan.slater@nearform.com"},{"name":"cuginoale","email":"alessio.carnevale@gmail.com"},{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},{"name":"goto-bus-stop","email":"renee@kooi.me"},{"name":"iamsw","email":"sjwilson89@gmail.com"},{"name":"jasnell","email":"jasnell@gmail.com"},{"name":"kamil-mech","email":"kamil.mech@nearform.com"},{"name":"mafintosh","email":"mathiasbuus@gmail.com"},{"name":"matteo.collina","email":"hello@matteocollina.com"},{"name":"mattrobinson","email":"matt.robinson@nearform.com"}],"homepage":"https://github.com/nearform/node-clinic-bubbleprof#readme","bugs":{"url":"https://github.com/nearform/node-clinic-bubbleprof/issues"},"dist":{"shasum":"e383d2034dcefbb06d6f0bfe587491a35fde71bf","tarball":"http://registry-npm.ywwl.com/@nearform/bubbleprof/download/@nearform/bubbleprof-2.0.0-beta.0.tgz","fileCount":182,"integrity":"sha512-NZo/coHBQEPFi+aD9lFKD0R7C4UJ3iYS8jULDsAJ1edXv80A8jGN9zpL8MHHBSLqyqWcILjiqTLgRSDQUsZXBA==","signatures":[{"sig":"MEUCIDn4QYng0gvflcL+TW5z1/gHNlhjPT+fFrAK1phbjqbCAiEA9GQ5KzXwzCwUno9sEnyDxPBcoJPCtUzm1q0Cx3v4snk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1430352,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcXFH6CRA9TVsSAnZWagAAdSMP/RaVhfz7L8nay6q0wqF1\nMRXbdhPJnr3Ik+FyPMfi+TITUvVdElA/ZszfUAkHimyNG0ogyBlx5zDuMJMX\n4Zy/J2pAcVl/JqjoygayXMmNWDB6at8gjvZlejalRhx2GlN69wrihe1R3JQn\nGdVtYC/ONodwjyJvnlTdeN7dB69R7hmvJSP0LjsG7RdYcMpr/yqXMqf6H+yT\nGf/KOUzPZRDSkHmjlNHxjO5AUzJKzEWNAhIlRcJIOO0apcNu/7AsfffIQrxH\nPtHlkYlvH+6EOJl+u0fKe3mas5v2axjhXH8FQcea4SQj8k/kc9mBdHjWLAxa\n77N9gaPr0gB0vVPNXX8FtSDO/k4Xu/QX++KCvN/190LxwdAs+WUHipDOZ3AV\n4rZhyrHZYZmk0F7gwCeuKAkSjOtuIYQKgGKVXXT+WQSels/fnyGDK/zHbuv4\nikNiGZa2v6a3J1MB1WtA3UPd9LlQaF3bPOqd1KT+zhFRNhH/NYGjY1u/TG+q\nq2Oiq+nuCnrqiC4tKt15ozHLwg+LmNilWUgMrz2HuhE0SZRipDDU23DIr+HV\nivQQe5s1KZ9CHOxtJJIibFbR1HvhgSyDjHruPDuMLBoDNtKj3oycFsemlkPW\n5Mmpcf8/u+nLIVmRrFMumg6c/S0wXACIaWLNu3zl3qHO+LbQCqSkQ3np0dzr\nlPZD\r\n=CgWS\r\n-----END PGP SIGNATURE-----\r\n","size":319387,"noattachment":false,"key":"/@nearform/bubbleprof/-/@nearform/bubbleprof-2.0.0-beta.0.tgz"},"readme":"# node-clinic-bubbleprof\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/nearform/node-clinic-bubbleprof.svg)](https://greenkeeper.io/)\n\n[![npm version][npm-version]][npm-url] [![Stability Stable][stability-stable]][stability-docs] [![azureCI build status][azure-status]][azure-url]\n[![Downloads][npm-downloads]][npm-url] [![Code style][lint-standard]][lint-standard-url]\n\nProgrammable interface to [clinic][clinic-url] bubbleprof. Learn more about clinic: https://clinicjs.org/\n\n![banner](logo.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 bubbleprof you might want to take a look at the [examples\nrepo](https://github.com/nearform/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[GPL 3.0](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/nearform/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[azure-status]: https://dev.azure.com/node-clinic/node-clinic/_apis/build/status/nearform.node-clinic-bubbleprof\n[azure-url]: https://dev.azure.com/node-clinic/node-clinic/_apis/build/status/nearform.node-clinic-bubbleprof?branchName=master\n","engines":{"node":"^11.0.0 || ^10.0.0 || ^8.11.1"},"gitHead":"3082b16f9ccdfaa4b380c7e5ed169a94eb4421cf","scripts":{"lint":"standard --fix | snazzy","test":"standard | snazzy && tap --no-cov --timeout=50 test/*.test.js","ci-cov":"tap --statements=95 --timeout=60 test/*.test.js","ci-lint":"standard | snazzy","ci-test":"tap --timeout=50 test/*.test.js","visualize-all":"node debug/visualize-all.js","visualize-watch":"node debug/visualize-watch.js"},"_npmUser":{"name":"goto-bus-stop","email":"renee@kooi.me"},"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":"6.7.0","description":"Programmable interface to clinic bubbleprof","directories":{},"_nodeVersion":"11.9.0","dependencies":{"pump":"^3.0.0","async":"^2.5.0","lodash":"^4.14.0","mkdirp":"^0.5.1","terser":"^3.10.11","d3-axis":"^1.0.8","d3-drag":"^1.2.3","d3-ease":"^1.0.3","d3-time":"^1.0.8","d3-scale":"^2.1.0","d3-shape":"^1.2.0","endpoint":"^0.4.5","d3-format":"^1.3.0","d3-selection":"^1.3.0","loose-envify":"^1.4.0","array-flatten":"^2.1.1","d3-transition":"^1.1.1","on-net-listen":"^1.0.0","d3-interpolate":"^1.2.0","d3-time-format":"^2.1.1","protocol-buffers":"^4.0.4","node-trace-log-join":"^1.0.0","@nearform/clinic-common":"^1.5.0","@nearform/trace-events-parser":"^1.0.4"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tap":"^12.0.0","rimraf":"^2.6.2","snazzy":"^8.0.0","express":"^4.16.2","chokidar":"^2.0.4","standard":"^12.0.0","startpoint":"^0.3.2","inspectpoint":"^0.2.2","shuffle-array":"^1.0.1","cross-platform-sock":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/bubbleprof_2.0.0-beta.0_1549554169492_0.4175515732839732","host":"s3://npm-registry-packages"},"publish_time":1549554169741,"_cnpm_publish_time":1549554169741,"dist-tags":{"latest":"7.0.1","next":"2.0.0-beta.0"}}