开发者

Measure performance of firefox extension

Is there a tool to measure the performance of my firefox extension. And is there a toll which pa开发者_JAVA技巧rt of my script takes lot of CPU?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜