{"name":"@clinic/bubbleprof","description":"Programmable interface to Clinic.js Bubbleprof","repository":{"type":"git","url":"git+https://github.com/clinicjs/node-clinic-bubbleprof.git"},"version":"9.0.0","scripts":{"test":"standard | snazzy && tap --no-cov test/*.test.js","test:file":"standard | snazzy && tap --no-cov","ci-lint":"standard | snazzy","ci-test":"tap test/*.test.js","ci-cov":"tap test/*.test.js","lint":"standard --fix | snazzy","visualize-watch":"node debug/visualize-watch.js","visualize-all":"node debug/visualize-all.js"},"devDependencies":{"chokidar":"^3.4.3","cross-platform-sock":"^1.0.0","express":"^4.16.2","inspectpoint":"^0.2.2","rimraf":"^3.0.0","semver":"^7.0.0","shuffle-array":"^1.0.1","snazzy":"^9.0.0","standard":"^16.0.3","startpoint":"^0.3.2","tap":"^15.0.10"},"keywords":[],"license":"MIT","dependencies":{"@clinic/clinic-common":"^7.0.0","@clinic/node-trace-log-join":"^2.0.0","@clinic/trace-events-parser":"^2.0.0","array-flatten":"^3.0.0","async":"^3.0.1","d3-axis":"^1.0.8","d3-color":"^1.4.0","d3-drag":"^1.2.3","d3-ease":"^1.0.3","d3-format":"^1.3.0","d3-interpolate":"^1.2.0","d3-scale":"^3.0.0","d3-selection":"^1.3.0","d3-shape":"^1.2.0","d3-time":"^1.0.8","d3-time-format":"^2.1.1","d3-transition":"^1.1.1","endpoint":"^0.4.5","lodash":"^4.14.0","minify-stream":"^2.0.1","mkdirp":"^1.0.0","on-net-listen":"^1.0.0","protocol-buffers":"^4.0.4","pump":"^3.0.0"},"gitHead":"75add0b8eddc2d5583ff15cdc0bda7fc9c71ffd9","bugs":{"url":"https://github.com/clinicjs/node-clinic-bubbleprof/issues"},"homepage":"https://github.com/clinicjs/node-clinic-bubbleprof#readme","_id":"@clinic/bubbleprof@9.0.0","_nodeVersion":"18.7.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-V7pvCBj1JltGBTvrPY+sfVwbdi8CxnaqRggtz21Skpe1tWdJkO4eTt0eoEWsEv0h7Xv9a64VHAbLCmISmfqGkg==","shasum":"5726be6bf1fe738166145c130789f6df30bba5fa","tarball":"http://registry-npm.ywwl.com/@clinic/bubbleprof/download/@clinic/bubbleprof-9.0.0.tgz","fileCount":184,"unpackedSize":1441414,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCl/1LbSFpAfwJ8EqA+MyAclB6Tm8kNAt7JUh2OkqwvgwIhAJ9l5m7qbOyD4PkDKC1bXuY4Tyb9HgGVMH93zA6vwI1W"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjCL7AACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpTNA/9GvksNSkx+gWYMaapeMBIE4zTiVZP6ItJoa/mtOp3gwJi7SLL\r\nVQQSb1ecUX/l8VJW7fw+TuSFtbOLSYO4MuLPvSCmQ5bltORQhMieYJ7bhyc0\r\nugrWsTR0STgTbxw7m42m1Em1JbGx/NpoEet+gTTk/dfUbmqtL6u27FH96WZh\r\nG6lZqLv2NjVfwKJgx6sJyWDM0BynhL6AK/aYJdXqD65eJ+8v2Ezajt1rEFIL\r\nksP/CFh4fflsIeo342eKGgTD2xVF6UluU3nqlIamFXMhQfbkj7Dd+6n1cPOE\r\nJpFa+qaA2Zk7XOPuXaEw5mEGI/D/YW68URgQy+rcojJQIGTAyurAWX4gkIHv\r\nDQQ7CcvA7bzWd27J3DmWWLs02TcxhBkY/OxTx/J+1kazEVMUN68KsNIH/Eka\r\nf425lsz5LKD3vjX2kNGTCiWj58mZT82zDvFX170CfU1dU9WYaKm3tg/+WUkX\r\n0kMnmpexbW4YE3Suhuo7UrSQLgjuKbk3GlKQg/6/KYILqEC25ix3ohKv33sM\r\nKJQEvnXCAgIYp2tU4EGSt8QHTbT52ntW4g/VaDcqWH8+0aRa3ksXCCYWHswA\r\nvdVqvMuHrSCYJWwhFMiKcorOXu936q7lunLnelUOxfiENtwq+vX03pTmF+Az\r\nUQ+Q9j+Yqfq5ABl4DXUK6S9v4TmWTIA9R/Q=\r\n=ksbW\r\n-----END PGP SIGNATURE-----\r\n","size":348280,"noattachment":false,"key":"/@clinic/bubbleprof/-/@clinic/bubbleprof-9.0.0.tgz"},"_npmUser":{"name":"rafaelgss","email":"rafael.nunu@hotmail.com"},"directories":{},"maintainers":[{"name":"jasnell","email":"jasnell@gmail.com"},{"name":"matteo.collina","email":"hello@matteocollina.com"},{"name":"simoneb","email":"simone.busoli@gmail.com"},{"name":"rafaelgss","email":"rafael.nunu@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bubbleprof_9.0.0_1661517504462_0.061108925652183066"},"_hasShrinkwrap":false,"readme":"# Clinic.js Bubbleprof\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/clinicjs/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## Issues\n\nTo open an issue, please use the [main repository](https://github.com/clinicjs/node-clinic) with the `bubbleprof` label.\n\n## Installation\n\n```console\nnpm i -S @clinic/bubbleprof\n```\n\n## Supported node versions\n\n* Node.js 16 and above\n\n## Example\n\n```js\nconst ClinicBubbleprof = require('@clinic/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('@clinic/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/@clinic/bubbleprof.svg?style=flat-square\n[npm-url]: https://www.npmjs.org/@clinic/bubbleprof\n[npm-downloads]: http://img.shields.io/npm/dm/@clinic/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":1661517504851,"_cnpm_publish_time":1661517504851,"dist-tags":{"latest":"10.0.0"}}