Loading core/java/android/ddm/DdmHandleProfiling.java +1 −1 Original line number Diff line number Diff line Loading @@ -185,7 +185,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 }; Loading core/java/android/os/Debug.java +5 −3 Original line number Diff line number Diff line Loading @@ -524,11 +524,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(); } /** Loading Loading
core/java/android/ddm/DdmHandleProfiling.java +1 −1 Original line number Diff line number Diff line Loading @@ -185,7 +185,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 }; Loading
core/java/android/os/Debug.java +5 −3 Original line number Diff line number Diff line Loading @@ -524,11 +524,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(); } /** Loading