[chromium-dev] Re: V8 object-graph-tracing utilities?

2009-09-23 Thread Mads Sig Ager
Jens, another thing you should be aware of is that DOM nodes are only collected on full garbage collections. In order to see what is actually live at the end of a test, you have to force a number of GCs. If you run in the test shell with the --js-flags=--expose-gc flag, you can force gc's by

[chromium-dev] Re: V8 object-graph-tracing utilities?

2009-09-23 Thread Anton Muhin
Sending from proper account, sorry. On Wed, Sep 23, 2009 at 1:05 PM, Anton Muhin ant...@google.com wrote: In your case there should be not that many DOM windows objects and they all should survive in batches, so if I'd face such a problem, I'd just put a break point to see why this object got

[chromium-dev] Re: V8 object-graph-tracing utilities?

2009-09-23 Thread Jens Alfke
On Sep 23, 2009, at 12:32 AM, Mads Sig Ager wrote: another thing you should be aware of is that DOM nodes are only collected on full garbage collections. In order to see what is actually live at the end of a test, you have to force a number of GCs. But the GC should happen automatically

[chromium-dev] Re: V8 object-graph-tracing utilities?

2009-09-23 Thread Mads Sig Ager
On Wed, Sep 23, 2009 at 7:02 PM, Jens Alfke s...@google.com wrote: On Sep 23, 2009, at 12:32 AM, Mads Sig Ager wrote: another thing you should be aware of is that DOM nodes are only collected on full garbage collections.  In order to see what is actually live at the end of a test, you have

[chromium-dev] Re: V8 object-graph-tracing utilities?

2009-09-23 Thread Vitaly Repeshko
On Wed, Sep 23, 2009 at 2:21 AM, Jens Alfke s...@google.com wrote: On Sep 22, 2009, at 2:54 PM, Mikhail Naganov wrote: I'm working on showing JS objects retainers. But this only works for objects that live inside V8's heap. That would still be useful — I'd love to be able to look at all

[chromium-dev] Re: V8 object-graph-tracing utilities?

2009-09-22 Thread Mikhail Naganov
I'm working on showing JS objects retainers. But this only works for objects that live inside V8's heap. I'm not considering links between JS wrappers and C++ objects. I know Vitaly (cc'ed) wanted to do something about such cycles. On Wed, Sep 23, 2009 at 01:47, Jens Alfke s...@google.com wrote:

[chromium-dev] Re: V8 object-graph-tracing utilities?

2009-09-22 Thread Jens Alfke
On Sep 22, 2009, at 2:54 PM, Mikhail Naganov wrote: I'm working on showing JS objects retainers. But this only works for objects that live inside V8's heap. That would still be useful — I'd love to be able to look at all the 'Window' objects in the heap and what ref chain is keeping them

[chromium-dev] Re: V8 object-graph-tracing utilities?

2009-09-22 Thread Mike Belshe
Because we have C++ and JS wrappers, and there may be references known to the C++ side not known to the JS side, we have to do an object grouping before we can call GC. This grouping takes all wrappers and groups them by their root; and then they are collected together. This happens in