dalvik.system
Class VMDebug

java.lang.Object
  extended by dalvik.system.VMDebug

public final class VMDebug
extends java.lang.Object


Field Summary
static java.lang.String DEFAULT_METHOD_TRACE_FILE_NAME
           
static int KIND_ALL_COUNTS
           
static int KIND_GLOBAL_ALLOCATED_BYTES
           
static int KIND_GLOBAL_ALLOCATED_OBJECTS
           
static int KIND_GLOBAL_EXT_ALLOCATED_BYTES
           
static int KIND_GLOBAL_EXT_ALLOCATED_OBJECTS
           
static int KIND_GLOBAL_EXT_FREED_BYTES
           
static int KIND_GLOBAL_EXT_FREED_OBJECTS
           
static int KIND_GLOBAL_FREED_BYTES
           
static int KIND_GLOBAL_FREED_OBJECTS
           
static int KIND_GLOBAL_GC_INVOCATIONS
           
static int KIND_THREAD_ALLOCATED_BYTES
           
static int KIND_THREAD_ALLOCATED_OBJECTS
           
static int KIND_THREAD_EXT_ALLOCATED_BYTES
           
static int KIND_THREAD_EXT_ALLOCATED_OBJECTS
           
static int KIND_THREAD_EXT_FREED_BYTES
           
static int KIND_THREAD_EXT_FREED_OBJECTS
           
static int KIND_THREAD_FREED_BYTES
           
static int KIND_THREAD_FREED_OBJECTS
           
static int KIND_THREAD_GC_INVOCATIONS
           
static int TRACE_COUNT_ALLOCS
           
 
Method Summary
static void dumpHprofData(java.lang.String fileName)
           
static int getAllocCount(int kind)
           
static void getInstructionCount(int[] counts)
           
static int getLoadedClassCount()
           
static boolean isDebuggerConnected()
           
static boolean isDebuggingEnabled()
           
static long lastDebuggerActivity()
           
static void printLoadedClasses(int flags)
           
static void resetAllocCount(int kinds)
           
static void resetInstructionCount()
           
static int setAllocationLimit(int limit)
           
static int setGlobalAllocationLimit(int limit)
           
static void startAllocCounting()
           
static void startEmulatorTracing()
           
static void startInstructionCounting()
           
static void startMethodTracing()
           
static void startMethodTracing(java.lang.String traceFileName, int bufferSize, int flags)
           
static void stopAllocCounting()
           
static void stopEmulatorTracing()
           
static void stopInstructionCounting()
           
static void stopMethodTracing()
           
static long threadCpuTimeNanos()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_METHOD_TRACE_FILE_NAME

public static final java.lang.String DEFAULT_METHOD_TRACE_FILE_NAME
See Also:
Constant Field Values

TRACE_COUNT_ALLOCS

public static final int TRACE_COUNT_ALLOCS
See Also:
Constant Field Values

KIND_GLOBAL_ALLOCATED_OBJECTS

public static final int KIND_GLOBAL_ALLOCATED_OBJECTS
See Also:
Constant Field Values

KIND_GLOBAL_ALLOCATED_BYTES

public static final int KIND_GLOBAL_ALLOCATED_BYTES
See Also:
Constant Field Values

KIND_GLOBAL_FREED_OBJECTS

public static final int KIND_GLOBAL_FREED_OBJECTS
See Also:
Constant Field Values

KIND_GLOBAL_FREED_BYTES

public static final int KIND_GLOBAL_FREED_BYTES
See Also:
Constant Field Values

KIND_GLOBAL_GC_INVOCATIONS

public static final int KIND_GLOBAL_GC_INVOCATIONS
See Also:
Constant Field Values

KIND_GLOBAL_EXT_ALLOCATED_OBJECTS

public static final int KIND_GLOBAL_EXT_ALLOCATED_OBJECTS
See Also:
Constant Field Values

KIND_GLOBAL_EXT_ALLOCATED_BYTES

public static final int KIND_GLOBAL_EXT_ALLOCATED_BYTES
See Also:
Constant Field Values

KIND_GLOBAL_EXT_FREED_OBJECTS

public static final int KIND_GLOBAL_EXT_FREED_OBJECTS
See Also:
Constant Field Values

KIND_GLOBAL_EXT_FREED_BYTES

public static final int KIND_GLOBAL_EXT_FREED_BYTES
See Also:
Constant Field Values

KIND_THREAD_ALLOCATED_OBJECTS

public static final int KIND_THREAD_ALLOCATED_OBJECTS
See Also:
Constant Field Values

KIND_THREAD_ALLOCATED_BYTES

public static final int KIND_THREAD_ALLOCATED_BYTES
See Also:
Constant Field Values

KIND_THREAD_FREED_OBJECTS

public static final int KIND_THREAD_FREED_OBJECTS
See Also:
Constant Field Values

KIND_THREAD_FREED_BYTES

public static final int KIND_THREAD_FREED_BYTES
See Also:
Constant Field Values

KIND_THREAD_GC_INVOCATIONS

public static final int KIND_THREAD_GC_INVOCATIONS
See Also:
Constant Field Values

KIND_THREAD_EXT_ALLOCATED_OBJECTS

public static final int KIND_THREAD_EXT_ALLOCATED_OBJECTS
See Also:
Constant Field Values

KIND_THREAD_EXT_ALLOCATED_BYTES

public static final int KIND_THREAD_EXT_ALLOCATED_BYTES
See Also:
Constant Field Values

KIND_THREAD_EXT_FREED_OBJECTS

public static final int KIND_THREAD_EXT_FREED_OBJECTS
See Also:
Constant Field Values

KIND_THREAD_EXT_FREED_BYTES

public static final int KIND_THREAD_EXT_FREED_BYTES
See Also:
Constant Field Values

KIND_ALL_COUNTS

public static final int KIND_ALL_COUNTS
See Also:
Constant Field Values
Method Detail

lastDebuggerActivity

public static long lastDebuggerActivity()

isDebuggingEnabled

public static boolean isDebuggingEnabled()

isDebuggerConnected

public static boolean isDebuggerConnected()

startMethodTracing

public static void startMethodTracing()

startMethodTracing

public static void startMethodTracing(java.lang.String traceFileName,
                                      int bufferSize,
                                      int flags)

stopMethodTracing

public static void stopMethodTracing()

startEmulatorTracing

public static void startEmulatorTracing()

stopEmulatorTracing

public static void stopEmulatorTracing()

threadCpuTimeNanos

public static long threadCpuTimeNanos()

startAllocCounting

public static void startAllocCounting()

stopAllocCounting

public static void stopAllocCounting()

getAllocCount

public static int getAllocCount(int kind)

resetAllocCount

public static void resetAllocCount(int kinds)

setAllocationLimit

public static int setAllocationLimit(int limit)

setGlobalAllocationLimit

public static int setGlobalAllocationLimit(int limit)

startInstructionCounting

public static void startInstructionCounting()

stopInstructionCounting

public static void stopInstructionCounting()

getInstructionCount

public static void getInstructionCount(int[] counts)

resetInstructionCount

public static void resetInstructionCount()

printLoadedClasses

public static void printLoadedClasses(int flags)

getLoadedClassCount

public static int getLoadedClassCount()

dumpHprofData

public static void dumpHprofData(java.lang.String fileName)
                          throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2008-2010. All Rights Reserved.