<div dir="ltr">On Wed, Jul 11, 2018 at 5:42 AM, David Bruant <span dir="ltr"><<a href="mailto:bruant.d@gmail.com" target="_blank">bruant.d@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote"><span class=""><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">* Andrew McCreight created a tool for tracking JS memory usage, and figuring<br>
  out which scripts and objects are responsible for how much of it<br>
  (<a href="https://bugzil.la/1463569" rel="noreferrer" target="_blank">https://bugzil.la/1463569</a>).<br>
</blockquote></span></div></div><div class="gmail_extra">How often is this code run? Is there a place to find the daily output of this tool applied to a nightly build for instance?<br></div></div></blockquote><div><br></div><div>You have to manually run this using a special build (hopefully I'll be able to at least land code so that a special build is not needed). It isn't clear from that description, but the focus here is on the chrome JS that is part of the browser, rather than on websites. Reducing content process chrome JS memory usage is going to have to be a big focus for this effort, because I believe other browsers don't write their UI in JS, and the way JIT stuff works it is harder to share code memory between processes than with AOT compiled code.<br></div><div><br></div><div> If you look at about:memory, there's already a decent breakdown of how much memory is used in JS for different things, but that doesn't help you figure out which individual scripts are taking up memory. JSMs and content scripts are run in only a few globals (to save memory), but that means that looking up how much memory a global uses doesn't tell you much.</div><div><br></div><div><br></div><div>Andrew<br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"></div><div class="gmail_extra"><br></div><div class="gmail_extra">Thanks again,</div><div class="gmail_extra"><br></div><div class="gmail_extra">David</div></div>
<br>______________________________<wbr>_________________<br>
firefox-dev mailing list<br>
<a href="mailto:firefox-dev@mozilla.org">firefox-dev@mozilla.org</a><br>
<a href="https://mail.mozilla.org/listinfo/firefox-dev" rel="noreferrer" target="_blank">https://mail.mozilla.org/<wbr>listinfo/firefox-dev</a><br>
<br></blockquote></div><br></div></div>