[Webkit-unassigned] [Bug 163151] Web Inspector: Heap Snapshot should be able to tell me if an object was collected

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Oct 11 20:47:20 PDT 2016


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

--- Comment #9 from Joseph Pecoraro <joepeck at webkit.org> ---
(In reply to comment #7)
> > Showing the dead objects in the tree was very distracting though, since we
> > couldn't preview what they were. On even a small page, there could be
> > hundreds of objects cluttering the object graphs.
> 
> Perhaps we could fix this by making live vs dead an option. I can imagine
> situations where I would want to focus on one or the other.

Showing dead objects is a great feature and would not be hard to do. I think the most difficult part would be deciding how to approach this in the UI.


> Another option would be to snapshot object previews at snapshot time. So, if
> an object had properties { A, B } at snapshot time, and then acquired a
> property C => { A, B, C }, the snapshot would still show { A, B }.
> 
> Some of this goes to the question of what "snapshot" means. Something that
> updates over time is not a snapshot -- so it may be a misleading word for
> our current feature. Our current feature is a bag of objects that grows or
> shrinks as those objects acquire properties or die.

The behaviors that exist right now are because the current feature is geared (and biased) toward investigating leaked / abandoned objects. "Snapshot" is accurate with respect to the references / relationships between objects. That relationship graph doesn't change, only our view of the objects inside it.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20161012/20da1b56/attachment.html>


More information about the webkit-unassigned mailing list