Skip to content
This repository has been archived by the owner on Jan 15, 2022. It is now read-only.

amcasey/ts-analyze-trace

Repository files navigation

⚠️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`

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published