Bug 1200795, part 2 - Add memory reporting for CCGraph::mPtrToNodeMap. r=njn
authorAndrew McCreight <continuation@gmail.com>
Fri, 04 Sep 2015 09:45:44 -0700
changeset 260937 e995e29925595c3f1ed2e2e5527453affd1805b8
parent 260936 2b780ee7985683c9bdca1f1c97e066d3f42d8bf5
child 260938 351d5f864f9e58eadbd7785c303fa5a1e0c5e09c
push id64625
push useramccreight@mozilla.com
push dateFri, 04 Sep 2015 16:45:56 +0000
treeherdermozilla-inbound@351d5f864f9e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnjn
bugs1200795
milestone43.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 1200795, part 2 - Add memory reporting for CCGraph::mPtrToNodeMap. r=njn
xpcom/base/nsCycleCollector.cpp
--- a/xpcom/base/nsCycleCollector.cpp
+++ b/xpcom/base/nsCycleCollector.cpp
@@ -883,16 +883,18 @@ public:
 
     n += mNodes.SizeOfExcludingThis(aMallocSizeOf);
     n += mEdges.SizeOfExcludingThis(aMallocSizeOf);
 
     // We don't measure what the WeakMappings point to, because the
     // pointers are non-owning.
     n += mWeakMaps.ShallowSizeOfExcludingThis(aMallocSizeOf);
 
+    n += mPtrToNodeMap.ShallowSizeOfExcludingThis(aMallocSizeOf);
+
     return n;
   }
 };
 
 PtrInfo*
 CCGraph::FindNode(void* aPtr)
 {
   PtrToNodeEntry* e =