|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 String |
FEATURE_HPROF
String for feature allowing to dump hprof files |
static String |
FEATURE_HPROF_STREAMING
String for feature allowing direct streaming of hprof dumps |
static String |
FEATURE_PROFILING
String for feature enabling starting/stopping method profiling |
static String |
FEATURE_PROFILING_STREAMING
String for feature enabling direct streaming of method profiling data |
static 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 String |
HEAP_MAX_SIZE_BYTES
Name of the value representing the max size of the heap, in the Map returned by
getVmHeapInfo(int) |
static String |
HEAP_OBJECTS_ALLOCATED
Name of the value representing the number of objects in the heap, in the Map
returned by getVmHeapInfo(int) |
static 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. |
String |
getClientDescription()
Returns the client description. |
ClientData.DebuggerStatus |
getDebuggerConnectionStatus()
Returns the debugger connection status. |
List<NativeLibraryMapInfo> |
getMappedNativeLibraries()
Returns the list of native libraries mapped in memory for this client. |
ClientData.MethodProfilingStatus |
getMethodProfilingStatus()
Returns the method profiling status. |
List<NativeAllocationInfo> |
getNativeAllocationList()
Returns the list of NativeAllocationInfo . |
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. |
Iterator<Integer> |
getVmHeapIds()
Returns an iterator over the list of known VM heap ids. |
Map<String,Long> |
getVmHeapInfo(int heapId)
Returns the most-recent info values for the specified VM heap. |
String |
getVmIdentifier()
Returns the Client's VM identifier. |
boolean |
hasFeature(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 String HEAP_MAX_SIZE_BYTES
Map
returned by
getVmHeapInfo(int)
public static final String HEAP_SIZE_BYTES
Map
returned by
getVmHeapInfo(int)
public static final String HEAP_BYTES_ALLOCATED
Map
returned by getVmHeapInfo(int)
public static final String HEAP_OBJECTS_ALLOCATED
Map
returned by getVmHeapInfo(int)
public static final String FEATURE_PROFILING
hasFeature(String)
,
Constant Field Valuespublic static final String FEATURE_PROFILING_STREAMING
hasFeature(String)
,
Constant Field Valuespublic static final String FEATURE_HPROF
hasFeature(String)
,
Constant Field Valuespublic static final String FEATURE_HPROF_STREAMING
hasFeature(String)
,
Constant Field ValuesMethod Detail |
---|
public static void setHprofDumpHandler(ClientData.IHprofDumpHandler handler)
public static void setMethodProfilingHandler(ClientData.IMethodProfilingHandler handler)
public boolean isDdmAware()
public int getPid()
public String getVmIdentifier()
public 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 Iterator<Integer> getVmHeapIds()
ClientData
object while iterating.
public Map<String,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 List<NativeAllocationInfo> getNativeAllocationList()
NativeAllocationInfo
.
Client.requestNativeHeapInformation()
public int getTotalNativeMemory()
Client.requestNativeHeapInformation()
public List<NativeLibraryMapInfo> getMappedNativeLibraries()
public ClientData.AllocationTrackingStatus getAllocationStatus()
Client.requestAllocationStatus()
public AllocationInfo[] getAllocations()
Client.requestAllocationDetails()
public boolean hasFeature(String feature)
Client
supports the given feature
feature
- The feature to test.
FEATURE_PROFILING
,
FEATURE_HPROF
public boolean hasPendingHprofDump()
public ClientData.MethodProfilingStatus getMethodProfilingStatus()
Client.requestMethodProfilingStatus()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |