Giter Club home page Giter Club logo

deoptigate's Introduction

deoptigate

become a patron

deoptigate app.js

xml2js

What Performance Experts Say About Deoptigate

Jason Miller aka @_developit, creator of preact. John-David Dalton aka @jdalton, creator of lodash.
developit jdalton

Blogposts about Deoptigate

Why the New V8 is so Damn Fast damn-fast Tracking Down and Fixing Performance Bottlenecks with N|Solid and Deoptigate damn-fast

Installation

npm install -g deoptigate

Usage

Deoptigate your App in one Step

deoptigate app.js

Override Node.js executable and/or pass it custom arguments

deoptigate -- /bin/mynode app.js
deoptigate -- node --allow-natives-syntax app.js

Deoptigate existing *-v8.log

Simply run deoptigate from the directory that contains the log file(s).

To capture a browser session

Launch a Chromium-based browser with the necessary tracing flags. For example, running on localhost and writing the log file to the /temp/trace directory:

%browser% --no-sandbox --js-flags="--trace-ic --nologfile-per-isolate --logfile=/temp/trace/v8.log" http://localhost:8000/

When running with no sandbox, you can also load pages directly from disk, e.g.

%browser% --no-sandbox --disable-extensions --js-flags="--trace-ic --nologfile-per-isolate --logfile=/temp/trace/v8.log" c:\temp\trace\default.html

With the directory containing the log file as the current directory, run deoptigate.

Note: The JavaScript files to analyze must be laid out in the current directory as they are in the URL path. For example, if the browser loaded a file at http://localhost:8000/js/app.js above, then the file should exist at /temp/trace/js/app.js. If the local copy does not exist, it will not appear in the analysis.

License

MIT

deoptigate's People

Contributors

billti avatar mangotron avatar thlorenz avatar

Watchers

 avatar  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.