public class ClientData
extends java.lang.Object
Client.| Modifier and Type | Class and Description |
|---|---|
static class |
ClientData.AllocationTrackingStatus |
static class |
ClientData.DebuggerStatus |
static class |
ClientData.HeapData
Heap Information.
|
static class |
ClientData.HeapInfo |
static class |
ClientData.HprofData |
static interface |
ClientData.IAllocationTrackingHandler |
static interface |
ClientData.IHprofDumpHandler
Deprecated.
|
static interface |
ClientData.IMethodProfilingHandler
Handlers able to act on Method profiling info
|
static class |
ClientData.MethodProfilingStatus |
| Modifier and Type | Field and Description |
|---|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearHprofData() |
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.
|
byte[] |
getAllocationsData()
Returns the raw data for tracked allocations.
|
ClientData.AllocationTrackingStatus |
getAllocationStatus()
Returns the allocation tracking status.
|
java.lang.String |
getClientDescription()
Returns the client description.
|
java.lang.String |
getDataDir()
Returns the application's data directory.
|
ClientData.DebuggerStatus |
getDebuggerConnectionStatus()
Returns the debugger connection status.
|
ClientData.HprofData |
getHprofData() |
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. |
java.lang.String |
getPackageName()
Returns the application's package name.
|
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()
Deprecated.
|
boolean |
isDdmAware()
Returns whether the process is DDM-aware.
|
boolean |
isNativeDebuggable() |
boolean |
isValidUserId()
Returns true if the user id of this client was set.
|
static void |
setAllocationTrackingHandler(ClientData.IAllocationTrackingHandler handler)
Deprecated.
|
void |
setHprofData(byte[] data) |
void |
setHprofData(java.lang.String filename) |
static void |
setHprofDumpHandler(ClientData.IHprofDumpHandler handler)
Deprecated.
|
static void |
setMethodProfilingHandler(ClientData.IMethodProfilingHandler handler)
Sets the handler to receive notifications when an HPROF dump succeeded or failed.
|
void |
setNativeDebuggable(boolean nativeDebuggable) |
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 Valuespublic void setHprofData(byte[] data)
public void setHprofData(java.lang.String filename)
public void clearHprofData()
public ClientData.HprofData getHprofData()
@Deprecated public static void setHprofDumpHandler(ClientData.IHprofDumpHandler handler)
public static void setMethodProfilingHandler(ClientData.IMethodProfilingHandler handler)
@Deprecated
public static void setAllocationTrackingHandler(@NonNull
ClientData.IAllocationTrackingHandler handler)
AndroidDebugBridge.IClientChangeListener with
AndroidDebugBridge.addClientChangeListener(AndroidDebugBridge.IClientChangeListener)public boolean isDdmAware()
public int getPid()
public java.lang.String getVmIdentifier()
@Nullable public java.lang.String getClientDescription()
This is generally the name of the package defined in the 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 boolean isNativeDebuggable()
public void setNativeDebuggable(boolean nativeDebuggable)
public ClientData.DebuggerStatus getDebuggerConnectionStatus()
public ClientData.HeapData getVmHeapData()
ClientData.HeapData object for the VM.public java.util.Iterator<java.lang.Integer> getVmHeapIds()
The caller must synchronize on the ClientData object while iterating.
public ClientData.HeapInfo getVmHeapInfo(int heapId)
heapId - The heap whose info should be returnednull 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()public byte[] getAllocationsData()
Client.requestAllocationDetails()@Nullable public AllocationInfo[] getAllocations()
Client.requestAllocationDetails()public boolean hasFeature(java.lang.String feature)
Client supports the given featurefeature - The feature to test.FEATURE_PROFILING,
FEATURE_HPROF@Deprecated public boolean hasPendingHprofDump()
public ClientData.MethodProfilingStatus getMethodProfilingStatus()
Client.requestMethodProfilingStatus()@Nullable public java.lang.String getPackageName()
@NonNull public java.lang.String getDataDir()