[Webkit-unassigned] [Bug 53659] Web Inspector: Better support for finding "leaked" DOM

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Feb 7 12:19:14 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=53659





--- Comment #10 from Mikhail Naganov <mnaganov at chromium.org>  2011-02-07 12:19:13 PST ---

> > My thought was that during the object grouping phase in V8GCController the NodeGrouperVisitor could annotate the object group with additional information like "this object group represents a DOM subtree with 25 nodes and the root node has the DOM id attribute 'foo'".  Then references to this object group could also be blamed for that 25 node chunk, even though the actual memory for those DOM nodes is external to the V8 heap.  Does that make sense?
> 
> James, I think it makes a lot of sense.  And if I understand Mikhail right, he was going to implement something like that.  I am not sure he was going to collect additional DOM info, but at least make object groups understood by his retainer stuff.
> > >

Yes, the new heap profiler is coming, and I'll enhance it with support for object groups.

> 
> Again, keep in mind this is a meta-comment; it seems like the original problem description is pretty narrow - it's easy to imagine all sorts of "queries" people might want to have like this - to chase down various types of problems.
> 
> In terms of an API, the thing I'm most familiar with, publicly, is the Java JVMTI interface:
> 
>    http://download.oracle.com/javase/6/docs/platform/jvmti/jvmti.html
> 
> here's the API for walking the object space:
> 
>    http://download.oracle.com/javase/6/docs/platform/jvmti/jvmti.html#Heap
> 
> Yes, YOU can always run a private version of Chrome.  Not many people have that luxury :-)

Having such an API is nice. It's indispensable when a VM runs on the server side. For client side it may be easier to allow dumping performance data, so people can write analyzers. There is already an ability to send out CPU profiles using 'console.profiles' (although it looks weird that application performance data is exposed to the application itself). And it's also possible to dump heap contents as JSON in V8. Hopefully, we will establish some "standard" on how perf data should be exported for JavaScript, so people will start writing 3rd party analyzers.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list