INNER CODE UNIT · Kotlin

benchmark

Swordfish90/Lemuroid · baselineprofile/src/main/java/com/swordfish/lemuroid/baselineprofile/StartupBenchmarks.kt:46

    private fun benchmark(compilationMode: CompilationMode) {
        // This example works only with the variant with application id `com.swordfish.lemuroid`."
        rule.measureRepeated(
            packageName = "com.swordfish.lemuroid",
            metrics = listOf(StartupTimingMetric()),
            compilationMode = compilationMode,
            startupMode = StartupMode.COLD,
            iterations = 10,
            setupBlock = {
                pressHome()
            },
            measureBlock = {
                startActivityAndWait()

                // TODO Add interactions to wait for when your app is fully drawn.
                // The app is fully drawn when Activity.reportFullyDrawn is called.
                // For Jetpack Compose, you can use ReportDrawn, ReportDrawnWhen and ReportDrawnAfter
                // from the AndroidX Activity library.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…