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

Unified Diff: chrome/test/base/tracing.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: Fixes. 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..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.

Powered by Google App Engine
This is Rietveld 408576698