Java android.os Debug fields, constructors, methods, implement or subclass

Example usage for Java android.os Debug fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.os Debug.

The text is from its open source code.

Method

voiddumpHprofData(String fileName)
Dump "hprof" data to the specified file.
booleandumpService(String name, FileDescriptor fd, String[] args)
Get a debugging dump of a system service by name.
StringgetCallers(final int depth)
Return a string consisting of methods and locations at multiple call stack levels.
intgetGlobalAllocSize()
Returns the global size, in bytes, of objects allocated by the runtime between a #startAllocCounting() start and #stopAllocCounting() stop .
voidgetMemoryInfo(MemoryInfo memoryInfo)
Retrieves information about this processes memory usages.
longgetNativeHeapAllocatedSize()
Returns the amount of allocated memory in the native heap.
longgetNativeHeapFreeSize()
Returns the amount of free memory in the native heap.
longgetNativeHeapSize()
Returns the size of the native heap.
intgetThreadAllocCount()
Returns the thread-local count of objects allocated by the runtime between a #startAllocCounting() start and #stopAllocCounting() stop .
booleanisDebuggerConnected()
Determine if a debugger is currently attached.
voidstartAllocCounting()
Start counting the number and aggregate size of memory allocations.
voidstartMethodTracing(String tracePath)
Start method tracing, specifying the trace log file path.
voidstartMethodTracing()
Start method tracing with default log name and buffer size.
voidstopAllocCounting()
Stop counting the number and aggregate size of memory allocations.
voidstopMethodTracing()
Stop method tracing.
longthreadCpuTimeNanos()
Get an indication of thread CPU usage.
voidwaitForDebugger()
Wait until a debugger attaches.
booleanwaitingForDebugger()
Returns "true" if one or more threads is waiting for a debugger to attach.