Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ac27705f authored by Jeff Hao's avatar Jeff Hao
Browse files

Change IsMethodTracingActive to GetMethodTracingMode for frameworks.

Bug: 9968521

Change-Id: Ic63340e0d2fef18f27fdfabdd056ac5304c3d54f
(cherry picked from commit ffbe799f3824f4be705ca726988355d3943a9004)
parent 51e4c4c1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 };
+5 −3
Original line number Diff line number Diff line
@@ -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();
    }

    /**