|
|||||||||
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 class |
ClientData.HeapInfo
|
static interface |
ClientData.IAllocationTrackingHandler
|
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_OPENGL_TRACING
String for feature indicating support for tracing OpenGL calls. |
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 |
FEATURE_SAMPLING_PROFILER
String for feature enabling sampling profiler. |
static java.lang.String |
FEATURE_VIEW_HIERARCHY
String for feature indicating support for providing view hierarchy. |
Method Summary | |
---|---|
java.lang.String |
getAbi()
Returns the abi flavor (32-bit or 64-bit) of the application, null if unknown or not set. |
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. |
java.lang.String |
getJvmFlags()
Returns the VM flags in use, or null if unknown. |
java.util.List<NativeLibraryMapInfo> |
getMappedNativeLibraries()
Returns the list of native libraries mapped in memory for this client. |
ClientData.MethodProfilingStatus |
getMethodProfilingStatus()
Returns the method profiling status. |
java.util.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. |
int |
getUserId()
Returns the client's user id. |
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. |
ClientData.HeapInfo |
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. |
boolean |
isValidUserId()
Returns true if the user id of this client was set. |
static void |
setAllocationTrackingHandler(ClientData.IAllocationTrackingHandler handler)
|
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 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_SAMPLING_PROFILER
hasFeature(String)
,
Constant Field Valuespublic static final java.lang.String FEATURE_OPENGL_TRACING
hasFeature(String)
,
Constant Field Valuespublic static final java.lang.String FEATURE_VIEW_HIERARCHY
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 ValuesMethod Detail |
---|
public static void setHprofDumpHandler(ClientData.IHprofDumpHandler handler)
public static void setMethodProfilingHandler(ClientData.IMethodProfilingHandler handler)
public static void setAllocationTrackingHandler(@NonNull ClientData.IAllocationTrackingHandler 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 int getUserId()
public boolean isValidUserId()
@Nullable public java.lang.String getAbi()
public java.lang.String getJvmFlags()
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 ClientData.HeapInfo 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.List<NativeLibraryMapInfo> getMappedNativeLibraries()
public ClientData.AllocationTrackingStatus getAllocationStatus()
Client.requestAllocationStatus()
@Nullable 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_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 |