OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 // Next MinVersion: 1 | 5 // Next MinVersion: 2 |
6 | 6 |
7 module arc.mojom; | 7 module arc.mojom; |
8 | 8 |
9 interface TracingInstance { | 9 interface TracingInstance { |
10 // Queries available tracing categories in the container. | 10 // Queries available tracing categories in the container. |
11 QueryAvailableCategories@0() => (array<string> categories); | 11 QueryAvailableCategories@0() => (array<string> categories); |
12 | 12 |
13 // Starts tracing in the container with the given categories. | 13 // Starts tracing in the container with the given categories. A handle is |
14 StartTracing@1(array<string> categories) => (bool success); | 14 // passed to the client for sending trace events back to the host. The client |
| 15 // should send trace event as a JSON object in each write. |
| 16 StartTracing@1(array<string> categories, |
| 17 [MinVersion=1] handle? socket) => (bool success); |
15 | 18 |
16 // Stops tracing in the container. | 19 // Stops tracing in the container. |
17 StopTracing@2() => (bool success); | 20 StopTracing@2() => (bool success); |
18 }; | 21 }; |
OLD | NEW |