ClientData
public
class
ClientData
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.device.server.ClientData |
ClientImpl의 데이터를 포함합니다.
요약
중첩된 클래스 | |
|---|---|
class |
ClientData.HeapData
힙 정보 |
class |
ClientData.HeapInfo
|
class |
ClientData.HprofData
|
interface |
ClientData.IAllocationTrackingHandler
|
interface |
ClientData.IHprofDumpHandler
HPROF 덤프에 대해 작동할 수 있는 핸들러 |
interface |
ClientData.IMethodProfilingHandler
메서드 프로파일링 정보를 처리할 수 있는 핸들러 |
class |
ClientData.Names
|
상수 | |
|---|---|
String |
FEATURE_HPROF
hprof 파일을 덤프할 수 있는 기능을 위한 문자열 |
String |
FEATURE_HPROF_STREAMING
hprof 덤프의 직접 스트리밍을 허용하는 기능의 문자열 |
String |
FEATURE_OPENGL_TRACING
OpenGL 호출 추적 지원을 나타내는 기능의 문자열입니다. |
String |
FEATURE_PROFILING
시작/중지 메서드 프로파일링을 사용 설정하는 기능의 문자열 |
String |
FEATURE_PROFILING_STREAMING
메서드 프로파일링 데이터의 직접 스트리밍을 지원하는 기능의 문자열 |
String |
FEATURE_SAMPLING_PROFILER
샘플링 프로파일러를 사용 설정하는 문자열입니다. |
String |
FEATURE_VIEW_HIERARCHY
뷰 계층 구조 제공 지원을 나타내는 기능의 문자열입니다. |
String |
PRE_INITIALIZED
무시할 VM의 임시 이름입니다. |
공개 생성자 | |
|---|---|
ClientData(ClientImpl client, int pid)
일반 생성자입니다. |
|
공개 메서드 | |
|---|---|
void
|
addFeature(String feature)
|
void
|
addNativeAllocation(NativeAllocationInfo allocInfo)
|
void
|
addNativeLibraryMapInfo(long startAddr, long endAddr, String library)
|
void
|
addThread(int threadId, String threadName)
목록에 새 스레드를 추가합니다. |
void
|
clearHprofData()
|
void
|
clearNativeAllocationInfo()
현재 malloc 정보를 삭제합니다. |
void
|
clearThreads()
|
String
|
getAbi()
애플리케이션의 ABI 버전 (32비트 또는 64비트)을 반환합니다. 알 수 없거나 설정되지 않은 경우 null을 반환합니다. |
ClientData.AllocationTrackingStatus
|
getAllocationStatus()
할당 추적 상태를 반환합니다. |
static
ClientData.IAllocationTrackingHandler
|
getAllocationTrackingHandler()
|
AllocationInfo[]
|
getAllocations()
추적된 할당 목록을 반환합니다. |
byte[]
|
getAllocationsData()
추적된 할당의 원시 데이터를 반환합니다. |
String
|
getClientDescription()
클라이언트 설명을 반환합니다. |
String
|
getDataDir()
애플리케이션의 데이터 디렉터리를 반환합니다. |
ClientData.DebuggerStatus
|
getDebuggerConnectionStatus()
디버거 연결 상태를 반환합니다. |
ClientData.HprofData
|
getHprofData()
|
static
ClientData.IHprofDumpHandler
|
getHprofDumpHandler()
|
String
|
getJvmFlags()
사용 중인 VM 플래그를 반환합니다. 알 수 없는 경우 null을 반환합니다. |
|
getMappedNativeLibraries()
이 클라이언트의 메모리에 매핑된 네이티브 라이브러리 목록을 반환합니다. |
static
ClientData.IMethodProfilingHandler
|
getMethodProfilingHandler()
|
ClientData.MethodProfilingStatus
|
getMethodProfilingStatus()
메서드 프로파일링 상태를 반환합니다. |
|
getNativeAllocationList()
|
ClientData.HeapData
|
getNativeHeapData()
네이티브 코드의 |
String
|
getPackageName()
프로토콜 지원이 있는 경우 애플리케이션의 실제 패키지 이름을 반환합니다. |
String
|
getPendingHprofDump()
쓰여지고 있는 기기 측 hprof 파일의 경로를 반환합니다. |
String
|
getPendingMethodProfiling()
작성 중인 기기 측 메서드 프로파일링 파일의 경로를 반환합니다. |
int
|
getPid()
프로세스 ID를 반환합니다. |
ThreadInfo
|
getThread(int threadId)
스레드 ID로 |
ThreadInfo[]
|
getThreads()
스레드 목록을 |
int
|
getTotalNativeMemory()
총 네이티브 메모리를 반환합니다. |
int
|
getUserId()
클라이언트의 사용자 ID를 반환합니다. |
ClientData.HeapData
|
getVmHeapData()
VM의 |
|
getVmHeapIds()
알려진 VM 힙 ID 목록에 대한 반복자를 반환합니다. |
ClientData.HeapInfo
|
getVmHeapInfo(int heapId)
지정된 VM 힙의 가장 최근 정보 값을 반환합니다. |
String
|
getVmIdentifier()
클라이언트의 VM 식별자를 반환합니다. |
boolean
|
hasFeature(String feature)
|
boolean
|
hasPendingHprofDump()
|
boolean
|
isNativeDebuggable()
|
boolean
|
isValidUserId()
이 클라이언트의 사용자 ID가 설정된 경우 true를 반환합니다. |
void
|
removeThread(int threadId)
목록에서 스레드를 삭제합니다. |
void
|
setAbi(String abi)
|
void
|
setAllocationStatus(ClientData.AllocationTrackingStatus status)
|
static
void
|
setAllocationTrackingHandler(ClientData.IAllocationTrackingHandler handler)
이 메서드는 지원 중단되었습니다. |
void
|
setAllocationsData(byte[] data)
|
void
|
setDebuggerConnectionStatus(ClientData.DebuggerStatus status)
디버거 연결 상태를 설정합니다. |
void
|
setHeapInfo(int heapId, long maxSizeInBytes, long sizeInBytes, long bytesAllocated, long objectsAllocated, long timeStamp, byte reason)
지정된 힙의 현재 힙 정보 값을 설정합니다. |
void
|
setHprofData(String filename)
|
void
|
setHprofData(byte[] data)
|
static
void
|
setHprofDumpHandler(ClientData.IHprofDumpHandler handler)
HPROF 덤프가 성공하거나 실패할 때 알림을 수신하는 핸들러를 설정합니다. |
void
|
setJvmFlags(String jvmFlags)
|
static
void
|
setMethodProfilingHandler(ClientData.IMethodProfilingHandler handler)
HPROF 덤프가 성공하거나 실패할 때 알림을 수신하는 핸들러를 설정합니다. |
void
|
setMethodProfilingStatus(ClientData.MethodProfilingStatus status)
|
void
|
setNames(ClientData.Names names)
프로세스, 사용자 ID (예: |
void
|
setNativeDebuggable(boolean nativeDebuggable)
|
void
|
setPendingHprofDump(String pendingHprofDump)
작성 중인 hprof 파일의 기기 측 경로를 설정합니다. |
void
|
setPendingMethodProfiling(String pendingMethodProfiling)
작성 중인 메서드 프로필 파일의 기기 측 경로를 설정합니다. |
void
|
setTotalNativeMemory(int totalMemory)
|
void
|
setVmIdentifier(String ident)
VM 식별자를 설정합니다. |
상수
FEATURE_HPROF
public static final String FEATURE_HPROF
hprof 파일을 덤프할 수 있는 기능을 위한 문자열
상수 값: 'hprof-heap-dump'
FEATURE_HPROF_STREAMING
public static final String FEATURE_HPROF_STREAMING
hprof 덤프의 직접 스트리밍을 허용하는 기능의 문자열
상수 값: 'hprof-heap-dump-streaming'
FEATURE_OPENGL_TRACING
public static final String FEATURE_OPENGL_TRACING
OpenGL 호출 추적 지원을 나타내는 기능의 문자열입니다.
상수 값: 'opengl-tracing'
FEATURE_PROFILING
public static final String FEATURE_PROFILING
기능 사용 설정 시작/중지 메서드 프로파일링 문자열
상수 값: 'method-trace-profiling'
FEATURE_PROFILING_STREAMING
public static final String FEATURE_PROFILING_STREAMING
메서드 프로파일링 데이터의 직접 스트리밍을 지원하는 기능의 문자열
상수 값: 'method-trace-profiling-streaming'
FEATURE_SAMPLING_PROFILER
public static final String FEATURE_SAMPLING_PROFILER
샘플링 프로파일러를 사용 설정하는 기능의 문자열입니다.
상수 값: 'method-sample-profiling'
FEATURE_VIEW_HIERARCHY
public static final String FEATURE_VIEW_HIERARCHY
뷰 계층 구조 제공 지원을 나타내는 기능의 문자열입니다.
상수 값: 'view-hierarchy'
PRE_INITIALIZED
public static final String PRE_INITIALIZED
무시할 VM의 임시 이름입니다.
상수 값: "
공개 생성자
공개 메서드
addFeature
public void addFeature (String feature)
| 매개변수 | |
|---|---|
feature |
String |
addNativeAllocation
public void addNativeAllocation (NativeAllocationInfo allocInfo)
ClientImpl에 새 NativeAllocationInfo를 추가합니다.
| 매개변수 | |
|---|---|
allocInfo |
NativeAllocationInfo: 추가할 NativeAllocationInfo입니다. |
addNativeLibraryMapInfo
public void addNativeLibraryMapInfo (long startAddr,
long endAddr,
String library)| 매개변수 | |
|---|---|
startAddr |
long |
endAddr |
long |
library |
String |
addThread
public void addThread (int threadId,
String threadName)목록에 새 스레드를 추가합니다.
| 매개변수 | |
|---|---|
threadId |
int |
threadName |
String |
clearHprofData
public void clearHprofData ()
clearNativeAllocationInfo
public void clearNativeAllocationInfo ()
현재 malloc 정보를 삭제합니다.
clearThreads
public void clearThreads ()
getAbi
public String getAbi ()
애플리케이션의 ABI 버전 (32비트 또는 64비트)을 반환합니다. 알 수 없거나 설정되지 않은 경우 null을 반환합니다.
| 반환 값 | |
|---|---|
String |
|
getAllocationStatus
public ClientData.AllocationTrackingStatus getAllocationStatus ()
할당 추적 상태를 반환합니다.
| 반환 값 | |
|---|---|
ClientData.AllocationTrackingStatus |
|
getAllocationTrackingHandler
public static ClientData.IAllocationTrackingHandler getAllocationTrackingHandler ()
| 반환 값 | |
|---|---|
ClientData.IAllocationTrackingHandler |
|
allocationsData
public byte[] getAllocationsData ()
추적된 할당의 원시 데이터를 반환합니다.
| 반환 값 | |
|---|---|
byte[] |
|
getClientDescription
public String getClientDescription ()
클라이언트 설명을 반환합니다.
일반적으로 AndroidManifest.xml에 정의된 패키지의 이름입니다.
| 반환 값 | |
|---|---|
String |
클라이언트 설명 또는 null(설명이 아직 클라이언트에서 전송되지 않은 경우) |
getDataDir
public String getDataDir ()
애플리케이션의 데이터 디렉터리를 반환합니다.
| 반환 값 | |
|---|---|
String |
|
getDebuggerConnectionStatus
public ClientData.DebuggerStatus getDebuggerConnectionStatus ()
디버거 연결 상태를 반환합니다.
| 반환 값 | |
|---|---|
ClientData.DebuggerStatus |
|
getHprofDumpHandler
public static ClientData.IHprofDumpHandler getHprofDumpHandler ()
| 반환 값 | |
|---|---|
ClientData.IHprofDumpHandler |
|
getJvmFlags
public String getJvmFlags ()
사용 중인 VM 플래그를 반환합니다. 알 수 없는 경우 null을 반환합니다.
| 반환 값 | |
|---|---|
String |
|
getMappedNativeLibraries
publicgetMappedNativeLibraries ()
이 클라이언트의 메모리에 매핑된 네이티브 라이브러리 목록을 반환합니다.
| 반환 값 | |
|---|---|
|
|
getMethodProfilingHandler
public static ClientData.IMethodProfilingHandler getMethodProfilingHandler ()
| 반환 값 | |
|---|---|
ClientData.IMethodProfilingHandler |
|
getMethodProfilingStatus
public ClientData.MethodProfilingStatus getMethodProfilingStatus ()
메서드 프로파일링 상태를 반환합니다.
| 반환 값 | |
|---|---|
ClientData.MethodProfilingStatus |
|
getNativeHeapData
public ClientData.HeapData getNativeHeapData ()
네이티브 코드의 HeapData 객체를 반환합니다.
| 반환 값 | |
|---|---|
ClientData.HeapData |
|
getPackageName
public String getPackageName ()
프로토콜 지원이 있는 경우 애플리케이션의 실제 패키지 이름을 반환합니다. 프로토콜 지원이 없으면 앱 이름에서 시도된 패키지 이름 파생 (이전 버전과의 호환성 유지)을 반환하거나, 성공하지 못한 경우 앱 이름을 반환합니다.
| 반환 값 | |
|---|---|
String |
|
getPendingHprofDump
public String getPendingHprofDump ()
쓰여지고 있는 기기 측 hprof 파일의 경로를 반환합니다.
| 반환 값 | |
|---|---|
String |
|
getPendingMethodProfiling
public String getPendingMethodProfiling ()
작성 중인 기기 측 메서드 프로파일링 파일의 경로를 반환합니다.
| 반환 값 | |
|---|---|
String |
|
getPid
public int getPid ()
프로세스 ID를 반환합니다.
| 반환 값 | |
|---|---|
int |
|
getThread
public ThreadInfo getThread (int threadId)
스레드 ID로 ThreadInfo를 반환합니다.
| 매개변수 | |
|---|---|
threadId |
int |
| 반환 값 | |
|---|---|
ThreadInfo |
|
getThreads
public ThreadInfo[] getThreads ()
스레드 목록을 ThreadInfo 객체로 반환합니다.
ClientImpl.requestThreadUpdate()로 스레드 업데이트가 요청될 때까지 목록은 비어 있습니다.
| 반환 값 | |
|---|---|
ThreadInfo[] |
|
getTotalNativeMemory
public int getTotalNativeMemory ()
총 네이티브 메모리를 반환합니다.
| 반환 값 | |
|---|---|
int |
|
getUserId
public int getUserId ()
클라이언트의 사용자 ID를 반환합니다.
| 반환 값 | |
|---|---|
int |
설정된 경우 사용자 ID, 그렇지 않은 경우 -1 |
getVmHeapData
public ClientData.HeapData getVmHeapData ()
VM의 HeapData 객체를 반환합니다.
| 반환 값 | |
|---|---|
ClientData.HeapData |
|
getVmHeapIds
publicgetVmHeapIds ()
알려진 VM 힙 ID 목록에 대한 반복자를 반환합니다.
호출자는 반복하는 동안 ClientData 객체에서 동기화해야 합니다.
| 반환 값 | |
|---|---|
|
힙 ID 목록에 대한 반복기 |
getVmHeapInfo
public ClientData.HeapInfo getVmHeapInfo (int heapId)
지정된 VM 힙의 가장 최근 정보 값을 반환합니다.
| 매개변수 | |
|---|---|
heapId |
int: 정보를 반환해야 하는 힙 |
| 반환 값 | |
|---|---|
ClientData.HeapInfo |
지정된 힙의 정보 값을 포함하는 맵 힙 ID를 알 수 없는 경우 null를 반환합니다. |
getVmIdentifier
public String getVmIdentifier ()
클라이언트의 VM 식별자를 반환합니다.
| 반환 값 | |
|---|---|
String |
|
hasFeature
public boolean hasFeature (String feature)
ClientImpl이 지정된 feature을 지원하면 true를 반환합니다.
| 매개변수 | |
|---|---|
feature |
String: 테스트할 기능입니다. |
| 반환 값 | |
|---|---|
boolean |
기능이 지원되는 경우 true |
hasPendingHprofDump
public boolean hasPendingHprofDump ()
| 반환 값 | |
|---|---|
boolean |
|
isNativeDebuggable
public boolean isNativeDebuggable ()
| 반환 값 | |
|---|---|
boolean |
|
isValidUserId
public boolean isValidUserId ()
이 클라이언트의 사용자 ID가 설정된 경우 true를 반환합니다. 여러 사용자를 지원하는 기기만 실제로 사용자 ID를 ddms에 반환합니다. 기타/이전 기기의 경우 설정되지 않습니다.
| 반환 값 | |
|---|---|
boolean |
|
removeThread
public void removeThread (int threadId)
목록에서 스레드를 삭제합니다.
| 매개변수 | |
|---|---|
threadId |
int |
setAbi
public void setAbi (String abi)
| 매개변수 | |
|---|---|
abi |
String |
setAllocationStatus
public void setAllocationStatus (ClientData.AllocationTrackingStatus status)
| 매개변수 | |
|---|---|
status |
ClientData.AllocationTrackingStatus |
setAllocationTrackingHandler
public static void setAllocationTrackingHandler (ClientData.IAllocationTrackingHandler handler)
이 메서드는 지원 중단되었습니다. AndroidDebugBridge.addClientChangeListener(com.android.tradefed.device.server.AndroidDebugBridge.IClientChangeListener)을 사용하여 AndroidDebugBridge.IClientChangeListener을 등록하세요.
| 매개변수 | |
|---|---|
handler |
ClientData.IAllocationTrackingHandler |
setAllocationsData
public void setAllocationsData (byte[] data)
| 매개변수 | |
|---|---|
data |
byte |
setDebuggerConnectionStatus
public void setDebuggerConnectionStatus (ClientData.DebuggerStatus status)
디버거 연결 상태를 설정합니다.
| 매개변수 | |
|---|---|
status |
ClientData.DebuggerStatus |
setHeapInfo
public void setHeapInfo (int heapId,
long maxSizeInBytes,
long sizeInBytes,
long bytesAllocated,
long objectsAllocated,
long timeStamp,
byte reason)지정된 힙의 현재 힙 정보 값을 설정합니다.
| 매개변수 | |
|---|---|
heapId |
int: 정보를 업데이트할 힙 |
maxSizeInBytes |
long |
sizeInBytes |
long: 힙 크기(바이트) |
bytesAllocated |
long: 힙에 현재 할당된 바이트 수 |
objectsAllocated |
long: 현재 할당된 객체 수 |
setHprofData
public void setHprofData (String filename)
| 매개변수 | |
|---|---|
filename |
String |
setHprofData
public void setHprofData (byte[] data)
| 매개변수 | |
|---|---|
data |
byte |
setHprofDumpHandler
public static void setHprofDumpHandler (ClientData.IHprofDumpHandler handler)
HPROF 덤프가 성공하거나 실패할 때 알림을 수신하는 핸들러를 설정합니다. 이 메서드는 지원 중단되었습니다. 클라이언트 리스너를 등록하고 CHANGE_HPROF를 수신하세요.
| 매개변수 | |
|---|---|
handler |
ClientData.IHprofDumpHandler |
setJvmFlags
public void setJvmFlags (String jvmFlags)
| 매개변수 | |
|---|---|
jvmFlags |
String |
setMethodProfilingHandler
public static void setMethodProfilingHandler (ClientData.IMethodProfilingHandler handler)
HPROF 덤프가 성공하거나 실패할 때 알림을 수신하는 핸들러를 설정합니다. 이 메서드는 지원 중단되었습니다. 클라이언트 리스너를 등록하고 CHANGE_HPROF를 수신하세요.
| 매개변수 | |
|---|---|
handler |
ClientData.IMethodProfilingHandler |
setMethodProfilingStatus
public void setMethodProfilingStatus (ClientData.MethodProfilingStatus status)
| 매개변수 | |
|---|---|
status |
ClientData.MethodProfilingStatus |
setNames
public void setNames (ClientData.Names names)
프로세스, 사용자 ID (예: 개인 프로필과 직장 프로필), 패키지 이름을 설정합니다.
HELO와 APNM 사이에 경합이 있을 수 있습니다. 기기에서 순서를 강제하는 대신 사전 초기화된 이름이 지정된 이름을 대체하도록 허용하지 않습니다.
| 매개변수 | |
|---|---|
names |
ClientData.Names |
setNativeDebuggable
public void setNativeDebuggable (boolean nativeDebuggable)
| 매개변수 | |
|---|---|
nativeDebuggable |
boolean |
setPendingHprofDump
public void setPendingHprofDump (String pendingHprofDump)
작성 중인 hprof 파일의 기기 측 경로를 설정합니다.
| 매개변수 | |
|---|---|
pendingHprofDump |
String: hprof 파일의 경로 |
setPendingMethodProfiling
public void setPendingMethodProfiling (String pendingMethodProfiling)
작성 중인 메서드 프로필 파일의 기기 측 경로를 설정합니다.
| 매개변수 | |
|---|---|
pendingMethodProfiling |
String: 작성 중인 파일 |
setTotalNativeMemory
public void setTotalNativeMemory (int totalMemory)
| 매개변수 | |
|---|---|
totalMemory |
int |
setVmIdentifier
public void setVmIdentifier (String ident)
VM 식별자를 설정합니다.
| 매개변수 | |
|---|---|
ident |
String |