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 1acc62b9cec06df44575963c115c737071ca4cd1..a7c9a3ac41df2d14116f56a7aa99842bbf1af01f 100644 |
--- a/base/trace_event/trace_config_memory_test_util.h |
+++ b/base/trace_event/trace_config_memory_test_util.h |
@@ -71,6 +71,27 @@ class TraceConfigMemoryTestUtil { |
"\"record_mode\":\"record-until-full\"" |
"}", MemoryDumpManager::kTraceCategory); |
} |
+ |
+ static std::string GetTraceConfig_BackgroundTrigger() { |
+ return StringPrintf( |
+ "{" |
+ "\"enable_argument_filter\":false," |
+ "\"enable_sampling\":false," |
+ "\"enable_systrace\":false," |
+ "\"included_categories\":[" |
+ "\"%s\"" |
+ "]," |
+ "\"memory_dump_config\":{" |
+ "\"triggers\":[" |
+ "{" |
+ "\"mode\":\"background\"," |
+ "\"periodic_interval_ms\":1" |
+ "}" |
+ "]" |
+ "}," |
+ "\"record_mode\":\"record-until-full\"" |
+ "}", MemoryDumpManager::kTraceCategory); |
+ } |
}; |
} // namespace trace_event |