From Console to Chrome

I'm trying to pick up with my watch later list on Youtube and today I watched From Console to Chrome by Lilli Thompson.

Some Chrome features to be aware of:
  • about:flags (FPS Counter) 
  • about:memory 
  • about:gpu 
  • about:tracing (to create your own boxes use console.time)
    1. console.time('my_tag');
    2. console.timeEnd('my_tag');
There are also command line switches to V8:

google-chrome --js-flags="  "

--trace-bailout - Chrome found function to optimize but it can't (see why)
--trace-opt - functions that were optimized.
--trace-deopt - when faster function is switched to slower one

google-chrome --js-flags="--trace-bailout --trace-opt --trace-deopt"

Searching for more about deopt I found that on my watch list is another video about it:

There is discussion how to really use them:!topic/v8-users/oiPLwFuGtOU

Jakob Kummerow suggest to use also: --print-opt-code and --code-comments
Ranting about flags or their output being cryptic may help you let off some steam, but beyond that doesn't get you anywhere. V8's command-line flags let you peek at V8's inner workings, and making sense of their output requires some understanding of these internals. Nobody ever claimed anything else.

So this is mostly useful in debug builds of V8 and when you REALLY need to optimize Game.

Some low level articles, but I give them only as help:


Popular posts from this blog

How to simulate slow connection (developer proxy in Node.js)

How to use NPM packages from private repositories on bitbucket