NativeLeakCollector

public class NativeLeakCollector
extends BaseTargetPreparer implements ITestLoggerReceiver

java.lang.Object
   ↳ com.android.tradefed.targetprep.BaseTargetPreparer
     ↳ com.android.tradefed.targetprep.NativeLeakCollector


A ITargetPreparer that runs 'dumpsys meminfo --unreachable -a' to identify the unreachable native memory currently held by each process.

Note: this preparer requires N platform or newer.

Summary

Public constructors

NativeLeakCollector()

Public methods

void setTestLogger(ITestLogger testLogger)

Injects the ITestLogger instance

void setUp(TestInformation testInfo)

void tearDown(TestInformation testInfo, Throwable e)

Public constructors

NativeLeakCollector

public NativeLeakCollector ()

Public methods

setTestLogger

public void setTestLogger (ITestLogger testLogger)

Injects the ITestLogger instance

Parameters
testLogger ITestLogger

setUp

public void setUp (TestInformation testInfo)

Parameters
testInfo TestInformation

Throws
BuildError
DeviceNotAvailableException
TargetSetupError

tearDown

public void tearDown (TestInformation testInfo, 
                Throwable e)

Parameters
testInfo TestInformation

e Throwable

Throws
DeviceNotAvailableException