<?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>78574</bug_id>
          
          <creation_ts>2012-02-13 22:03:59 -0800</creation_ts>
          <short_desc>Web Inspector: Typed Arrays not sized correctly in heap snapshots</short_desc>
          <delta_ts>2016-05-20 09:33:01 -0700</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 (Deprecated)</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=157945</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Ben Vanik">ben.vanik</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>alph</cc>
    
    <cc>apavlov</cc>
    
    <cc>bburg</cc>
    
    <cc>ben.vanik</cc>
    
    <cc>bweinstein</cc>
    
    <cc>joepeck</cc>
    
    <cc>kbr</cc>
    
    <cc>keishi</cc>
    
    <cc>loislo</cc>
    
    <cc>michaelbraithwaite</cc>
    
    <cc>pfeldman</cc>
    
    <cc>pmuellr</cc>
    
    <cc>rik</cc>
    
    <cc>yurys</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>555946</commentid>
    <comment_count>0</comment_count>
    <who name="Ben Vanik">ben.vanik</who>
    <bug_when>2012-02-13 22:03:59 -0800</bug_when>
    <thetext>While trying to find the discrepancies between Task Manager and the heap snapshot panel in the Chrome dev tools I noticed that typed arrays are not getting their size counted correctly. It looks like only the Javascript side of the arrays are counted, and not the native backing store. This means that if one has a 1MB Float32Array they&apos;ll only see it as ~32B in the heap profile. In applications making heavy use of typed arrays this makes the heap profiles largely useless for identifying memory hogging code. It&apos;s not enough of a workaround to use the count of typed arrays as an indicator of size as a large application will use thousands of arrays varying from 32B to several MB each.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>652244</commentid>
    <comment_count>1</comment_count>
    <who name="">michaelbraithwaite</who>
    <bug_when>2012-06-19 02:13:38 -0700</bug_when>
    <thetext>See also http://code.google.com/p/chromium/issues/detail?id=129729</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>659531</commentid>
    <comment_count>2</comment_count>
    <who name="">michaelbraithwaite</who>
    <bug_when>2012-06-28 08:53:18 -0700</bug_when>
    <thetext>https://bugs.webkit.org/show_bug.cgi?id=61792 is a superset of this.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>