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: 25 days 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 (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-30T22:14:37.000Z (about 7 years ago)
- Last Synced: 2025-04-08T16:50:06.696Z (about 1 month ago)
- Topics: javascript, node, nodejs, performance, v8
- Language: JavaScript
- Size: 66.4 KB
- Stars: 5
- Watchers: 2
- 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:

Example output with `--short` flag:

## 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).