<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Web Inspector: Heap Snapshot should be able to tell me if an object was collected"
   href="https://bugs.webkit.org/show_bug.cgi?id=163151#c8">Comment # 8</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Web Inspector: Heap Snapshot should be able to tell me if an object was collected"
   href="https://bugs.webkit.org/show_bug.cgi?id=163151">bug 163151</a>
              from <span class="vcard"><a class="email" href="mailto:sbarati&#64;apple.com" title="Saam Barati &lt;sbarati&#64;apple.com&gt;"> <span class="fn">Saam Barati</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=163151#c6">comment #6</a>)
<span class="quote">&gt; (In reply to <a href="show_bug.cgi?id=163151#c3">comment #3</a>)
&gt; &gt; One nice thing about the &quot;alive + dead&quot; display is that it allows you to see
&gt; &gt; memory usage go up and / or down between snapshots.
&gt; &gt; 
&gt; &gt; Today, since old snapshots update when new snapshots are taken, they
&gt; &gt; retroactively edit their total memory usage numbers, erasing debugging
&gt; &gt; history.
&gt; 
&gt; The Snapshot List view shows both the original Size and the Live Size. The
&gt; original Size never changes. When viewing the live objects within the
&gt; snapshot, the Retain Size percentages are based off of the original Size not
&gt; the current Live Size.
&gt; 
&gt; 
&gt; (In reply to <a href="show_bug.cgi?id=163151#c5">comment #5</a>)
&gt; &gt; My perfect debugging scenario for what I was trying to do would go like this:
&gt; &gt; 1. Take a snapshot
&gt; &gt; 2. Pause JS execution
&gt; &gt; 3. Find an object inside the snapshot
&gt; &gt; 4. Ask the inspector to notify me when it gets destructed
&gt; &gt; 5. continue JS execution
&gt; &gt; 
&gt; &gt; alternatively, some API for doing this like:
&gt; &gt; ```
&gt; &gt; let object = new Array(someLargeNumber);
&gt; &gt; console.onDestruction(object, function callback() { ... });
&gt; 
&gt; This sounds very similar to the mark/paint feature request:
&gt; &lt;<a href="https://webkit.org/b/154410">https://webkit.org/b/154410</a>&gt; Web Inspector: Programmatically mark/paint
&gt; objects for heap snapshot
&gt; 
&gt; If you could console.mark(object, &quot;Tag&quot;) and then search for all the objects
&gt; with &quot;Tag&quot; in the Snapshot, that would make it easy to find the object in
&gt; and across snapshots.
&gt; 
&gt; What is it you want to actually do with the object once you've seen it was
&gt; collected. Just log?</span >

For my use case I wanted to just confirm that it was collected. I basically wanted an intuitive way of finding out that information that didn't require digging through a snapshot. So I think this other proposal would make that easy. I want Inspector to *tell* me that something has died, instead of me inferring that by seeing that the particular object I'm interested in is not in a particular snapshot.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>