Unreviewed Web Inspector: followup fix for r122920.
authorloislo@chromium.org <loislo@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 18 Jul 2012 06:31:53 +0000 (06:31 +0000)
committerloislo@chromium.org <loislo@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 18 Jul 2012 06:31:53 +0000 (06:31 +0000)
Add collected Loaders size to InspectorMemoryBlock

* inspector/InspectorMemoryAgent.cpp:
(MemoryBlockName):
(WebCore):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@122921 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/inspector/InspectorMemoryAgent.cpp

index d902120..d564616 100644 (file)
@@ -1,5 +1,15 @@
 2012-07-17  Ilya Tikhonovsky  <loislo@chromium.org>
 
+        Unreviewed Web Inspector: followup fix for r122920.
+
+        Add collected Loaders size to InspectorMemoryBlock
+
+        * inspector/InspectorMemoryAgent.cpp:
+        (MemoryBlockName):
+        (WebCore):
+
+2012-07-17  Ilya Tikhonovsky  <loislo@chromium.org>
+
         Web Inspector: show loaders memory consumption on the memory chart.
         https://bugs.webkit.org/show_bug.cgi?id=90686
 
index c7889f6..bf1d5ae 100644 (file)
@@ -96,6 +96,7 @@ static const char domTreeOther[] = "DOMTreeOther";
 static const char domTreeDOM[] = "DOMTreeDOM";
 static const char domTreeCSS[] = "DOMTreeCSS";
 static const char domTreeBinding[] = "DOMTreeBinding";
+static const char domTreeLoader[] = "DOMTreeLoader";
 }
 
 namespace {
@@ -483,6 +484,7 @@ public:
         addMemoryBlockFor(domChildren.get(), m_totalSizes[DOM], MemoryBlockName::domTreeDOM);
         addMemoryBlockFor(domChildren.get(), m_totalSizes[CSS], MemoryBlockName::domTreeCSS);
         addMemoryBlockFor(domChildren.get(), m_totalSizes[Binding], MemoryBlockName::domTreeBinding);
+        addMemoryBlockFor(domChildren.get(), m_totalSizes[Loader], MemoryBlockName::domTreeLoader);
 
         RefPtr<InspectorMemoryBlock> dom = InspectorMemoryBlock::create().setName(MemoryBlockName::dom);
         dom->setSize(totalSize);