Bug 754241 - add window-objects-layout-pres-contexts to about:memory; r=njn
authorNathan Froyd <froydnj@mozilla.com>
Fri, 11 May 2012 09:23:07 -0400
changeset 93783 b3cc73614c0908baf7ef4495245fea2c4f533700
parent 93782 d17410f2c261841b44f5ddbcebe64857f6f22ff1
child 93784 0f2444af3a1df8b7284de44cdedc5e2b279ff722
push id9316
push usernfroyd@mozilla.com
push dateFri, 11 May 2012 13:37:07 +0000
treeherdermozilla-inbound@b3cc73614c09 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnjn
bugs754241
milestone15.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 754241 - add window-objects-layout-pres-contexts to about:memory; r=njn
dom/base/nsWindowMemoryReporter.cpp
--- a/dom/base/nsWindowMemoryReporter.cpp
+++ b/dom/base/nsWindowMemoryReporter.cpp
@@ -282,28 +282,32 @@ nsWindowMemoryReporter::CollectReports(n
          "Memory used for the DOM within windows. "
          "This is the sum of all windows' 'dom' numbers.");
     
   REPORT("window-objects-style-sheets", windowTotalSizes.mStyleSheets, 
          "Memory used for style sheets within windows. "
          "This is the sum of all windows' 'style-sheets' numbers.");
     
   REPORT("window-objects-layout-arenas", windowTotalSizes.mLayoutArenas, 
-         "Memory used by layout PresShell, PresContext, and other related "
+         "Memory used by layout PresShell and other related "
          "areas within windows. This is the sum of all windows' "
          "'layout/arenas' numbers.");
     
   REPORT("window-objects-layout-style-sets", windowTotalSizes.mLayoutStyleSets, 
          "Memory used for style sets within windows. "
          "This is the sum of all windows' 'layout/style-sets' numbers.");
     
   REPORT("window-objects-layout-text-runs", windowTotalSizes.mLayoutTextRuns, 
          "Memory used for text runs within windows. "
          "This is the sum of all windows' 'layout/text-runs' numbers.");
 
+  REPORT("window-objects-layout-pres-contexts", windowTotalSizes.mLayoutPresContext,
+         "Memory used for layout PresContexts within windows. "
+         "This is the sum of all windows' 'layout/pres-contexts' numbers.");
+
 #undef REPORT
     
   return NS_OK;
 }
 
 NS_IMETHODIMP
 nsWindowMemoryReporter::GetExplicitNonHeap(PRInt64* aAmount)
 {