Skip to content

A tool for analyzing the output of `tsc --generateTrace`

License

Notifications You must be signed in to change notification settings

amcasey/typescript-analyze-trace

 
 

Repository files navigation

@typescript/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

For a sorted list of compilation hot-spots, run npx analyze-trace traceDir

For a simplified view of a types file (useful when investigating an individual trace), run npx simplify-trace-types traceDir\types.json output_path

To pretty-print individual types from a types file (faster than processing the entire file), run npx print-types traceDir\types.json id+

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.

About

A tool for analyzing the output of `tsc --generateTrace`

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 99.7%
  • JavaScript 0.3%