views:

108

answers:

1

Is there a way to exclude a file/scope from Firebug's Profiler?

I would like to profile my app without it looking through jQuery at the same time. :)

+1  A: 

There is not in Firebug. I also have not been privy to any other JS profiler that automatically scopes like this. There is also, a very good reason why profilers don't.

Assume we could scope so that JQuery isn't profiled.If you write a function like this:

function addThemThenShow( arg1, arg2 )
{
    var result = arg1 + arg2;
    $(result).showAwesomeUiObject();
}

You profiler would return and say that addThemThenShow take near 0 time to run. However the JQuery call could do some intensive animation or data work. Maybe that call is from a plugin or something else that you didn't write. However it affects the performance of your sight. In this case, it is important to see and realize that maybe use showAwesomeUiObject() is not the way to go.

Raegx
Sure. Actually I was lacking in my explanation. Profiling is fine, if there is a way that I can filter jquery out of the results. So that I don't have to look through 300 jquery functions to find 20 of my own. :) If that makes sense.
Spot
Yeap, still no go though. The profiler offers no way to exclude any scripts. I still stand by though, that those 300 pages still carry worth. ^_^
Raegx
Ok thanks a lot!
Spot