{"name":"@clinic/flame","version":"11.0.2","engines":{"node":">= 12.13.0"},"description":"Programmable interface to Clinic.js Flame","repository":{"type":"git","url":"git+https://github.com/clinicjs/node-clinic-flame.git"},"main":"index.js","scripts":{"visualize-watch":"node debug/visualize-watch.js","visualize-all":"node debug/visualize-all.js","test":"npm run lint && tap","test:file":"standard | snazzy && tap --no-cov","ci-lint":"npm run lint","ci-test-cov":"tap","ci-test-no-cov":"tap --no-cov","lint":"standard --fix | snazzy"},"tap":{"nyc-arg":["--exclude=test/*.js","--exclude=shared.js","--exclude=visualizer/d3.js","--exclude=visualizer/data-tree.js","--exclude=visualizer/no-data-node.js"]},"author":"","license":"MIT","dependencies":{"@clinic/clinic-common":"^7.0.0","0x":"^5.0.0","copy-to-clipboard":"^3.0.8","d3-array":"^2.0.2","d3-fg":"^6.13.1","d3-selection":"^1.3.2","flame-gradient":"^1.0.0","lodash.debounce":"^4.0.8","pump":"^3.0.0","querystringify":"^2.1.0","rimraf":"^3.0.2"},"devDependencies":{"chokidar":"^3.4.3","murmur3hash-wasm":"1.0.1","snazzy":"^9.0.0","standard":"^16.0.3","tap":"^16.0.0"},"gitHead":"eccbf43c841e025c078edabe3ad4664d66c2cdc2","bugs":{"url":"https://github.com/clinicjs/node-clinic-flame/issues"},"homepage":"https://github.com/clinicjs/node-clinic-flame#readme","_id":"@clinic/flame@11.0.2","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"integrity":"sha512-HwKe2+KzExoCfO59m4Wap0A99R7UAdrCvIgmrmgMw3hQ8xI1VsvfZLn9RUWLoA2CbwDm9IX8VHoFKu7qBmmaQA==","shasum":"57e25f635edede6e80ab6d2d4162fa7fddbbcedc","tarball":"http://registry-npm.ywwl.com/@clinic/flame/download/@clinic/flame-11.0.2.tgz","fileCount":172,"unpackedSize":419512,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiKO12ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr5xhAAgB/+swebWo4kR4E6eW961e66Xm4gSmqtY414kIDZi+XzEjz6\r\nwZSxLUPp8veCk1grdVb9Mx82gBcQ53o/GDaqjxpLGwZ4Ug29ir5nxRuZi/Gr\r\nmGX5/noST7vYrytxpM11oTzafAyJ36njH70iviDBbOCYrK1xgrDWQ/GFwUxm\r\nqkVlWXRQ6e5BmHhdeoPxD4cPMSzu5R6IVQOHrEQRit6PyZgBBKqIv/RF73/M\r\nFO4DA2htx8Uys6Tl+45amrL7Ifzlv2wkO5aYRCLyOC855ceSjmcOU9gY6yyD\r\nMVzRdDBMkFG/sn3P1gy3swL1FpTo/CgdVH9M84/XPfyUnf0OdnE9z0+3aDpi\r\nXnFHXYqvYbcmJ61sX40J4qYHVkS9ZuwTOtk/Ek9HyerrwGJrPCQnvLxcrAxu\r\n752006KjOkyAi6ItZgoCsp3dCRMaQPm/j+jNxQd4Gi+5Qk3KTtmFwrrdg38e\r\nLYzQP/5GZNWDdqpCsXiSmp78Uhs1gZTsOm/YgyU76HBzHDAUj/BzL7aOgJNf\r\nkNMcDn7vnd6vclTGRcBUr0R66+R0fnGOPOT5/sJww5yHW8nibHwZFC6TBrS6\r\n8uX+JV3jSsYH1iujDWOOr6rPO0q+QpMTzSlCqLCLn4QjJzpf/okJ0e5pDxjf\r\nPJcUV9bBqXHpT2XE6l85wc+ksIzaKXzsk/M=\r\n=O4MP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCcyCUoU2rEypK9PG5IfLOjEuYVvEWoorjUOE6JrUINuAIhAJu3NqIcj7B/25USvePo4gOwzc8tZ2LeYNBRwWNGAbLX"}],"size":183901,"noattachment":false,"key":"/@clinic/flame/-/@clinic/flame-11.0.2.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/flame_11.0.2_1646849398720_0.9684880713483826"},"_hasShrinkwrap":false,"readme":"# Clinic.js Flame\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] Flame. 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 `flame` label.\n\n## Installation\n\n```\nnpm i -S @clinic/flame\n```\n\n## Supported node versions\n\n* Node.js 16 and above\n\n## Example\n\n```js\nconst ClinicFlame = require('@clinic/flame')\nconst flame = new ClinicFlame()\n\nflame.collect(['node', './path-to-script.js'], function (err, filepath) {\n  if (err) throw err\n\n  flame.visualize(filepath, filepath + '.html', function (err) {\n    if (err) throw err\n  })\n})\n```\n\n## Documentation\n\n```js\nconst ClinicFlame = require('@clinic/flame')\nconst flame = new ClinicFlame()\n```\n\n### new ClinicFlame([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  * kernelTracing [`<boolean>`][] If set to true, it will use `linux_perf` to profile the application.\n    (available only on linux) **Default**: false\n\n#### `flame.collect(args, callback)`\n\nStarts a process by using [0x](https://github.com/davidmarkclements/0x)\n\n0x will produce a file in the current working directory, with the process PID in\nits filename. The filepath relative to the current working directory will be the\nvalue in the callback.\n\n`stdout`, `stderr`, and `stdin` will be relayed to the calling process. As will\nthe `SIGINT` event.\n\n#### `flame.visualize(dataFilename, outputFilename, callback)`\n\nWill consume the datafile specified by `dataFilename`, this datafile will be\nproduced by the sampler using `flame.collect`.\n\n`flame.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## 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/flame.svg?style=flat-square\n[npm-url]: https://www.npmjs.org/@clinic/flame\n[npm-downloads]: http://img.shields.io/npm/dm/@clinic/flame.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-flame/workflows/CI/badge.svg\n[actions-url]: https://github.com/clinicjs/node-clinic-flame/actions\n","publish_time":1646849398940,"_cnpm_publish_time":1646849398940,"dist-tags":{"latest":"13.0.0"}}