blob: 9299b525d21381326c3a1c84d809bde8f965b212 [file]
// Signature format: 4.0
package androidx.benchmark {
public final class BenchmarkState {
method public boolean keepRunning();
method @kotlin.PublishedApi internal boolean keepRunningInternal();
method public void pauseTiming();
method public void resumeTiming();
property @kotlin.PublishedApi internal int iterationsRemaining;
field public static final androidx.benchmark.BenchmarkState.Companion Companion;
field @kotlin.PublishedApi internal int iterationsRemaining;
}
public static final class BenchmarkState.Companion {
}
public final class BlackHole {
method public static void consume(boolean value);
method public static void consume(byte value);
method public static void consume(char value);
method public static void consume(double value);
method public static void consume(float value);
method public static void consume(int value);
method public static void consume(Object value);
method public static void consume(long value);
method public static void consume(short value);
field public static final androidx.benchmark.BlackHole INSTANCE;
}
@SuppressCompatibility @kotlin.RequiresOptIn @kotlin.annotation.Retention(kotlin.annotation.AnnotationRetention.BINARY) public @interface ExperimentalBenchmarkConfigApi {
}
@SuppressCompatibility @kotlin.RequiresOptIn @kotlin.annotation.Retention(kotlin.annotation.AnnotationRetention.BINARY) public @interface ExperimentalBenchmarkStateApi {
}
@SuppressCompatibility @androidx.benchmark.ExperimentalBenchmarkConfigApi public final class ExperimentalConfig {
ctor public ExperimentalConfig();
ctor public ExperimentalConfig(optional androidx.benchmark.perfetto.PerfettoConfig? perfettoConfig, optional androidx.benchmark.StartupInsightsConfig? startupInsightsConfig);
ctor @BytecodeOnly public ExperimentalConfig(androidx.benchmark.perfetto.PerfettoConfig!, androidx.benchmark.StartupInsightsConfig!, int, kotlin.jvm.internal.DefaultConstructorMarker!);
method @InaccessibleFromKotlin public androidx.benchmark.perfetto.PerfettoConfig? getPerfettoConfig();
method @InaccessibleFromKotlin public androidx.benchmark.StartupInsightsConfig? getStartupInsightsConfig();
property public androidx.benchmark.perfetto.PerfettoConfig? perfettoConfig;
property public androidx.benchmark.StartupInsightsConfig? startupInsightsConfig;
}
@SuppressCompatibility @androidx.benchmark.ExperimentalBenchmarkConfigApi public enum InProcessTracingMode {
enum_constant public static final androidx.benchmark.InProcessTracingMode Disable;
enum_constant public static final androidx.benchmark.InProcessTracingMode Require;
enum_constant public static final androidx.benchmark.InProcessTracingMode UseIfAvailable;
}
@SuppressCompatibility @androidx.benchmark.ExperimentalBenchmarkConfigApi public abstract class MetricCapture {
ctor public MetricCapture(java.util.List<java.lang.String> names);
method public abstract void capturePaused();
method public abstract void captureResumed();
method public abstract void captureStart(long timeNs);
method public abstract void captureStop(long timeNs, long[] output, int offset);
method @InaccessibleFromKotlin public final java.util.List<java.lang.String> getNames();
property public final java.util.List<java.lang.String> names;
}
@SuppressCompatibility @androidx.benchmark.ExperimentalBenchmarkConfigApi public final class MicrobenchmarkConfig {
ctor public MicrobenchmarkConfig();
ctor @BytecodeOnly public MicrobenchmarkConfig(java.util.List!, boolean, boolean, androidx.benchmark.ProfilerConfig!, Integer!, Integer!, int, kotlin.jvm.internal.DefaultConstructorMarker!);
ctor public MicrobenchmarkConfig(optional java.util.List<? extends androidx.benchmark.MetricCapture> metrics);
ctor public MicrobenchmarkConfig(optional java.util.List<? extends androidx.benchmark.MetricCapture> metrics, optional boolean traceAppTagEnabled);
ctor public MicrobenchmarkConfig(optional java.util.List<? extends androidx.benchmark.MetricCapture> metrics, optional boolean traceAppTagEnabled, optional boolean perfettoSdkTracingEnabled);
ctor public MicrobenchmarkConfig(optional java.util.List<? extends androidx.benchmark.MetricCapture> metrics, optional boolean traceAppTagEnabled, optional boolean perfettoSdkTracingEnabled, optional androidx.benchmark.ProfilerConfig? profiler);
ctor public MicrobenchmarkConfig(optional java.util.List<? extends androidx.benchmark.MetricCapture> metrics, optional boolean traceAppTagEnabled, optional boolean perfettoSdkTracingEnabled, optional androidx.benchmark.ProfilerConfig? profiler, optional Integer? warmupCount);
ctor public MicrobenchmarkConfig(optional java.util.List<? extends androidx.benchmark.MetricCapture> metrics, optional boolean traceAppTagEnabled, optional boolean perfettoSdkTracingEnabled, optional androidx.benchmark.ProfilerConfig? profiler, optional Integer? warmupCount, optional Integer? measurementCount);
method @InaccessibleFromKotlin public Integer? getMeasurementCount();
method @InaccessibleFromKotlin public java.util.List<androidx.benchmark.MetricCapture> getMetrics();
method @InaccessibleFromKotlin public androidx.benchmark.ProfilerConfig? getProfiler();
method @InaccessibleFromKotlin public Integer? getWarmupCount();
method @InaccessibleFromKotlin public boolean isPerfettoSdkTracingEnabled();
method @InaccessibleFromKotlin public boolean isTraceAppTagEnabled();
property public Integer? measurementCount;
property public java.util.List<androidx.benchmark.MetricCapture> metrics;
property public boolean perfettoSdkTracingEnabled;
property public androidx.benchmark.ProfilerConfig? profiler;
property public boolean traceAppTagEnabled;
property public Integer? warmupCount;
}
public class MicrobenchmarkScope {
method public final void pauseMeasurement();
method public final void resumeMeasurement();
method public final inline <T> T runWithMeasurementDisabled(kotlin.jvm.functions.Function0<? extends T> block);
}
@SuppressCompatibility @androidx.benchmark.ExperimentalBenchmarkConfigApi public abstract sealed nonexhaustive class ProfilerConfig {
}
@SuppressCompatibility @androidx.benchmark.ExperimentalBenchmarkConfigApi public static final class ProfilerConfig.MethodTracing extends androidx.benchmark.ProfilerConfig {
ctor public ProfilerConfig.MethodTracing();
field public static final boolean AFFECTS_MEASUREMENTS_ON_THIS_DEVICE;
field public static final androidx.benchmark.ProfilerConfig.MethodTracing.Companion Companion;
}
@SuppressCompatibility @androidx.benchmark.ExperimentalBenchmarkConfigApi public static final class ProfilerConfig.MethodTracing.Companion {
property public boolean AFFECTS_MEASUREMENTS_ON_THIS_DEVICE;
}
@SuppressCompatibility @androidx.benchmark.ExperimentalBenchmarkConfigApi public static final class ProfilerConfig.StackSampling extends androidx.benchmark.ProfilerConfig {
ctor public ProfilerConfig.StackSampling();
}
@SuppressCompatibility @androidx.benchmark.ExperimentalBenchmarkConfigApi public final class StartupInsightsConfig {
ctor public StartupInsightsConfig(boolean isEnabled);
method @InaccessibleFromKotlin public boolean isEnabled();
property public boolean isEnabled;
}
@SuppressCompatibility @androidx.benchmark.ExperimentalBenchmarkConfigApi public final class TimeCapture extends androidx.benchmark.MetricCapture {
ctor public TimeCapture();
ctor public TimeCapture(optional String name);
ctor @BytecodeOnly public TimeCapture(String!, int, kotlin.jvm.internal.DefaultConstructorMarker!);
method public void capturePaused();
method public void captureResumed();
method public void captureStart(long timeNs);
method public void captureStop(long timeNs, long[] output, int offset);
}
@SuppressCompatibility public final class TraceProcessorExtensions {
method @SuppressCompatibility @androidx.benchmark.traceprocessor.ExperimentalTraceProcessorApi public static <T> T runServer(androidx.benchmark.traceprocessor.TraceProcessor.Companion, kotlin.jvm.functions.Function1<? super androidx.benchmark.traceprocessor.TraceProcessor,? extends T> block);
method @SuppressCompatibility @androidx.benchmark.traceprocessor.ExperimentalTraceProcessorApi public static <T> T runServer(androidx.benchmark.traceprocessor.TraceProcessor.Companion, optional long timeoutMs, kotlin.jvm.functions.Function1<? super androidx.benchmark.traceprocessor.TraceProcessor,? extends T> block);
method @BytecodeOnly @SuppressCompatibility @androidx.benchmark.traceprocessor.ExperimentalTraceProcessorApi public static Object! runServer$default(androidx.benchmark.traceprocessor.TraceProcessor.Companion!, long, kotlin.jvm.functions.Function1!, int, Object!);
method @SuppressCompatibility @CheckResult @androidx.benchmark.traceprocessor.ExperimentalTraceProcessorApi public static androidx.benchmark.traceprocessor.TraceProcessor.Handle startServer(androidx.benchmark.traceprocessor.TraceProcessor.Companion);
method @SuppressCompatibility @CheckResult @androidx.benchmark.traceprocessor.ExperimentalTraceProcessorApi public static androidx.benchmark.traceprocessor.TraceProcessor.Handle startServer(androidx.benchmark.traceprocessor.TraceProcessor.Companion, optional long timeoutMs);
method @BytecodeOnly @SuppressCompatibility @CheckResult @androidx.benchmark.traceprocessor.ExperimentalTraceProcessorApi public static androidx.benchmark.traceprocessor.TraceProcessor.Handle! startServer$default(androidx.benchmark.traceprocessor.TraceProcessor.Companion!, long, int, Object!);
}
}
package androidx.benchmark.perfetto {
@SuppressCompatibility @kotlin.RequiresOptIn @kotlin.annotation.Retention(kotlin.annotation.AnnotationRetention.BINARY) @kotlin.annotation.Target(allowedTargets={kotlin.annotation.AnnotationTarget.CLASS, kotlin.annotation.AnnotationTarget.FUNCTION}) public @interface ExperimentalPerfettoCaptureApi {
}
@SuppressCompatibility @androidx.benchmark.perfetto.ExperimentalPerfettoCaptureApi public abstract sealed nonexhaustive class PerfettoConfig {
}
@SuppressCompatibility @androidx.benchmark.perfetto.ExperimentalPerfettoCaptureApi public static final class PerfettoConfig.Binary extends androidx.benchmark.perfetto.PerfettoConfig {
ctor public PerfettoConfig.Binary(byte[] bytes);
method @InaccessibleFromKotlin public byte[] getBytes();
property public byte[] bytes;
}
@SuppressCompatibility @androidx.benchmark.perfetto.ExperimentalPerfettoCaptureApi public static final class PerfettoConfig.Text extends androidx.benchmark.perfetto.PerfettoConfig {
ctor public PerfettoConfig.Text(String text);
method @InaccessibleFromKotlin public String getText();
property public String text;
}
}
package @SuppressCompatibility androidx.benchmark.traceprocessor {
@SuppressCompatibility public final class PerfettoTraceKt {
method @SuppressCompatibility @androidx.benchmark.perfetto.ExperimentalPerfettoCaptureApi public static void record(androidx.benchmark.traceprocessor.PerfettoTrace.Companion, String fileLabel, androidx.benchmark.perfetto.PerfettoConfig config, optional String? userspaceTracingPackage, optional kotlin.jvm.functions.Function1<? super androidx.benchmark.traceprocessor.PerfettoTrace,kotlin.Unit>? traceCallback, kotlin.jvm.functions.Function0<kotlin.Unit> block);
method @SuppressCompatibility @androidx.benchmark.perfetto.ExperimentalPerfettoCaptureApi public static void record(androidx.benchmark.traceprocessor.PerfettoTrace.Companion, String fileLabel, optional java.util.List<java.lang.String> appTagPackages, optional String? userspaceTracingPackage, optional kotlin.jvm.functions.Function1<? super androidx.benchmark.traceprocessor.PerfettoTrace,kotlin.Unit>? traceCallback, kotlin.jvm.functions.Function0<kotlin.Unit> block);
method @BytecodeOnly @SuppressCompatibility @androidx.benchmark.perfetto.ExperimentalPerfettoCaptureApi public static void record$default(androidx.benchmark.traceprocessor.PerfettoTrace.Companion!, String!, androidx.benchmark.perfetto.PerfettoConfig!, String!, kotlin.jvm.functions.Function1!, kotlin.jvm.functions.Function0!, int, Object!);
method @BytecodeOnly @SuppressCompatibility @androidx.benchmark.perfetto.ExperimentalPerfettoCaptureApi public static void record$default(androidx.benchmark.traceprocessor.PerfettoTrace.Companion!, String!, java.util.List!, String!, kotlin.jvm.functions.Function1!, kotlin.jvm.functions.Function0!, int, Object!);
}
}
package androidx.benchmark.vmtrace {
public typealias UuidProvider = kotlin.jvm.functions.Function0<java.lang.Long>;
}