Index: content/shell/android/java/src/org/chromium/content_shell/TraceController.java |
diff --git a/content/shell/android/java/src/org/chromium/content_shell/TraceController.java b/content/shell/android/java/src/org/chromium/content_shell/TraceController.java |
new file mode 100644 |
index 0000000000000000000000000000000000000000..16134a8a467f39e375624ae15e0716591efba679 |
--- /dev/null |
+++ b/content/shell/android/java/src/org/chromium/content_shell/TraceController.java |
@@ -0,0 +1,30 @@ |
+// Copyright (c) 2012 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. |
+ |
+package org.chromium.content_shell; |
+ |
+import org.chromium.base.JNINamespace; |
+ |
+@JNINamespace("content") |
Ted C
2012/12/26 16:18:28
class level javadoc needed
|
+public class TraceController { |
+ |
+ /** |
+ * Begin to record trace event. |
Ted C
2012/12/26 16:18:28
Begin recording trace events.
|
+ * |
+ * @param path Where the trace data will save when stop tracing. |
Ted C
2012/12/26 16:18:28
Specifies where the trace data will be saved when
|
+ */ |
+ public static void beginTracing(String path) { |
+ nativeBeginTracing(path); |
+ } |
+ |
+ /** |
+ * Stop recording trace event, and dump data to file |
Ted C
2012/12/26 16:18:28
event[s], and dump [the] data to the file.
|
+ */ |
+ public static void endTracing() { |
+ nativeEndTracing(); |
+ } |
+ |
+ private static native void nativeBeginTracing(String path); |
+ private static native void nativeEndTracing(); |
+} |