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

Unified Diff: base/trace_event/memory_dump_request_args.cc

Issue 2838913002: memory-infra: Add SUMMARY_ONLY MemoryDumpType (Closed)
Patch Set: return true if summary only not added to trace Created 3 years, 8 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: base/trace_event/memory_dump_request_args.cc
diff --git a/base/trace_event/memory_dump_request_args.cc b/base/trace_event/memory_dump_request_args.cc
index 0b525d4213e262798d02ab5e525294f8fd447ccf..633b535fdb458f4d71357b6f620ef6466b2d440b 100644
--- a/base/trace_event/memory_dump_request_args.cc
+++ b/base/trace_event/memory_dump_request_args.cc
@@ -18,6 +18,8 @@ const char* MemoryDumpTypeToString(const MemoryDumpType& dump_type) {
return "explicitly_triggered";
case MemoryDumpType::PEAK_MEMORY_USAGE:
return "peak_memory_usage";
+ case MemoryDumpType::SUMMARY_ONLY:
+ return "summary_only";
}
NOTREACHED();
return "unknown";
@@ -30,6 +32,8 @@ MemoryDumpType StringToMemoryDumpType(const std::string& str) {
return MemoryDumpType::EXPLICITLY_TRIGGERED;
if (str == "peak_memory_usage")
return MemoryDumpType::PEAK_MEMORY_USAGE;
+ if (str == "summary_only")
+ return MemoryDumpType::SUMMARY_ONLY;
NOTREACHED();
return MemoryDumpType::LAST;
}

Powered by Google App Engine
This is Rietveld 408576698