13

Are there any add-ons for Firefox that I can use to find out with part of the JavaScript causes memory leaks?

Yi Jiang
50.2k16 gold badges139 silver badges137 bronze badges
asked Feb 17, 2011 at 11:43

3 Answers 3

9

I've got nothing for firefox, but the webkit inspector in Chrome has a profiler built in that is great for that kind of thing.

As an added bonus it also shows you all browser events such as repaints, so you can engineer your code to have the least impact on the browser.

answered Feb 17, 2011 at 11:50
Sign up to request clarification or add additional context in comments.

5 Comments

-1: That's completely useless when the leak only occurs in Firefox. Does not answer the question whatsoever.
@LightnessRacesinOrbit that would only be a problem if your code had wholly separate codepaths for FF. Probably 95% of the time fixing a memory leak in Chrome will fix it for all the other browsers.
@DanielLyons I have to agree with LightnessRacesinOrbit on this. It is not the correct answer because of those 5% you are saying. Would you consider your software correct if it was not doing what it was suppose to 5% of the times? It is a helpful answer (agree with you on that) but it is not the correct one for the question. Having said I am in those 5% now, so that is why I am saying this. (can you imagine a bridge that will only stand 95% of the times it gets high winds?)
@RGPT A long time ago, in a galaxy far, far away...
Does not help, because Firefox was requested, I really searched for Firefox
8

Use Drip.exe / IEleak, I used it a lot to search for memory leaks!

Other hits:

answered Feb 17, 2011 at 12:01

Comments

7

The best memory profiler I've found is for IE (supports even IE6 ;-). Give it a go - you will be surprised how good it is:

http://ajax.dynatrace.com/ajax/en/

answered Feb 17, 2011 at 11:47

1 Comment

I tried evaluating dynaTrace, and I don't see any memory profiling features at all. However, it does look pretty cool for general performance profiling.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.