{"id":1396,"date":"2011-11-01T17:04:03","date_gmt":"2011-11-01T06:04:03","guid":{"rendered":"http:\/\/blog.mozilla.org\/nnethercote\/?p=1396"},"modified":"2011-11-01T17:04:03","modified_gmt":"2011-11-01T06:04:03","slug":"reducing-aboutmemorys-heap-unclassified-measurement-with-dmd","status":"publish","type":"post","link":"https:\/\/blog.mozilla.org\/nnethercote\/2011\/11\/01\/reducing-aboutmemorys-heap-unclassified-measurement-with-dmd\/","title":{"rendered":"Reducing about:memory&#8217;s &#8220;heap-unclassified&#8221; measurement with DMD"},"content":{"rendered":"<p>about:memory is a really useful tool, but everyone always complains about the &#8220;heap-unclassified&#8221; number being too high.\u00a0 It&#8217;s too high because we don&#8217;t have enough memory reporters implemented.<\/p>\n<p><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=676724\">DMD<\/a> is a tool that identifies where new memory reporters should be added to reduce &#8220;heap-unclassified&#8221;.\u00a0 I&#8217;ve been using it for a couple of months now, and I&#8217;ve just written <a href=\"https:\/\/wiki.mozilla.org\/Performance\/MemShrink\/DMD\">instructions on how to use it<\/a>.\u00a0 It&#8217;s not easy, but hopefully it&#8217;s doable.<\/p>\n<p>It&#8217;s probably worth pointing out that we have a pretty good handle on what needs to be done to reduce &#8220;heap-unclassified&#8221; significantly &#8212; check out the <a href=\"https:\/\/bugzilla.mozilla.org\/buglist.cgi?status_whiteboard_type=allwordssubstr&amp;query_format=advanced&amp;list_id=1618047&amp;short_desc=memory%20reporter&amp;status_whiteboard=MemShrink&amp;bug_status=UNCONFIRMED&amp;bug_status=NEW&amp;bug_status=ASSIGNED&amp;bug_status=REOPENED&amp;short_desc_type=substring&amp;resolution=---&amp;resolution=DUPLICATE\">list of memory reporters to be implemented.<\/a>\u00a0 Almost all of those bugs were filed based on data from DMD.\u00a0 The single most important bug in that list is the one to <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=671299\">add missing style reporters<\/a>;\u00a0 I see multiple megabytes of CSS stuff all the time in DMD&#8217;s output.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>about:memory is a really useful tool, but everyone always complains about the &#8220;heap-unclassified&#8221; number being too high.\u00a0 It&#8217;s too high because we don&#8217;t have enough memory reporters implemented. DMD is a tool that identifies where new memory reporters should be added to reduce &#8220;heap-unclassified&#8221;.\u00a0 I&#8217;ve been using it for a couple of months now, and [&hellip;]<\/p>\n","protected":false},"author":139,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4550,4557,30,484],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/posts\/1396"}],"collection":[{"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/users\/139"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/comments?post=1396"}],"version-history":[{"count":0,"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/posts\/1396\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/media?parent=1396"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/categories?post=1396"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/tags?post=1396"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}