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

Side by Side Diff: services/tracing/tracing.mojom

Issue 791493006: De-client tracing.TraceController interface (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 module tracing; 5 module tracing;
6 6
7 // To particate in the tracing ecosystem, implement the TraceController 7 // To particate in the tracing ecosystem, implement the TraceController
8 // interface and connect to the tracing app. Then, when the controller's Start() 8 // interface and connect to the tracing app. Then, when the controller's Start()
9 // function is called collect tracing data and pass it back via the 9 // function is called collect tracing data and pass it back via the provided
10 // TraceDataCollector interface up until Stop() is called. 10 // TraceDataCollector interface up until Stop() is called.
11 11
12 [Client=TraceDataCollector]
13 interface TraceController { 12 interface TraceController {
14 StartTracing(string categories); 13 StartTracing(string categories, TraceDataCollector collector);
15 StopTracing(); 14 StopTracing();
16 }; 15 };
17 16
18 [Client=TraceController]
19 interface TraceDataCollector { 17 interface TraceDataCollector {
20 DataCollected(string json); 18 DataCollected(string json);
21 EndTracing();
22 }; 19 };
23 20
24 interface TraceCoordinator { 21 interface TraceCoordinator {
25 // Request tracing data from all connected TraceControllers to stream to 22 // Request tracing data from all connected TraceControllers to stream to
26 // |stream|. 23 // |stream|.
27 Start(handle<data_pipe_producer> stream, string categories); 24 Start(handle<data_pipe_producer> stream, string categories);
28 25
29 // Stop tracing and flush results to file. 26 // Stop tracing and flush results to file.
30 StopAndFlush(); 27 StopAndFlush();
31 }; 28 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698