开发者

Javascript Code Performance analysis tool [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 10 months ago.

开发者_Go百科 Improve this question

I am stuck with one task now. Requesting your help on this.

Description : There is a functionality written in purely javascript - but with lack of performance. Its taking more than 3.5 seconds to complete the workflow.

Of cource, Its includes a lot of DB calls & functionalities and loops.

This set of codes written by long years ago, so i am not aware of any functionality much on that.

Question : Are there any (free) tools available to trace how many times functions getting called and how much time its taking? (Like DotTrace for .Net)

Note : using IE 6.0 & Our product is very huge will not support firefox.

Thanks Karthik


You shoud try the dynaTrace Ajax IE profiler. Its awesome product (and free).

Check out the JQuery author john resig's review about this tool


Have a look at Jiffy: http://justtalkaboutweb.com/2008/06/25/extensions-for-firebug-yslow-and-jiffy/

If you can afford to buy a product then look at: http://www.softwareverify.com/javascript/profiler/index.html

Another one that comes to mind is http://research.microsoft.com/en-us/projects/ajaxview/


I never heard of pure Javascript calling directly a DB unless u mean it's using XML requests to call server and this last one performs the DB calls.

Anyway a well known tool to profile Javascript is Firebug. You can go on using your website and application with IE6 if you like, but to profile it I would stringly suggest using Firebug. Download Firefox and than install the Firebug plugin Profile your Javascript code on Firefox and try to fix the poorly performant parts.

Once you have done it's highly probable that your code will also run faster on IE6.


You can try the "Log calls to 'function name'" on Firebug plugin


If you're like me and not isolated to IE, then it may be helpful to know that there are profilers available in both Chrome and Safari's Web Inspector tool as well as Firebug. In Webkit, click the Profile tab. In Firebug, the profiler is available through the Console tab.


The firebug plugin mentioned in some of the older answers no longer exists. It has been replaced by Firefox's Developer tools.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜