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

Unified Diff: mojo/services/tracing/tracing.mojom

Issue 1049993002: Get mojo_shell building inside chromium checkout. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix presubmit Created 5 years, 9 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
« no previous file with comments | « mojo/services/tracing/trace_data_sink.cc ('k') | mojo/services/view_manager/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/tracing/tracing.mojom
diff --git a/mojo/services/tracing/tracing.mojom b/mojo/services/tracing/tracing.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..fa8be1f655df695b43a8a17d294dd40f74b30a54
--- /dev/null
+++ b/mojo/services/tracing/tracing.mojom
@@ -0,0 +1,28 @@
+// Copyright 2014 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.
+
+module tracing;
+
+// To participate in the tracing ecosystem, implement the TraceController
+// interface and connect to the tracing app. Then, when the controller's Start()
+// function is called collect tracing data and pass it back via the provided
+// TraceDataCollector interface up until Stop() is called.
+
+interface TraceController {
+ StartTracing(string categories, TraceDataCollector collector);
+ StopTracing();
+};
+
+interface TraceDataCollector {
+ DataCollected(string json);
+};
+
+interface TraceCoordinator {
+ // Request tracing data from all connected TraceControllers to stream to
+ // |stream|.
+ Start(handle<data_pipe_producer> stream, string categories);
+
+ // Stop tracing and flush results to file.
+ StopAndFlush();
+};
« no previous file with comments | « mojo/services/tracing/trace_data_sink.cc ('k') | mojo/services/view_manager/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698