Giter Site home page Giter Site logo

webia1 / typescript-analyze-trace Goto Github PK

View Code? Open in Web Editor NEW

This project forked from microsoft/typescript-analyze-trace

0.0 0.0 0.0 104 KB

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

License: MIT License

JavaScript 0.21% TypeScript 99.79%

typescript-analyze-trace's Introduction

@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 tsc --generateTrace traceDir. This will create a new traceDir directory with paired trace and types files.

Next, install @typescript/analyze-trace to make its various commands available in your project.

For a sorted list of compilation hot-spots, run npx analyze-trace traceDir. Pass --help to learn more about configuration options. For best results, run the analyzer on a machine where the paths in the trace file(s) resolve correctly.

For a simplified view of a types file (useful when investigating an individual trace), run npx simplify-trace-types traceDir\types.json output_path. Note that the resulting file is for human consumption and should not be passed to the analyzer (i.e. don't clobber the original).

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

Deployment

To publish a new version of this package, change the version in package.json and push to main.

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.

typescript-analyze-trace's People

Contributors

amcasey avatar danvk avatar julienfouilhe avatar microsoftopensource avatar willheslam avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.