<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>158220</bug_id>
          
          <creation_ts>2016-05-30 17:06:52 -0700</creation_ts>
          <short_desc>Web Inspector: Snapshot List items do not respect the timeline recording&apos;s selected interval</short_desc>
          <delta_ts>2026-01-12 09:04:40 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Web Inspector</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Blaze Burg">bburg</reporter>
          <assigned_to name="Matt Baker">mattbaker</assigned_to>
          <cc>graouts</cc>
    
    <cc>inspector-bugzilla-changes</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1197697</commentid>
    <comment_count>0</comment_count>
    <who name="Blaze Burg">bburg</who>
    <bug_when>2016-05-30 17:06:52 -0700</bug_when>
    <thetext>This doesn&apos;t seem like expected behavior in any use case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1197698</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2016-05-30 17:07:03 -0700</bug_when>
    <thetext>&lt;rdar://problem/26545050&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1197834</commentid>
    <comment_count>2</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2016-05-31 11:10:36 -0700</bug_when>
    <thetext>This was actually intentional.

There are multiple ways to take a heap snapshot outside of a recording:

    1. console.takeHeapSnapshot
    2. The &quot;Take snapshot&quot; button in the JavaScript Allocations Timeline View

In both cases, the &quot;new snapshot&quot; is unlikely to appear in your selected time range. Yet the developer that triggered it, will likely want to see it. Especially in (2) given that they just performed a very explicit user interaction to get it.

I think the number of heap snapshots should be pretty small. It wouldn&apos;t (or shouldn&apos;t) be thousands like other timelines. But rather a handful or tens.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1197869</commentid>
    <comment_count>3</comment_count>
    <who name="Blaze Burg">bburg</who>
    <bug_when>2016-05-31 12:08:46 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; This was actually intentional.
&gt; 
&gt; There are multiple ways to take a heap snapshot outside of a recording:
&gt; 
&gt;     1. console.takeHeapSnapshot
&gt;     2. The &quot;Take snapshot&quot; button in the JavaScript Allocations Timeline View
&gt; 
&gt; In both cases, the &quot;new snapshot&quot; is unlikely to appear in your selected
&gt; time range. Yet the developer that triggered it, will likely want to see it.
&gt; Especially in (2) given that they just performed a very explicit user
&gt; interaction to get it.
&gt; 
&gt; I think the number of heap snapshots should be pretty small. It wouldn&apos;t (or
&gt; shouldn&apos;t) be thousands like other timelines. But rather a handful or tens.

I can understand that argument, but my experience when trying to use this with lots of screenshots is that it quickly becomes unusable. This is especially so if the snapshots are taken from the same call site and have the same label. If the page programmatically takes a snapshot before/after some event or interaction you want correlate (via JS or user timeline events) there&apos;s no way to tell apart the snapshots relevant to a single interaction.

I think we should make it consistent with every other timeline view. We can add other UI hints, such as changing the &quot;Snapshot List&quot; component for the subview to say &quot;Snapshot List (5 filtered)&quot; or something similar.

Another idea (which is probably not necessary here) is to add &quot;perimeter&quot; hints along the left and right edge of the timeline graphs to show how many records/snapshots are scrolled out of view.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>