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

Unified Diff: base/trace_event/memory_dump_manager.h

Issue 2865283002: Reland of Linux: Disable DBus auto-launch (Closed)
Patch Set: fix test Created 3 years, 6 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 | « base/BUILD.gn ('k') | base/trace_event/memory_dump_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « base/BUILD.gn ('k') | base/trace_event/memory_dump_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698