tags:

views:

40

answers:

4

Hi,

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

+2  A: 

Karthik,

you shoud try the dynaTrace Ajax IE profiler. Its awesome prouct (and free).

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

Cheers

Ramesh Vel
Thanks Ramesh , I tried that already but its not allowing to download.."It saying you are not having privilege for that tool"..
karthik
@karthick, Must be your company information policy.. contact your admin..
Ramesh Vel
A: 

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.

Marco Demajo
This is very big product, client have own mechanism (c++) to call DB..
karthik
And more over, this product is not supporting firefox..
karthik
A: 

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

JoseK
A: 

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/

Moin Zaman