OSDN Git Service

Merge "Change IsMethodTracingActive to GetMethodTracingMode for frameworks." into...
authorJeff Hao <jeffhao@google.com>
Fri, 30 Aug 2013 21:10:40 +0000 (21:10 +0000)
committerAndroid (Google) Code Review <android-gerrit@google.com>
Fri, 30 Aug 2013 21:10:40 +0000 (21:10 +0000)
core/java/android/ddm/DdmHandleProfiling.java
core/java/android/os/Debug.java

index e1d359c..ec08393 100644 (file)
@@ -186,7 +186,7 @@ public class DdmHandleProfiling extends ChunkHandler {
      * Handle a "Method PRofiling Query" request.
      */
     private Chunk handleMPRQ(Chunk request) {
-        int result = Debug.isMethodTracingActive() ? 1 : 0;
+        int result = Debug.getMethodTracingMode();
 
         /* create a non-empty reply so the handler fires on completion */
         byte[] reply = { (byte) result };
index b78bbc3..60ce132 100644 (file)
@@ -645,11 +645,13 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo
     }
 
     /**
-     * Determine whether method tracing is currently active.
+     * Determine whether method tracing is currently active and what type is
+     * active.
+     *
      * @hide
      */
-    public static boolean isMethodTracingActive() {
-        return VMDebug.isMethodTracingActive();
+    public static int getMethodTracingMode() {
+        return VMDebug.getMethodTracingMode();
     }
 
     /**