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

Unified Diff: base/trace_event/trace_config_memory_test_util.h

Issue 2047533002: [tracing] Add browser test for background memory tracing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@set_whitelist
Patch Set: Remove useless watch event. Created 4 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/memory_dump_manager_unittest.cc ('k') | base/trace_event/trace_config_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/trace_event/trace_config_memory_test_util.h
diff --git a/base/trace_event/trace_config_memory_test_util.h b/base/trace_event/trace_config_memory_test_util.h
index a7c9a3ac41df2d14116f56a7aa99842bbf1af01f..49f9a810de2c6ff85ccad94f1856029a95cf9dbd 100644
--- a/base/trace_event/trace_config_memory_test_util.h
+++ b/base/trace_event/trace_config_memory_test_util.h
@@ -72,7 +72,7 @@ class TraceConfigMemoryTestUtil {
"}", MemoryDumpManager::kTraceCategory);
}
- static std::string GetTraceConfig_BackgroundTrigger() {
+ static std::string GetTraceConfig_BackgroundTrigger(int period_ms) {
return StringPrintf(
"{"
"\"enable_argument_filter\":false,"
@@ -85,12 +85,12 @@ class TraceConfigMemoryTestUtil {
"\"triggers\":["
"{"
"\"mode\":\"background\","
- "\"periodic_interval_ms\":1"
+ "\"periodic_interval_ms\":%d"
"}"
"]"
"},"
"\"record_mode\":\"record-until-full\""
- "}", MemoryDumpManager::kTraceCategory);
+ "}", MemoryDumpManager::kTraceCategory, period_ms);
}
};
« no previous file with comments | « base/trace_event/memory_dump_manager_unittest.cc ('k') | base/trace_event/trace_config_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698