Index: base/trace_event/memory_dump_request_args.h |
diff --git a/base/trace_event/memory_dump_request_args.h b/base/trace_event/memory_dump_request_args.h |
index f3ff9d8e3b5f6ef6c14706b5411d96974fab9a4f..b536c7818d051205359618dc6ef4c1b72a509f1b 100644 |
--- a/base/trace_event/memory_dump_request_args.h |
+++ b/base/trace_event/memory_dump_request_args.h |
@@ -24,7 +24,8 @@ enum class MemoryDumpType { |
TASK_END, // Dumping memory at the ending of a message-loop task. |
PERIODIC_INTERVAL, // Dumping memory at periodic intervals. |
EXPLICITLY_TRIGGERED, // Non maskable dump request. |
- LAST = EXPLICITLY_TRIGGERED // For IPC macros. |
+ PEAK_MEMORY_USAGE, // Dumping memory at detected peak total memory usage. |
+ LAST = PEAK_MEMORY_USAGE // For IPC macros. |
}; |
// Tells the MemoryDumpProvider(s) how much detailed their dumps should be. |
@@ -72,6 +73,8 @@ using MemoryDumpCallback = Callback<void(uint64_t dump_guid, bool success)>; |
BASE_EXPORT const char* MemoryDumpTypeToString(const MemoryDumpType& dump_type); |
+BASE_EXPORT MemoryDumpType StringToMemoryDumpType(const std::string& str); |
+ |
BASE_EXPORT const char* MemoryDumpLevelOfDetailToString( |
const MemoryDumpLevelOfDetail& level_of_detail); |