public final class Debug extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Debug.InstructionCount |
static class |
Debug.MemoryInfo |
| Modifier and Type | Field and Description |
|---|---|
static int |
SHOW_CLASSLOADER |
static int |
SHOW_FULL_DETAIL |
static int |
SHOW_INITIALIZED |
static int |
TRACE_COUNT_ALLOCS |
public static final int TRACE_COUNT_ALLOCS
public static final int SHOW_FULL_DETAIL
public static final int SHOW_CLASSLOADER
public static final int SHOW_INITIALIZED
public static void waitForDebugger()
public static boolean waitingForDebugger()
public static boolean isDebuggerConnected()
@Deprecated public static void changeDebugPort(int port)
public static void startNativeTracing()
public static void stopNativeTracing()
public static void enableEmulatorTraceOutput()
public static void startMethodTracing()
public static void startMethodTracing(String traceName)
public static void startMethodTracing(String traceName, int bufferSize)
public static void startMethodTracing(String traceName, int bufferSize, int flags)
public static void stopMethodTracing()
public static long threadCpuTimeNanos()
public static void startAllocCounting()
public static void stopAllocCounting()
public static int getGlobalAllocCount()
public static int getGlobalAllocSize()
public static int getGlobalFreedCount()
public static int getGlobalFreedSize()
public static int getGlobalClassInitCount()
public static int getGlobalClassInitTime()
@Deprecated public static int getGlobalExternalAllocCount()
@Deprecated public static int getGlobalExternalAllocSize()
@Deprecated public static int getGlobalExternalFreedCount()
@Deprecated public static int getGlobalExternalFreedSize()
public static int getGlobalGcInvocationCount()
public static int getThreadAllocCount()
public static int getThreadAllocSize()
@Deprecated public static int getThreadExternalAllocCount()
@Deprecated public static int getThreadExternalAllocSize()
public static int getThreadGcInvocationCount()
public static void resetGlobalAllocCount()
public static void resetGlobalAllocSize()
public static void resetGlobalFreedCount()
public static void resetGlobalFreedSize()
public static void resetGlobalClassInitCount()
public static void resetGlobalClassInitTime()
@Deprecated public static void resetGlobalExternalAllocCount()
@Deprecated public static void resetGlobalExternalAllocSize()
@Deprecated public static void resetGlobalExternalFreedCount()
@Deprecated public static void resetGlobalExternalFreedSize()
public static void resetGlobalGcInvocationCount()
public static void resetThreadAllocCount()
public static void resetThreadAllocSize()
@Deprecated public static void resetThreadExternalAllocCount()
@Deprecated public static void resetThreadExternalAllocSize()
public static void resetThreadGcInvocationCount()
public static void resetAllCounts()
public static long getNativeHeapSize()
public static long getNativeHeapAllocatedSize()
public static long getNativeHeapFreeSize()
public static void getMemoryInfo(Debug.MemoryInfo memoryInfo)
public static long getPss()
@Deprecated public static int setAllocationLimit(int limit)
@Deprecated public static int setGlobalAllocationLimit(int limit)
public static void printLoadedClasses(int flags)
public static int getLoadedClassCount()
public static void dumpHprofData(String fileName) throws IOException
IOExceptionpublic static int getBinderSentTransactions()
public static int getBinderReceivedTransactions()
public static final int getBinderLocalObjectCount()
public static final int getBinderProxyObjectCount()
public static final int getBinderDeathObjectCount()
public static boolean dumpService(String name, FileDescriptor fd, String[] args)
Copyright © 2008-2013. All Rights Reserved.