Reputation: 3136
Is there a tool to measure the performance of my firefox extension. And is there a toll which part of my script takes lot of CPU?
Upvotes: 2
Views: 596
Reputation: 57651
You seem to be looking for a JavaScript profiler. Unfortunately, I don't know any good profilers for this. The usual recommendation would be Firebug but it doesn't work for add-ons (maybe with Chromebug but I'm not sure about that). There is also XUL profiler which is outdated but might still work in newer Firefox versions (you can use Add-on Compatibility Reporter to install and test incompatible add-ons). And there is JavaScript Deobfuscator which is meant for something different but can do some basic profiling as well. There you can adjust the filters to include only JavaScript files of your extension and see all the functions that are being called - along with the number of calls and the average execution time. This is sometimes good enough to identify the bottlenecks.
Upvotes: 2