Example usage for Java android.os Debug fields, constructors, methods, implement or subclass
The text is from its open source code.
void | dumpHprofData(String fileName) Dump "hprof" data to the specified file. |
boolean | dumpService(String name, FileDescriptor fd, String[] args) Get a debugging dump of a system service by name. |
String | getCallers(final int depth) Return a string consisting of methods and locations at multiple call stack levels. |
int | getGlobalAllocSize() Returns the global size, in bytes, of objects allocated by the runtime between a #startAllocCounting() start and #stopAllocCounting() stop . |
void | getMemoryInfo(MemoryInfo memoryInfo) Retrieves information about this processes memory usages. |
long | getNativeHeapAllocatedSize() Returns the amount of allocated memory in the native heap. |
long | getNativeHeapFreeSize() Returns the amount of free memory in the native heap. |
long | getNativeHeapSize() Returns the size of the native heap. |
int | getThreadAllocCount() Returns the thread-local count of objects allocated by the runtime between a #startAllocCounting() start and #stopAllocCounting() stop . |
boolean | isDebuggerConnected() Determine if a debugger is currently attached. |
void | startAllocCounting() Start counting the number and aggregate size of memory allocations. |
void | startMethodTracing(String tracePath) Start method tracing, specifying the trace log file path. |
void | startMethodTracing() Start method tracing with default log name and buffer size. |
void | stopAllocCounting() Stop counting the number and aggregate size of memory allocations. |
void | stopMethodTracing() Stop method tracing. |
long | threadCpuTimeNanos() Get an indication of thread CPU usage. |
void | waitForDebugger() Wait until a debugger attaches. |
boolean | waitingForDebugger() Returns "true" if one or more threads is waiting for a debugger to attach. |