[webkit-dev] gdb archer and tracking live objects

Holger Freyther zecke at selfish.org
Mon Mar 15 04:12:37 PDT 2010


On Monday 15 March 2010 08:38:25 Holger Freyther wrote:

> With the attached python script I'm able to keep track of RefCountedBase
> objects, have commands to print the python dictionary from a gdb cli. I
> have no other exploring functions in place.

I implemented detecting the type from the backtrace for some types and I just 
implemented the first useful analysis method for it. webkit-objects can be 
asked to match some resources and then it will list the type, the addr and
the refcount of these objects. The next thing I will try is to figure out who 
is still holding refs to these objects.




(gdb) webkit-objects sharedbuffer
WebCore has 13/2888 live objects of 0 kinds
WebCore::SharedBuffer::SharedBuffer at 0xb3d736e0 ref: 2
WebCore::SharedBuffer::SharedBuffer at 0xb3d736b8 ref: 1
WebCore::SharedBuffer::SharedBuffer at 0xaadb2dc0 ref: 4
WebCore::SharedBuffer::SharedBuffer at 0xb3d73668 ref: 2
WebCore::SharedBuffer::SharedBuffer at 0xb3d735f0 ref: 2
WebCore::SharedBuffer::SharedBuffer at 0xb3d73618 ref: 2
WebCore::SharedBuffer::SharedBuffer at 0xaad57690 ref: 4
WebCore::SharedBuffer::SharedBuffer at 0xaadb2e38 ref: 2
WebCore::SharedBuffer::SharedBuffer at 0xb3d73640 ref: 2
WebCore::SharedBuffer::SharedBuffer at 0xb3da3af0 ref: 2
WebCore::StringImpl::sharedBuffer() at 0xaadcb4f0 ref: 1
WebCore::SharedBuffer::SharedBuffer at 0xb3d73690 ref: 1
WebCore::SharedBuffer::SharedBuffer at 0xb3e22348 ref: 2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: webkit.py.zip
Type: application/zip
Size: 2917 bytes
Desc: not available
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20100315/8b4801da/attachment.zip>


More information about the webkit-dev mailing list