Skip to content

Commit

Permalink
Refactor BaselineProfileGenerator
Browse files Browse the repository at this point in the history
  • Loading branch information
skydoves committed Aug 26, 2023
1 parent 092340c commit 40b30c6
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,22 @@

package com.skydoves.balloon.benchmark

import android.os.Build
import androidx.annotation.RequiresApi
import androidx.benchmark.macro.junit4.BaselineProfileRule
import org.junit.Rule
import org.junit.Test

@RequiresApi(Build.VERSION_CODES.P)
class BaselineProfileGenerator {
@get:Rule
val baselineProfileRule = BaselineProfileRule()

@Test
fun startup() =
baselineProfileRule.collectBaselineProfile(
baselineProfileRule.collect(
packageName = "com.skydoves.balloon.benchmark.app",
includeInStartupProfile = true
) {
pressHome()
// This block defines the app's critical user journey. Here we are interested in
Expand Down

0 comments on commit 40b30c6

Please sign in to comment.