android.os
Class Debug

java.lang.Object
  extended by android.os.Debug

public final class Debug
extends Object


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

Field Detail

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
Method Detail

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.