|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.android.ddmlib.ClientData
public class ClientData
Contains the data of a Client.
| Nested Class Summary | |
|---|---|
static class |
ClientData.AllocationTrackingStatus
|
static class |
ClientData.DebuggerStatus
|
static class |
ClientData.HeapData
Heap Information. |
static interface |
ClientData.IHprofDumpHandler
Handlers able to act on HPROF dumps. |
static interface |
ClientData.IMethodProfilingHandler
Handlers able to act on Method profiling info |
static class |
ClientData.MethodProfilingStatus
|
| Field Summary | |
|---|---|
static java.lang.String |
FEATURE_HPROF
String for feature allowing to dump hprof files |
static java.lang.String |
FEATURE_HPROF_STREAMING
String for feature allowing direct streaming of hprof dumps |
static java.lang.String |
FEATURE_PROFILING
String for feature enabling starting/stopping method profiling |
static java.lang.String |
FEATURE_PROFILING_STREAMING
String for feature enabling direct streaming of method profiling data |
static java.lang.String |
HEAP_BYTES_ALLOCATED
Name of the value representing the number of allocated bytes of the heap, in the Map returned by getVmHeapInfo(int) |
static java.lang.String |
HEAP_MAX_SIZE_BYTES
Name of the value representing the max size of the heap, in the Map returned by
getVmHeapInfo(int) |
static java.lang.String |
HEAP_OBJECTS_ALLOCATED
Name of the value representing the number of objects in the heap, in the Map
returned by getVmHeapInfo(int) |
static java.lang.String |
HEAP_SIZE_BYTES
Name of the value representing the size of the heap, in the Map returned by
getVmHeapInfo(int) |
| Method Summary | |
|---|---|
AllocationInfo[] |
getAllocations()
Returns the list of tracked allocations. |
ClientData.AllocationTrackingStatus |
getAllocationStatus()
Returns the allocation tracking status. |
java.lang.String |
getClientDescription()
Returns the client description. |
ClientData.DebuggerStatus |
getDebuggerConnectionStatus()
Returns the debugger connection status. |
ClientData.MethodProfilingStatus |
getMethodProfilingStatus()
Returns the method profiling status. |
java.util.List<NativeAllocationInfo> |
getNativeAllocationList()
Returns the list of NativeAllocationInfo. |
java.util.Iterator<NativeLibraryMapInfo> |
getNativeLibraryMapInfo()
Returns an Iterator on NativeLibraryMapInfo objects. |
int |
getPid()
Returns the process ID. |
ThreadInfo[] |
getThreads()
Returns the list of threads as ThreadInfo objects. |
int |
getTotalNativeMemory()
Returns the total native memory. |
ClientData.HeapData |
getVmHeapData()
Returns the ClientData.HeapData object for the VM. |
java.util.Iterator<java.lang.Integer> |
getVmHeapIds()
Returns an iterator over the list of known VM heap ids. |
java.util.Map<java.lang.String,java.lang.Long> |
getVmHeapInfo(int heapId)
Returns the most-recent info values for the specified VM heap. |
java.lang.String |
getVmIdentifier()
Returns the Client's VM identifier. |
boolean |
hasFeature(java.lang.String feature)
Returns true if the Client supports the given feature |
boolean |
hasPendingHprofDump()
|
boolean |
isDdmAware()
Returns whether the process is DDM-aware. |
static void |
setHprofDumpHandler(ClientData.IHprofDumpHandler handler)
Sets the handler to receive notifications when an HPROF dump succeeded or failed. |
static void |
setMethodProfilingHandler(ClientData.IMethodProfilingHandler handler)
Sets the handler to receive notifications when an HPROF dump succeeded or failed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String HEAP_MAX_SIZE_BYTES
Map returned by
getVmHeapInfo(int)
public static final java.lang.String HEAP_SIZE_BYTES
Map returned by
getVmHeapInfo(int)
public static final java.lang.String HEAP_BYTES_ALLOCATED
Map returned by getVmHeapInfo(int)
public static final java.lang.String HEAP_OBJECTS_ALLOCATED
Map
returned by getVmHeapInfo(int)
public static final java.lang.String FEATURE_PROFILING
hasFeature(String),
Constant Field Valuespublic static final java.lang.String FEATURE_PROFILING_STREAMING
hasFeature(String),
Constant Field Valuespublic static final java.lang.String FEATURE_HPROF
hasFeature(String),
Constant Field Valuespublic static final java.lang.String FEATURE_HPROF_STREAMING
hasFeature(String),
Constant Field Values| Method Detail |
|---|
public static void setHprofDumpHandler(ClientData.IHprofDumpHandler handler)
public static void setMethodProfilingHandler(ClientData.IMethodProfilingHandler handler)
public boolean isDdmAware()
public int getPid()
public java.lang.String getVmIdentifier()
public java.lang.String getClientDescription()
AndroidManifest.xml.
null if not the description was not yet
sent by the client.public ClientData.DebuggerStatus getDebuggerConnectionStatus()
public ClientData.HeapData getVmHeapData()
ClientData.HeapData object for the VM.
public java.util.Iterator<java.lang.Integer> getVmHeapIds()
ClientData object while iterating.
public java.util.Map<java.lang.String,java.lang.Long> getVmHeapInfo(int heapId)
heapId - The heap whose info should be returned
null if the heap ID is unknown.public ThreadInfo[] getThreads()
ThreadInfo objects.
The list is empty until a thread update was requested with
Client.requestThreadUpdate().
public java.util.List<NativeAllocationInfo> getNativeAllocationList()
NativeAllocationInfo.
Client.requestNativeHeapInformation()public int getTotalNativeMemory()
Client.requestNativeHeapInformation()public java.util.Iterator<NativeLibraryMapInfo> getNativeLibraryMapInfo()
Iterator on NativeLibraryMapInfo objects.
The caller must synchronize on the ClientData object while iterating.
public ClientData.AllocationTrackingStatus getAllocationStatus()
Client.requestAllocationStatus()public AllocationInfo[] getAllocations()
Client.requestAllocationDetails()public boolean hasFeature(java.lang.String feature)
Client supports the given feature
feature - The feature to test.
FEATURE_PROFILING,
FEATURE_HPROFpublic boolean hasPendingHprofDump()
public ClientData.MethodProfilingStatus getMethodProfilingStatus()
Client.requestMethodProfilingStatus()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||