Human Being
Human Being

Reputation: 8387

Memory leaks in javaScript?

Can we find any where the memory leaks should be exactly happened in Java Script?

Which one is best ? Google chrome or Fire bug ?

I used chrome for CPU profiling but it doesn't shows the line where memory leak happend.

Any suggestions ? or how to find Memory leak in javaScript?

Upvotes: 1

Views: 313

Answers (1)

Anirudh Ramanathan
Anirudh Ramanathan

Reputation: 46778

You shouldn't be looking at CPU profiling. Chrome's inspector-window has a way for you to take Heap Snapshots.

Heap Snapshot profiles show memory distribution among your page's JavaScript objects and related DOM nodes.

Upvotes: 2

Related Questions