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 |