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. :)
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. :)
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.