Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to start Firebug's performance profiler at page load?

So, Firebug has a JavaScript performance profiler that I never managed to notice before…

pic of the Firebug profiler button

Now I'd like to use it to troubleshoot page load performance issues, but I can't quite hit the button quick enough! Surely there's a way to profile a page from the very start of execution?

like image 532
spender Avatar asked Oct 14 '14 09:10

spender


1 Answers

Firebug wiki says you can do this with simple javascript console.profile So in your html page you can do it like this:

console.profile("Your new profiler");
alert('Open firebug profiles tab to see result');    
console.profileEnd();
like image 109
Max Brodin Avatar answered Oct 18 '22 06:10

Max Brodin