npm.io
0.0.3 • Published 8 years agoCLI

perfdoc

Licence
MIT
Version
0.0.3
Deps
3
Size
107 kB
Vulns
0
Weekly
0
Stars
5

perfdoc

Print V8 deoptimization reasons in a developer friendly way.

Example output:

Default CLI output

Example output with --short flag:

Short CLI output

Usage

npm i -g perfdoc

and then run the script you want to analyze

perfdoc foo.js

CLI

🔍  Print V8 deoptimization reasons in a developer friendly way

Usage:
  $ perfdoc [options] <file>

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.