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

Unified Diff: chrome/test/base/tracing.h

Issue 2058973002: testing Base URL: https://chromium.googlesource.com/chromium/src.git@set_whitelist
Patch Set: rebase. 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
Index: chrome/test/base/tracing.h
diff --git a/chrome/test/base/tracing.h b/chrome/test/base/tracing.h
index 38832d822ff2b85907ab6a15d733527cf193a5a4..654f762912ad33996d7947904dd10da51a2b3c97 100644
--- a/chrome/test/base/tracing.h
+++ b/chrome/test/base/tracing.h
@@ -9,28 +9,30 @@
#include "base/compiler_specific.h"
#include "base/time/time.h"
+#include "base/trace_event/trace_config.h"
namespace tracing {
// Called from UI thread.
// Begin tracing specified category_patterns on the browser.
-// |category_patterns| is a comma-delimited list of category wildcards.
-// A category pattern can have an optional '-' prefix to make categories with
-// matching categorys excluded. Either all category_patterns must be included
-// or all must be excluded.
-//
-// Example: BeginTracing("test_MyTest*");
-// Example: BeginTracing("test_MyTest*,test_OtherStuff");
-// Example: BeginTracing("-excluded_category1,-excluded_category2");
+// |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_event.h for documentation of included and excluded
-// category_patterns.
-bool BeginTracing(const std::string& category_patterns) WARN_UNUSED_RESULT;
+// See base/trace_event/trace_config.h for documentation of configurations.
+bool BeginTracing(const base::trace_event::TraceConfig& trace_config)
+ WARN_UNUSED_RESULT;
// Called from UI thread.
// Specify a watch event in order to use the WaitForWatchEvent function.
// After |num_occurrences| of the given event have been seen on a particular
// process, WaitForWatchEvent will return.
+// |category_patterns| is a comma-delimited list of category wildcards.
+// A category pattern can have an optional '-' prefix to make categories with
+// matching categorys excluded. Either all category_patterns must be included
+// or all must be excluded.
+//
+// Examples: "test_MyTest*", "test_MyTest*,test_OtherStuff",
+// "-excluded_category1,-excluded_category2"
bool BeginTracingWithWatch(const std::string& category_patterns,
const std::string& category_name,
const std::string& event_name,
« no previous file with comments | « chrome/browser/extensions/api/tab_capture/tab_capture_performancetest.cc ('k') | chrome/test/base/tracing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698