amcasey / ts-analyze-trace

Tool for analyzing the output of `tsc --generateTrace`

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

⚠️Work on this tool will continue at https://github.com/microsoft/typescript-analyze-trace

ts-analyze-trace

Tool for analyzing the output of tsc --generateTrace automatically, rather than following the steps here.

Note: The goal is to identify clear-cut hot-spots and provide enough context to extract a small repro. The repro can then be used as the basis of a bug report or a starting point for manual code inspection or profiling.

Usage

First, build your project with --generateTrace traceDir. Then, run npx ts-analyze-trace traceDir to see a sorted list of compilation hot-spots.

Extras

You can invoke analyze-trace directly to analyze a single trace (optionally, with types), rather than a whole directory.

You can use normalize-positions to convert file offsets to line-character pairs and skip past trivia (whitespace, comments, etc).

Contributing

Unfortunately, we're unable to accept contributions at present.

About

Tool for analyzing the output of `tsc --generateTrace`

License:MIT License


Languages

Language:TypeScript 99.9%Language:JavaScript 0.1%