NativeLeakCollector
public class NativeLeakCollector
extends BaseTargetPreparer
implements ITestLoggerReceiver
java.lang.Object | ||
↳ | com.android.tradefed.targetprep.BaseTargetPreparer | |
↳ | com.android.tradefed.targetprep.NativeLeakCollector |
运行“dumpsys meminfo --unreachable -a”的ITargetPreparer
来识别每个进程当前持有的无法访问的本机内存。
注意:此准备器需要 N 平台或更新版本。
概括
公共构造函数 | |
---|---|
NativeLeakCollector () |
公共方法 | |
---|---|
void | setTestLogger ( ITestLogger testLogger) 注入 |
void | setUp ( TestInformation testInfo) |
void | tearDown ( TestInformation testInfo, Throwable e)
|
公共构造函数
NativeLeakCollector
public NativeLeakCollector ()
公共方法
设置
public void setUp (TestInformation testInfo)
参数 | |
---|---|
testInfo | TestInformation |
投掷 | |
---|---|
BuildError | |
DeviceNotAvailableException | |
TargetSetupError |
拆除
public void tearDown (TestInformation testInfo, Throwable e)
参数 | |
---|---|
testInfo | TestInformation |
e | Throwable |
投掷 | |
---|---|
DeviceNotAvailableException |