Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Measure time between steps in Chrome devtools

Is there any way to measure the time between steps (F10) when debugging javascript in chrome developer tools? I know that we can use the console.time(label) and console.timeEnd(label) but the script is very long and I need to find the bottlenecks and using the console.time method would take a long time.

I don't know very well firebug but if it does what I need I'll have no problem in using it.

like image 856
lmalves Avatar asked Jul 28 '26 23:07

lmalves


1 Answers

Have you tried Chrome's Timeline View? It tells you how long each function call took to execute.

If you download Chrome Canary and make a Timeline recording it will also show you per-line information. (I just played with it and there seems to be some threshold before it starts showing a measurement for a line, but it's worth a try.)

Some docs to get you started:

  • How to use the Timeline tool
  • Analyze runtime performance
  • Speed up JavaScript execution
like image 71
Matt Zeunert Avatar answered Jul 31 '26 13:07

Matt Zeunert



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!