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

Unified Diff: base/trace_event/memory_infra_background_whitelist.h

Issue 2876543002: memory-infra: Don't invoke all dump providers in SUMMARY_ONLY mode (Closed)
Patch Set: address comments Created 3 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
Index: base/trace_event/memory_infra_background_whitelist.h
diff --git a/base/trace_event/memory_infra_background_whitelist.h b/base/trace_event/memory_infra_background_whitelist.h
index b8d704ae241c27d31d7e47fc4f4a4804590c8f04..11900109af71ce0965c19f08b8a3fa85d33f7fed 100644
--- a/base/trace_event/memory_infra_background_whitelist.h
+++ b/base/trace_event/memory_infra_background_whitelist.h
@@ -18,6 +18,10 @@ namespace trace_event {
// Checks if the given |mdp_name| is in the whitelist.
bool BASE_EXPORT IsMemoryDumpProviderWhitelisted(const char* mdp_name);
+// Checks if the given |mdp_name| is required for summary dumps.
+bool BASE_EXPORT
+IsMemoryDumpProviderWhitelistedForSummary(const char* mdp_name);
+
// Checks if the given |name| matches any of the whitelisted patterns.
bool BASE_EXPORT IsMemoryAllocatorDumpNameWhitelisted(const std::string& name);
@@ -25,6 +29,8 @@ bool BASE_EXPORT IsMemoryAllocatorDumpNameWhitelisted(const std::string& name);
// the list must be nullptr.
void BASE_EXPORT SetDumpProviderWhitelistForTesting(const char* const* list);
void BASE_EXPORT
+SetDumpProviderSummaryWhitelistForTesting(const char* const* list);
+void BASE_EXPORT
SetAllocatorDumpNameWhitelistForTesting(const char* const* list);
} // namespace trace_event
« no previous file with comments | « base/trace_event/memory_dump_provider_info.cc ('k') | base/trace_event/memory_infra_background_whitelist.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698