Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Profiling Javascript statement count

I recently ran into a long-running script error in IE but no other browsers. In investigatng further, I learned that IE defines a long-running script as one that executes more than 5,000,000 statements while all other browsers based in on execution time. In looking at all of the profilers I could find such as Firebug, they give a lot of information about memory usage, execution time, number of function calls but nothing about the number of statements executed.

Does anyone know of a profiler that can help me identify the number of statements executed (ideally grouped by function call)?

like image 675
Steve Reichgut Avatar asked Mar 09 '26 07:03

Steve Reichgut


1 Answers

dynaTrace AJAX Edition is an excellent tool for this (profiling IE specifically), and it's free to boot.

You can debug/profile JavaScript, requests, CPU usage, see where you're spending all your processing time, which methods are called how many times, etc. Get started with the tutorials here.

like image 199
Nick Craver Avatar answered Mar 11 '26 20:03

Nick Craver