blob: 44fdd1a53e0291834aa42abc0f4f0a1b5890d8a4 [file] [log] [blame]
// Signature format: 4.0
package androidx.benchmark.macro.junit4 {
@RequiresApi(28) @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public final class BaselineProfileRule implements org.junit.rules.TestRule {
method public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description);
method public void collectBaselineProfile(String packageName, optional kotlin.jvm.functions.Function1<? super androidx.benchmark.macro.MacrobenchmarkScope,kotlin.Unit> setupBlock, kotlin.jvm.functions.Function1<? super androidx.benchmark.macro.MacrobenchmarkScope,kotlin.Unit> profileBlock);
}
@RequiresApi(23) public final class MacrobenchmarkRule implements org.junit.rules.TestRule {
ctor public MacrobenchmarkRule();
method public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description);
method public void measureRepeated(String packageName, java.util.List<? extends androidx.benchmark.macro.Metric> metrics, optional androidx.benchmark.macro.CompilationMode compilationMode, optional androidx.benchmark.macro.StartupMode? startupMode, @IntRange(from=1) int iterations, optional androidx.core.util.Consumer<androidx.benchmark.macro.MacrobenchmarkScope> setupFn, androidx.core.util.Consumer<androidx.benchmark.macro.MacrobenchmarkScope> measureFn);
method public void measureRepeated(String packageName, java.util.List<? extends androidx.benchmark.macro.Metric> metrics, optional androidx.benchmark.macro.CompilationMode compilationMode, optional androidx.benchmark.macro.StartupMode? startupMode, @IntRange(from=1) int iterations, androidx.core.util.Consumer<androidx.benchmark.macro.MacrobenchmarkScope> measureFn);
method public void measureRepeated(String packageName, java.util.List<? extends androidx.benchmark.macro.Metric> metrics, optional androidx.benchmark.macro.CompilationMode compilationMode, @IntRange(from=1) int iterations, androidx.core.util.Consumer<androidx.benchmark.macro.MacrobenchmarkScope> measureFn);
method public void measureRepeated(String packageName, java.util.List<? extends androidx.benchmark.macro.Metric> metrics, @IntRange(from=1) int iterations, androidx.core.util.Consumer<androidx.benchmark.macro.MacrobenchmarkScope> measureFn);
}
}