New blog domain: kula.blog

It's still work in progress but new posts will be published on  https://kula.blog/ Thanks to 11ty base blog RSS is working from the start so it should be easy to add to your reader if you still use any :) If now then I hope you can sign up to the newsletter where I'll be publishing new posts and interesting articles to it from time to time. Please use  kula.blog  from now on.

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: http://www.youtube.com/watch?v=UJPdhx5zTaw

There is discussion how to really use them: https://groups.google.com/forum/?fromgroups#!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:
http://floitsch.blogspot.com/2012/03/optimizing-for-v8-hydrogen.html
http://floitsch.blogspot.com/2012/03/optimizing-for-v8-inlining.html


Comments

Popular posts from this blog

How to use NPM packages from private repositories on bitbucket

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