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

Unified Diff: ui/gl/gl_image_shared_memory.cc

Issue 2535213002: [WIP] Add SharedMemoryTracker to dump base::SharedMemory usage
Patch Set: Remove unneeded calls Created 4 years, 1 month 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: ui/gl/gl_image_shared_memory.cc
diff --git a/ui/gl/gl_image_shared_memory.cc b/ui/gl/gl_image_shared_memory.cc
index 83c8e5eba5388c0585072fa87a2c80f51699f499..8798a105b729119ff7f318c159d51494714d4c90 100644
--- a/ui/gl/gl_image_shared_memory.cc
+++ b/ui/gl/gl_image_shared_memory.cc
@@ -6,6 +6,7 @@
#include "base/logging.h"
#include "base/memory/shared_memory.h"
+#include "base/memory/shared_memory_dump_provider.h"
#include "base/numerics/safe_math.h"
#include "base/process/process_handle.h"
#include "base/sys_info.h"
@@ -91,6 +92,8 @@ void GLImageSharedMemory::OnMemoryDump(
shared_memory_id_);
pmd->CreateSharedGlobalAllocatorDump(guid);
pmd->AddOwnershipEdge(dump->guid(), guid);
+ base::SharedMemoryDumpProvider::GetInstance()->AddSuballocation(pmd,
+ dump->guid());
}
} // namespace gl
« base/memory/shared_memory_posix.cc ('K') | « gpu/command_buffer/service/transfer_buffer_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698