Index: chrome/test/base/tracing.h |
diff --git a/chrome/test/base/tracing.h b/chrome/test/base/tracing.h |
index 38832d822ff2b85907ab6a15d733527cf193a5a4..3f988e660a6536e9a4651ad4c13cf3655f050a7b 100644 |
--- a/chrome/test/base/tracing.h |
+++ b/chrome/test/base/tracing.h |
@@ -9,6 +9,7 @@ |
#include "base/compiler_specific.h" |
#include "base/time/time.h" |
+#include "base/trace_event/trace_config.h" |
namespace tracing { |
@@ -37,6 +38,15 @@ bool BeginTracingWithWatch(const std::string& category_patterns, |
int num_occurrences) WARN_UNUSED_RESULT; |
// Called from UI thread. |
+// Begin tracing specified category_patterns on the browser. |
+// |trace_config| specifies the configuration for tracing. This includes the |
+// list of categories enabled, tracing modes and memory dumps configuration. |
+// |
+// See base/trace_event/trace_config.h for documentation of configurations. |
+bool BeginTracingWithTraceConfig( |
+ const base::trace_event::TraceConfig& trace_config) WARN_UNUSED_RESULT; |
+ |
+// Called from UI thread. |
// Wait on the event set with BeginTracingWithWatch. If non-zero, return after |
// |timeout| regardless of watch event notification. Returns true if watch event |
// occurred, false if it timed out. |