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

Unified Diff: base/debug/in_process_tracing.h

Issue 67073002: DO NOT SUBMIT: In-process tracing for debugging tests Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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/base.gypi ('k') | base/debug/in_process_tracing.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/debug/in_process_tracing.h
diff --git a/base/debug/in_process_tracing.h b/base/debug/in_process_tracing.h
new file mode 100644
index 0000000000000000000000000000000000000000..588637152ab00af5d00f83c0d768e7c12d9ce303
--- /dev/null
+++ b/base/debug/in_process_tracing.h
@@ -0,0 +1,34 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef BASE_DEBUG_IN_PROCESS_TRACING_H_
+#define BASE_DEBUG_IN_PROCESS_TRACING_H_
+
+#include <string>
+
+#include "base/compiler_specific.h"
+#include "base/time/time.h"
+
+namespace tracing {
+
+// 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");
+//
+// See base/debug/trace_event.h for documentation of included and excluded
+// category_patterns.
+bool BeginTracing(const std::string& category_patterns);
+
+// End trace and collect the trace output as a json string.
+bool EndTracing(std::string* json_trace_output);
+
+} // namespace tracing
+
+#endif // BASE_DEBUG_IN_PROCESS_TRACING_H_
« no previous file with comments | « base/base.gypi ('k') | base/debug/in_process_tracing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698