Index: components/arc/common/trace.mojom |
diff --git a/components/arc/common/trace.mojom b/components/arc/common/trace.mojom |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a02cf570a8b6288eae485206ce973bf3c2d9f35c |
--- /dev/null |
+++ b/components/arc/common/trace.mojom |
@@ -0,0 +1,20 @@ |
+// Copyright 2016 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. |
+ |
+// Next MinVersion: 1 |
+ |
+module arc.mojom; |
+ |
+interface TraceInstance { |
+ // Queries available tracing categories in the container. |
+ QueryAvailableCategories@0() => (array<string> categories); |
+ |
+ // Starts tracing in the container with the given categories. |
+ StartTracing@1(array<string> categories) => (bool success); |
+ |
+ // Stops tracing in the container and gets the report from client. |
+ // The client side should implement a circular buffer to limit the size of |
+ // the report in a reasonable size. Currently the buffer size is set to 16MB. |
+ StopTracing@2() => (string report); |
+}; |