Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 way

Usage:
$ 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 information

Examples:
$ perfdoc foo.js
$ perfdoc --short foo.js
$ node --trace-deopt foo.js | perfdoc
```

## License

`MIT`, see [license file](./LICENSE.md).