Merge "Change IsMethodTracingActive to GetMethodTracingMode for frameworks." into klp-dev
This commit is contained in:
@@ -186,7 +186,7 @@ public class DdmHandleProfiling extends ChunkHandler {
|
|||||||
* Handle a "Method PRofiling Query" request.
|
* Handle a "Method PRofiling Query" request.
|
||||||
*/
|
*/
|
||||||
private Chunk handleMPRQ(Chunk 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 */
|
/* create a non-empty reply so the handler fires on completion */
|
||||||
byte[] reply = { (byte) result };
|
byte[] reply = { (byte) result };
|
||||||
|
|||||||
@@ -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
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static boolean isMethodTracingActive() {
|
public static int getMethodTracingMode() {
|
||||||
return VMDebug.isMethodTracingActive();
|
return VMDebug.getMethodTracingMode();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user