Index: base/trace_event/memory_dump_manager.h |
diff --git a/base/trace_event/memory_dump_manager.h b/base/trace_event/memory_dump_manager.h |
index 1018e453a43a2ee2868b478b83f309de1d6949f7..e7726f456fffe0df2ab46718262ae5077bbdaa74 100644 |
--- a/base/trace_event/memory_dump_manager.h |
+++ b/base/trace_event/memory_dump_manager.h |
@@ -46,7 +46,6 @@ class BASE_EXPORT MemoryDumpManager { |
const GlobalMemoryDumpCallback& callback)>; |
static const char* const kTraceCategory; |
- static const char* const kLogPrefix; |
// This value is returned as the tracing id of the child processes by |
// GetTracingProcessId() when tracing is not enabled. |
@@ -113,13 +112,12 @@ class BASE_EXPORT MemoryDumpManager { |
// to notify about the completion of the global dump (i.e. after all the |
// processes have dumped) and its success (true iff all the dumps were |
// successful). |
- void RequestGlobalDump(MemoryDumpType dump_type, |
- MemoryDumpLevelOfDetail level_of_detail, |
- const GlobalMemoryDumpCallback& callback); |
+ void RequestGlobalDump(MemoryDumpType, |
+ MemoryDumpLevelOfDetail, |
+ const GlobalMemoryDumpCallback&); |
// Same as above (still asynchronous), but without callback. |
- void RequestGlobalDump(MemoryDumpType dump_type, |
- MemoryDumpLevelOfDetail level_of_detail); |
+ void RequestGlobalDump(MemoryDumpType, MemoryDumpLevelOfDetail); |
// Prepare MemoryDumpManager for RequestGlobalMemoryDump calls for tracing |
// related modes (non-SUMMARY_ONLY). |
@@ -280,6 +278,9 @@ class BASE_EXPORT MemoryDumpManager { |
void GetDumpProvidersForPolling( |
std::vector<scoped_refptr<MemoryDumpProviderInfo>>*); |
+ // Returns true if Initialize() has been called, false otherwise. |
+ bool is_initialized() const { return !request_dump_function_.is_null(); } |
+ |
// An ordererd set of registered MemoryDumpProviderInfo(s), sorted by task |
// runner affinity (MDPs belonging to the same task runners are adjacent). |
MemoryDumpProviderInfo::OrderedSet dump_providers_; |