Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marvinhagemeister/perfdoc
CLI tool to get human readable about v8 de-optimizations
https://github.com/marvinhagemeister/perfdoc
javascript node nodejs performance v8
Last synced: 3 months ago
JSON representation
CLI tool to get human readable about v8 de-optimizations
- Host: GitHub
- URL: https://github.com/marvinhagemeister/perfdoc
- Owner: marvinhagemeister
- License: mit
- Created: 2018-04-30T21:20:18.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-04-30T22:14:37.000Z (over 6 years ago)
- Last Synced: 2024-10-17T21:44:18.964Z (3 months ago)
- Topics: javascript, node, nodejs, performance, v8
- Language: JavaScript
- Size: 66.4 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# perfdoc
Print V8 deoptimization reasons in a developer friendly way.
Example output:
![Default CLI output](./fancy.png)
Example output with `--short` flag:
![Short CLI output](./short.png)
## Usage
```bash
npm i -g perfdoc
```and then run the script you want to analyze
```bash
perfdoc foo.js
```## CLI
```txt
🔍 Print V8 deoptimization reasons in a developer friendly wayUsage:
$ perfdoc [options]Options:
--short Hide code frame
--bail Exit with code 1 if a deoptimization has been found
--help, -h Show usage information and the options listed here
--version, -v Show version informationExamples:
$ perfdoc foo.js
$ perfdoc --short foo.js
$ node --trace-deopt foo.js | perfdoc
```## License
`MIT`, see [license file](./LICENSE.md).