문제

I've got a memory leak in my web app. It looks like there are references to HTML elements that are no longer necessary and I can see this in the Chrome Developer Tools Profile Snapshots. How can I identify which HTML elements are being displayed in the Snapshot Summary view? For example, in the screenshot below, I'm diving into an HTMLAnchorElement and I'd like to know which one that is. If I can get the "className" or "innerHTML" values of the element, I will be able to identify it, but I can't seem to get the values. Anyone know how I can do this?

Developer Tools Profile Snapshot

도움이 되었습니까?

해결책

Not sure if I understand the question correctly, but you might want to take a look at the documentation for finding detached DOM tree entries:

http://code.google.com/chrome/devtools/docs/heap-profiling-dom-leaks.html.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top