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

Unified Diff: content/browser/tracing/tracing_ui.cc

Issue 2952693002: Revert of Change memory dumps to not use periodic dumps by default. (Closed)
Patch Set: 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/trace_event/trace_config_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/tracing/tracing_ui.cc
diff --git a/content/browser/tracing/tracing_ui.cc b/content/browser/tracing/tracing_ui.cc
index 7943d902f083f3e4044cf5f92b32e5397427a49e..14389658a420ecb7b3f5d00d287fedeabee87753 100644
--- a/content/browser/tracing/tracing_ui.cc
+++ b/content/browser/tracing/tracing_ui.cc
@@ -89,24 +89,6 @@
*trace_config = base::trace_event::TraceConfig(category_filter_string,
record_mode);
- // When enabling memory-infra via tracing, use periodic dumping to trigger a
- // detailed dump every 5s.
- if (trace_config->IsCategoryGroupEnabled(
- base::trace_event::MemoryDumpManager::kTraceCategory)) {
- base::trace_event::TraceConfig::MemoryDumpConfig::Trigger trigger = {
- 5000, // min_time_between_dumps_ms
- base::trace_event::MemoryDumpLevelOfDetail::DETAILED,
- base::trace_event::MemoryDumpType::PERIODIC_INTERVAL};
- base::trace_event::TraceConfig::MemoryDumpConfig memory_dump_config;
- memory_dump_config.triggers.push_back(trigger);
-
- // TODO(ssid): Make a newly constructed MemoryDumpConfig use the default
- // dump modes.
- memory_dump_config.allowed_dump_modes.insert(
- base::trace_event::MemoryDumpLevelOfDetail::DETAILED);
- trace_config->ResetMemoryDumpConfig(memory_dump_config);
- }
-
bool enable_systrace;
options_ok &= options->GetBoolean("useSystemTracing", &enable_systrace);
if (enable_systrace)
« no previous file with comments | « base/trace_event/trace_config_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698