3

IS there any profile tools to find out exact place where the memory leak is happening ?

Thanks, Delli/

3
  • 2
    bl.ocks.org/karmadude/a7e1b648682508adb781 Commented Aug 4, 2017 at 11:06
  • How did this get upvotes if it's asking for a tool recommendation which is considered off-topic for SO? Commented Aug 4, 2017 at 13:02
  • Thanks, I was looking for a tool or any way to get exact code base/object where I can find out memory leak? Commented Aug 7, 2017 at 7:01

1 Answer 1

1

From my experience is not possible to show you exactly part of the code which can be added to garbage collection. In general I test a part of my app (a view) make "heap snapshot" and try to eliminate one by one test again and like that find the code with problem.

Also if you use strict mode with a lint, is a good change to don't have problems.

The above point is for JS in general, for Angular in particular, you know have some specific problems, like: watchers, $timeout, $rootScope, etc.

You can check John Papa style guide here this will help you to avoid some problems.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks, I was looking for a tool or any way to get exact code base/object where I can find out memory leak?

Your Answer

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.