Skip to content Skip to sidebar Skip to footer

Firebug Profiling Issue: "no Activity To Profile"

I want to try some different options with some javascript (jQuery) to see which is the fastest, however I can't get profiling working properly. Here is the code I want to test.

Solution 1:

Firebug profiler does not give the time taken by native methods, wrap entire functionality into a function and call that function between profile start and end.


Solution 2:

I think you don't need to specify a name when starting the profile. Alternatively, have you tried console.time?

from http://getfirebug.com/logging

Firebug gives you two easy ways to measure JavaScript performance. The low-fi approach is to call console.time("timing foo") before the code you want to measure, and then console.timeEnd("timing foo") afterwards. Firebug will then log the time that was spent in between.

The high-fi approach is to use the JavaScript profiler. Just call console.profile() before the code you want to measure, and then console.profileEnd() afterwards. Firebug will log a detailed report about how much time was spent in every function call in between.


Solution 3:

Do you turn on profiling before you run the code?

Click on Firebug > console > profile

You should see a message in firebug saying: "The profiler is running. Click 'Profile' again to see its report."

HTH


Post a Comment for "Firebug Profiling Issue: "no Activity To Profile""