Android.OS.Debug Members

The members of Android.OS.Debug are listed below.

See Also: Inherited members from Java.Lang.Object

Public Fields

const
ShowClassloaderDebugShow (2).
const
ShowFullDetailDebugShow (1). Flags for printLoadedClasses().
const
ShowInitializedDebugShow (4).
const
TraceCountAllocsDebugTraceOptions (1). Flags for startMethodTracing().

Public Properties

[read-only]
static
BinderDeathObjectCountint. Returns the number of death notification links to Binder objects that exist in the current process.
[read-only]
static
BinderLocalObjectCountint. Returns the number of active local Binder objects that exist in the current process.
[read-only]
static
BinderProxyObjectCountint. Returns the number of references to remote proxy Binder objects that exist in the current process.
[read-only]
static
BinderReceivedTransactionsint. Returns the number of received transactions from the binder driver.
[read-only]
static
BinderSentTransactionsint. Returns the number of sent transactions from this process.
[read-only]
static
GlobalAllocCountint. Returns the global count of objects allocated by the runtime between a Debug.StartAllocCounting and Debug.StopAllocCounting.
[read-only]
static
GlobalAllocSizeint. Returns the global size, in bytes, of objects allocated by the runtime between a Debug.StartAllocCounting and Debug.StopAllocCounting.
[read-only]
static
GlobalClassInitCountint. Returns the number of classes successfully initialized (ie those that executed without throwing an exception) between a Debug.StartAllocCounting and Debug.StopAllocCounting.
[read-only]
static
GlobalClassInitTimeint. Returns the time spent successfully initializing classes between a Debug.StartAllocCounting and Debug.StopAllocCounting.
[read-only]
static
GlobalExternalAllocCountint. This method exists for compatibility and always returns 0.
[read-only]
static
GlobalExternalAllocSizeint. This method exists for compatibility and always returns 0.
[read-only]
static
GlobalExternalFreedCountint. This method exists for compatibility and always returns 0.
[read-only]
static
GlobalExternalFreedSizeint. This method exists for compatibility and has no effect.
[read-only]
static
GlobalFreedCountint. Returns the global count of objects freed by the runtime between a Debug.StartAllocCounting and Debug.StopAllocCounting.
[read-only]
static
GlobalFreedSizeint. Returns the global size, in bytes, of objects freed by the runtime between a Debug.StartAllocCounting and Debug.StopAllocCounting.
[read-only]
static
GlobalGcInvocationCountint. Returns the number of non-concurrent GC invocations between a Debug.StartAllocCounting and Debug.StopAllocCounting.
[read-only]
static
IsDebuggerConnectedbool. Determine if a debugger is currently attached.
[read-only]
static
LoadedClassCountint. Get the number of loaded classes.
[read-only]
static
NativeHeapAllocatedSizelong. Returns the amount of allocated memory in the native heap.
[read-only]
static
NativeHeapFreeSizelong. Returns the amount of free memory in the native heap.
[read-only]
static
NativeHeapSizelong. Returns the size of the native heap.
[read-only]
static
Psslong. Retrieves the PSS memory used by the process as given by the smaps.
[read-only]
static
ThreadAllocCountint. Returns the thread-local count of objects allocated by the runtime between a Debug.StartAllocCounting and Debug.StopAllocCounting.
[read-only]
static
ThreadAllocSizeint. Returns the thread-local size of objects allocated by the runtime between a Debug.StartAllocCounting and Debug.StopAllocCounting.
[read-only]
static
ThreadExternalAllocCountint. This method exists for compatibility and has no effect.
[read-only]
static
ThreadExternalAllocSizeint. This method exists for compatibility and has no effect.
[read-only]
static
ThreadGcInvocationCountint. Returns the number of thread-local non-concurrent GC invocations between a Debug.StartAllocCounting and Debug.StopAllocCounting.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

static
ChangeDebugPort(int)
Change the JDWP port.
static
DumpHprofData(string)
Dump "hprof" data to the specified file.
static
DumpHprofDataAsync(string) : System.Threading.Tasks.Task
Documentation for this section has not yet been entered.
static
DumpService(string, Java.IO.FileDescriptor, string[]) : bool
Get a debugging dump of a system service by name.
static
DumpServiceAsync(string, Java.IO.FileDescriptor, string[]) : System.Threading.Tasks.Task<bool>
Documentation for this section has not yet been entered.
static
EnableEmulatorTraceOutput()
Enable "emulator traces", in which information about the current method is made available to the "emulator -trace" feature.
static
GetMemoryInfo(Debug.MemoryInfo)
Retrieves information about this processes memory usages.
static
PrintLoadedClasses(DebugShow)
Dump a list of all currently loaded class to the log file.
static
ResetAllCounts()
Clears all the global and thread-local memory allocation counters.
static
ResetGlobalAllocCount()
Clears the global count of objects allocated.
static
ResetGlobalAllocSize()
Clears the global size of objects allocated.
static
ResetGlobalClassInitCount()
Clears the count of classes initialized.
static
ResetGlobalClassInitTime()
Clears the count of time spent initializing classes.
static
ResetGlobalExternalAllocCount()
This method exists for compatibility and has no effect.
static
ResetGlobalExternalAllocSize()
This method exists for compatibility and has no effect.
static
ResetGlobalExternalFreedCount()
This method exists for compatibility and has no effect.
static
ResetGlobalExternalFreedSize()
This method exists for compatibility and has no effect.
static
ResetGlobalFreedCount()
Clears the global count of objects freed.
static
ResetGlobalFreedSize()
Clears the global size of objects freed.
static
ResetGlobalGcInvocationCount()
Clears the count of non-concurrent GC invocations.
static
ResetThreadAllocCount()
Clears the thread-local count of objects allocated.
static
ResetThreadAllocSize()
Clears the thread-local count of objects allocated.
static
ResetThreadExternalAllocCount()
This method exists for compatibility and has no effect.
static
ResetThreadExternalAllocSize()
This method exists for compatibility and has no effect.
static
ResetThreadGcInvocationCount()
Clears the thread-local count of non-concurrent GC invocations.
static
SetAllocationLimit(int) : int
Establish an object allocation limit in the current thread.
static
SetGlobalAllocationLimit(int) : int
Establish a global object allocation limit.
static
StartAllocCounting()
Start counting the number and aggregate size of memory allocations.
static
StartMethodTracing()
Start method tracing with default log name and buffer size.
static
StartMethodTracing(string)
Start method tracing, specifying the trace log file name.
static
StartMethodTracing(string, int)
Start method tracing, specifying the trace log file name and the buffer size.
static
StartMethodTracing(string, int, DebugTraceOptions)
Start method tracing, specifying the trace log file name and the buffer size.
static
StartMethodTracingSampling(string, int, int)
Start sampling-based method tracing, specifying the trace log file name, the buffer size, and the sampling interval.
static
StartNativeTracing()
Enable qemu tracing.
static
StopAllocCounting()
Stop counting the number and aggregate size of memory allocations.
static
StopMethodTracing()
Stop method tracing.
static
StopNativeTracing()
Stop qemu tracing.
static
ThreadCpuTimeNanos() : long
Get an indication of thread CPU usage.
static
WaitForDebugger()
Wait until a debugger attaches.
static
WaitingForDebugger() : bool
Returns "true" if one or more threads is waiting for a debugger to attach.