android.os
Class Debug
java.lang.Object
android.os.Debug
public final class Debug
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TRACE_COUNT_ALLOCS
public static final int TRACE_COUNT_ALLOCS
- See Also:
- Constant Field Values
SHOW_FULL_DETAIL
public static final int SHOW_FULL_DETAIL
- See Also:
- Constant Field Values
SHOW_CLASSLOADER
public static final int SHOW_CLASSLOADER
- See Also:
- Constant Field Values
SHOW_INITIALIZED
public static final int SHOW_INITIALIZED
- See Also:
- Constant Field Values
waitForDebugger
public static void waitForDebugger()
waitingForDebugger
public static boolean waitingForDebugger()
isDebuggerConnected
public static boolean isDebuggerConnected()
changeDebugPort
public static void changeDebugPort(int port)
startNativeTracing
public static void startNativeTracing()
stopNativeTracing
public static void stopNativeTracing()
enableEmulatorTraceOutput
public static void enableEmulatorTraceOutput()
startMethodTracing
public static void startMethodTracing()
startMethodTracing
public static void startMethodTracing(String traceName)
startMethodTracing
public static void startMethodTracing(String traceName,
int bufferSize)
startMethodTracing
public static void startMethodTracing(String traceName,
int bufferSize,
int flags)
stopMethodTracing
public static void stopMethodTracing()
threadCpuTimeNanos
public static long threadCpuTimeNanos()
startAllocCounting
public static void startAllocCounting()
stopAllocCounting
public static void stopAllocCounting()
getGlobalAllocCount
public static int getGlobalAllocCount()
getGlobalAllocSize
public static int getGlobalAllocSize()
getGlobalFreedCount
public static int getGlobalFreedCount()
getGlobalFreedSize
public static int getGlobalFreedSize()
getGlobalClassInitCount
public static int getGlobalClassInitCount()
getGlobalClassInitTime
public static int getGlobalClassInitTime()
getGlobalExternalAllocCount
public static int getGlobalExternalAllocCount()
getGlobalExternalAllocSize
public static int getGlobalExternalAllocSize()
getGlobalExternalFreedCount
public static int getGlobalExternalFreedCount()
getGlobalExternalFreedSize
public static int getGlobalExternalFreedSize()
getGlobalGcInvocationCount
public static int getGlobalGcInvocationCount()
getThreadAllocCount
public static int getThreadAllocCount()
getThreadAllocSize
public static int getThreadAllocSize()
getThreadExternalAllocCount
public static int getThreadExternalAllocCount()
getThreadExternalAllocSize
public static int getThreadExternalAllocSize()
getThreadGcInvocationCount
public static int getThreadGcInvocationCount()
resetGlobalAllocCount
public static void resetGlobalAllocCount()
resetGlobalAllocSize
public static void resetGlobalAllocSize()
resetGlobalFreedCount
public static void resetGlobalFreedCount()
resetGlobalFreedSize
public static void resetGlobalFreedSize()
resetGlobalClassInitCount
public static void resetGlobalClassInitCount()
resetGlobalClassInitTime
public static void resetGlobalClassInitTime()
resetGlobalExternalAllocCount
public static void resetGlobalExternalAllocCount()
resetGlobalExternalAllocSize
public static void resetGlobalExternalAllocSize()
resetGlobalExternalFreedCount
public static void resetGlobalExternalFreedCount()
resetGlobalExternalFreedSize
public static void resetGlobalExternalFreedSize()
resetGlobalGcInvocationCount
public static void resetGlobalGcInvocationCount()
resetThreadAllocCount
public static void resetThreadAllocCount()
resetThreadAllocSize
public static void resetThreadAllocSize()
resetThreadExternalAllocCount
public static void resetThreadExternalAllocCount()
resetThreadExternalAllocSize
public static void resetThreadExternalAllocSize()
resetThreadGcInvocationCount
public static void resetThreadGcInvocationCount()
resetAllCounts
public static void resetAllCounts()
getNativeHeapSize
public static long getNativeHeapSize()
getNativeHeapAllocatedSize
public static long getNativeHeapAllocatedSize()
getNativeHeapFreeSize
public static long getNativeHeapFreeSize()
getMemoryInfo
public static void getMemoryInfo(Debug.MemoryInfo memoryInfo)
getPss
public static long getPss()
setAllocationLimit
public static int setAllocationLimit(int limit)
setGlobalAllocationLimit
public static int setGlobalAllocationLimit(int limit)
printLoadedClasses
public static void printLoadedClasses(int flags)
getLoadedClassCount
public static int getLoadedClassCount()
dumpHprofData
public static void dumpHprofData(String fileName)
throws IOException
- Throws:
IOException
getBinderSentTransactions
public static int getBinderSentTransactions()
getBinderReceivedTransactions
public static int getBinderReceivedTransactions()
getBinderLocalObjectCount
public static final int getBinderLocalObjectCount()
getBinderProxyObjectCount
public static final int getBinderProxyObjectCount()
getBinderDeathObjectCount
public static final int getBinderDeathObjectCount()
dumpService
public static boolean dumpService(String name,
FileDescriptor fd,
String[] args)
Copyright © 2008-2012. All Rights Reserved.