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

Side by Side Diff: content/public/android/java/src/org/chromium/content/browser/TraceController.java

Issue 11647013: Enable Tracing on content shell for Android (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Extend new class from stdio subscriber. Created 7 years, 11 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
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 package org.chromium.content.browser;
6
7 import org.chromium.base.JNINamespace;
8
9 @JNINamespace("content")
Ted C 2013/01/04 17:40:48 Convention is to put the annotations below the jav
10 /**
11 * Handler for tracing related intent.
12 */
13 public class TraceController {
Ted C 2013/01/04 17:40:48 I would rename this to TracingIntentHandler as wel
14
15 /**
16 * Begin recording trace events.
17 *
18 * @param path Specifies where the trace data will be saved when tracing is stopped.
19 */
20 public static void beginTracing(String path) {
21 nativeBeginTracing(path);
22 }
23
24 /**
25 * Stop recording trace events, and dump the data to the file
26 */
27 public static void endTracing() {
28 nativeEndTracing();
29 }
30
31 private static native void nativeBeginTracing(String path);
32 private static native void nativeEndTracing();
33 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698