Index: mojo/services/tracing/interfaces/tracing.mojom |
diff --git a/third_party/mojo/src/mojo/services/tracing/public/interfaces/tracing.mojom b/mojo/services/tracing/interfaces/tracing.mojom |
similarity index 54% |
copy from third_party/mojo/src/mojo/services/tracing/public/interfaces/tracing.mojom |
copy to mojo/services/tracing/interfaces/tracing.mojom |
index fd95c072d705e15791f314b85ea88f718017c888..b2300e03c621b4c1774b9e84e0840b5dc9e29be5 100644 |
--- a/third_party/mojo/src/mojo/services/tracing/public/interfaces/tracing.mojom |
+++ b/mojo/services/tracing/interfaces/tracing.mojom |
@@ -2,26 +2,29 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+[DartPackage="mojo_services"] |
module tracing; |
-// To participate in the tracing ecosystem, implement the TraceController |
-// interface and connect to the tracing app. Then, when the controller's Start() |
+// To participate in the tracing ecosystem, implement the TraceProvider |
+// interface and connect to the tracing app. Then, when the provider's Start() |
// function is called collect tracing data and pass it back via the provided |
-// TraceDataCollector interface up until Stop() is called. |
+// TraceRecorder interface up until Stop() is called. |
-interface TraceController { |
+[ServiceName="tracing::TraceProvider"] |
+interface TraceProvider { |
// Categories can either be the empty string to mean the default set of |
// categories or a comma-delimited list of categories to trace. |
- StartTracing(string categories, TraceDataCollector collector); |
+ StartTracing(string categories, TraceRecorder recorder); |
StopTracing(); |
}; |
-interface TraceDataCollector { |
- DataCollected(string json); |
+interface TraceRecorder { |
+ Record(string json); |
}; |
-interface TraceCoordinator { |
- // Request tracing data from all connected TraceControllers to stream to |
+[ServiceName="tracing::TraceCollector"] |
+interface TraceCollector { |
+ // Request tracing data from all connected providers to stream to |
// |stream|. |
Start(handle<data_pipe_producer> stream, string categories); |