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

Unified Diff: content/shell/android/java/src/org/chromium/content_shell/TraceController.java

Issue 11647013: Enable Tracing on content shell for Android (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add license header, javadoc comment and some minor fix Created 8 years 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 side-by-side diff with in-line comments
Download patch
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();
+}

Powered by Google App Engine
This is Rietveld 408576698