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

Unified Diff: components/tracing/graphics_memory_dump_provider_android.cc

Issue 2012643003: [memory-infra] Dump gpu/android_memtrack on detailed dumps only (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/tracing/graphics_memory_dump_provider_android.cc
diff --git a/components/tracing/graphics_memory_dump_provider_android.cc b/components/tracing/graphics_memory_dump_provider_android.cc
index da2161737f962b7b3e6e6446108e44ba36b4c4f2..26b578561a6130f3c6b1fa3eb0b4aa520e85d700 100644
--- a/components/tracing/graphics_memory_dump_provider_android.cc
+++ b/components/tracing/graphics_memory_dump_provider_android.cc
@@ -39,6 +39,10 @@ GraphicsMemoryDumpProvider* GraphicsMemoryDumpProvider::GetInstance() {
bool GraphicsMemoryDumpProvider::OnMemoryDump(
const base::trace_event::MemoryDumpArgs& args,
base::trace_event::ProcessMemoryDump* pmd) {
+ if (args.level_of_detail !=
+ base::trace_event::MemoryDumpLevelOfDetail::DETAILED)
+ return true; // Dump on detailed memory dumps only.
+
const char kAbstractSocketName[] = "chrome_tracing_memtrack_helper";
struct sockaddr_un addr;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698