Click here to Skip to main content
15,891,248 members
Articles / All Topics

Chrome Developer Tools Profiling Flame Charts

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
12 Apr 2014CPOL1 min read 8.6K  
Chrome developer tools profiling Flame charts

I just recently, and totally coincidentally, found out that Chrome developer tools can generate flame charts while profiling js code!

Recently, it seems like generating flame charts from profiling data has become popular in languages like Ruby, Python and PHP, so I'm excited to see that Chrome has this option for js code as well.

The default view for profiling data in the dev tools is the 'tree view', but you can easily change it to 'flame chart' by selecting it on the dropdown in the bottom part of the window.

Like here:

Image 1

Then, you will be able to see the profiling results, in a way that sometimes is easier to look at.

You can use the mouse scroll button to zoom in on a specific area of the flame chart, and see what's going on there.

In case you're not familiar with reading flame charts, then here's a simple explanation:

  • Each colored line is a method call
  • The method calls above one another represent the call stack
  • The width of the lines represents how long each call was

And here, you can see an example of a flame chart, and I marked a few sections that the flame chart points out for us, that are non-optimized TryCatchBlocks. In this case, it's comfortable viewing it in a flame chart because you can see nicely how many method calls each try/catch block is surrounding.

Image 2

This article was originally posted at http://www.debuggerstepthrough.com/feeds/posts/default

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
Israel Israel
Started programming e-commerce sites with PHP & MySQL at the age of 14. Worked for me well for about 5 years.

Transfered to C# & asp.net, while serving in the IDF.
Worked on the 'Core Performance' Team at ShopYourWay.com (Sears Israel)
Currently working at Logz.io

Check out my blog!
or my twitter

Comments and Discussions

 
-- There are no messages in this forum --