Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(232)

Unified Diff: components/discardable_memory/service/discardable_shared_memory_manager.cc

Issue 2535213002: [WIP] Add SharedMemoryTracker to dump base::SharedMemory usage
Patch Set: (rebase) Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/discardable_memory/service/discardable_shared_memory_manager.cc
diff --git a/components/discardable_memory/service/discardable_shared_memory_manager.cc b/components/discardable_memory/service/discardable_shared_memory_manager.cc
index 0913399d492570bdccd781b9cc6850eacc26b5e8..add693c9f65d2be082dde8b7e6cebf2034a07b6b 100644
--- a/components/discardable_memory/service/discardable_shared_memory_manager.cc
+++ b/components/discardable_memory/service/discardable_shared_memory_manager.cc
@@ -330,6 +330,10 @@ bool DiscardableSharedMemoryManager::OnMemoryDump(
pmd->CreateSharedGlobalAllocatorDump(shared_segment_guid);
pmd->AddOwnershipEdge(dump->guid(), shared_segment_guid);
+// TODO(hajimehoshi): base::SharedMemoryTracker::AddOwnershipEdges should
+// be used instead of CreateSharedGlobalAllocatorDump, but the |dump|
+// doesn't have 'size' attribute here and it wouldn't make sense so far.
+
#if defined(COUNT_RESIDENT_BYTES_SUPPORTED)
if (args.level_of_detail ==
base::trace_event::MemoryDumpLevelOfDetail::DETAILED) {

Powered by Google App Engine
This is Rietveld 408576698