How to set Firebug profiling programmatically

Scenario: You are using the profiler tab in Firebug that profiles everything, in stead you would rather profile one specific function.


The solution: You can do this programmatically inside your function:

function MyFunction() {
   console.profile('somename');
   ...

  console.profileEnd('somename');
}

 

Firebug is a free Firefox extension. Ready to install?

Print | posted @ Wednesday, July 8, 2009 9:00 AM

Comments on this entry:

No comments posted yet.

Post A Comment
Title:
Name:
Email:
Comment:
Verification: