<?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>156764</bug_id>
          
          <creation_ts>2016-04-19 15:35:13 -0700</creation_ts>
          <short_desc>Consider gathering backtraces at allocation sites to show in the web inspector</short_desc>
          <delta_ts>2017-01-18 23:39:06 -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>JavaScriptCore</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</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="Saam Barati">saam</reporter>
          <assigned_to name="Saam Barati">saam</assigned_to>
          <cc>benjamin</cc>
    
    <cc>darin</cc>
    
    <cc>emacemac7</cc>
    
    <cc>fpizlo</cc>
    
    <cc>ggaren</cc>
    
    <cc>gskachkov</cc>
    
    <cc>joepeck</cc>
    
    <cc>keith_miller</cc>
    
    <cc>mark.lam</cc>
    
    <cc>msaboff</cc>
    
    <cc>nvasilyev</cc>
    
    <cc>oliver</cc>
    
    <cc>sukolsak</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1185190</commentid>
    <comment_count>0</comment_count>
    <who name="Saam Barati">saam</who>
    <bug_when>2016-04-19 15:35:13 -0700</bug_when>
    <thetext>A possible implementation could be done purely at the byte code level.
Store a private property on the object that was just allocated which contains
whatever meta information you want. It could be a backtrace. It could be a
code location.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1185196</commentid>
    <comment_count>1</comment_count>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2016-04-19 15:39:56 -0700</bug_when>
    <thetext>Maybe we could even just limit it to larger (for some clarification of what that means) allocations so it could be almost(?) always-on?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1185333</commentid>
    <comment_count>2</comment_count>
    <who name="Saam Barati">saam</who>
    <bug_when>2016-04-19 21:33:48 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; Maybe we could even just limit it to larger (for some clarification of what
&gt; that means) allocations so it could be almost(?) always-on?

I&apos;m not sure how you could easily do such a thing easily. Object size
grows as the object lives longer. I guess you could have some kind
of a system that starts by profiling everything and then backs off
slowly to only profile some things as it figures out the tendency
of the program&apos;s allocations. That seems hard and I&apos;m not even
sure it would work. 

Were you thinking of a particular mechanism when you suggested this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1188454</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2016-04-28 17:20:33 -0700</bug_when>
    <thetext>&lt;rdar://problem/25994092&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>