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

Unified Diff: base/trace_event/trace_config.cc

Issue 1329273002: [tracing] Send smaps file desciptor to child process for tracing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 5 years, 2 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/trace_event/trace_config.h ('k') | components/tracing/child_memory_dump_manager_delegate_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/trace_event/trace_config.cc
diff --git a/base/trace_event/trace_config.cc b/base/trace_event/trace_config.cc
index 9f0367bd2a21b09789ac81f060639f375caf1f73..6d03f5b8ba29a3ea728dc53300ad06e22c1574fc 100644
--- a/base/trace_event/trace_config.cc
+++ b/base/trace_event/trace_config.cc
@@ -252,6 +252,16 @@ void TraceConfig::Clear() {
memory_dump_config_.clear();
}
+bool TraceConfig::IsDetailedMemoryDumpEnabled() const {
+ if (IsCategoryEnabled(MemoryDumpManager::kTraceCategory)) {
+ for (const MemoryDumpTriggerConfig& config : memory_dump_config_) {
+ if (config.level_of_detail == MemoryDumpLevelOfDetail::DETAILED)
+ return true;
+ }
+ }
+ return false;
+}
+
void TraceConfig::InitializeDefault() {
record_mode_ = RECORD_UNTIL_FULL;
enable_sampling_ = false;
« no previous file with comments | « base/trace_event/trace_config.h ('k') | components/tracing/child_memory_dump_manager_delegate_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698