Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I Can't create a baseline profile for a physical device #18

Closed
gerardoeg opened this issue Nov 30, 2023 · 1 comment
Closed

I Can't create a baseline profile for a physical device #18

gerardoeg opened this issue Nov 30, 2023 · 1 comment
Assignees

Comments

@gerardoeg
Copy link

  1. move to end branch.
  2. enable useConnectedDevices = true on build.gradle.kts of baselineprofile module
baselineProfile {
    managedDevices += "pixel6Api31"
    useConnectedDevices = true
}

  1. run:
./gradlew :app:generateReleaseBaselineProfile -Pandroid.testInstrumentationRunnerArguments.androidx.benchmark.enabledRules=BaselineProfile

Error:

com.google.baselineprofile.BaselineProfileGenerator > generate[Pixel 5 - 14] FAILED 
        java.lang.IllegalStateException: Expected no stdout/stderr from pm dump-profiles --dump-classes-and-methods com.example.baselineprofiles_codelab, saw Output(stdout=Profile saved to '/data/misc/profman/com.example.baselineprofiles_codelab-primary.prof.txt'
        , stderr=)

Full Log:


./gradlew :app:generateReleaseBaselineProfile -Pandroid.testInstrumentationRunnerArguments.androidx.benchmark.enabledRules=BaselineProfile
Configuration on demand is an incubating feature.

> Configure project :app
Passing custom test runner argument android.testInstrumentationRunnerArguments.androidx.benchmark.enabledRules from gradle.properties or command line is not compatible with configuration caching. Please specify this argument using android gradle dsl.

> Task :baselineprofile:connectedNonMinifiedReleaseAndroidTest
Starting 5 tests on Pixel 5 - 14

com.google.baselineprofile.BaselineProfileGenerator > generate[Pixel 5 - 14] FAILED 
        java.lang.IllegalStateException: Expected no stdout/stderr from pm dump-profiles --dump-classes-and-methods com.example.baselineprofiles_codelab, saw Output(stdout=Profile saved to '/data/misc/profman/com.example.baselineprofiles_codelab-primary.prof.txt'
        , stderr=)

com.google.baselineprofile.ScrollBenchmarks > scrollCompilationBaselineProfiles[Pixel 5 - 14] SKIPPED 

com.google.baselineprofile.ScrollBenchmarks > scrollCompilationNone[Pixel 5 - 14] SKIPPED 

com.google.baselineprofile.StartupBenchmarks > startupCompilationBaselineProfiles[Pixel 5 - 14] SKIPPED 

com.google.baselineprofile.StartupBenchmarks > startupCompilationNone[Pixel 5 - 14] SKIPPED 
Tests on Pixel 5 - 14 failed: There was 1 failure(s).

> Task :baselineprofile:connectedNonMinifiedReleaseAndroidTest FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':baselineprofile:connectedNonMinifiedReleaseAndroidTest'.
> There were failing tests. See the report at: file:///Users/ge/dev-test/codelab-android-performance/baseline-profiles/baselineprofile/build/reports/androidTests/connected/index.html

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1m 19s
65 actionable tasks: 3 executed, 62 up-to-date

Device: Pixel 5 - Android 14.

@keyboardsurfer
Copy link
Member

As this issue has been open since November 2023 and we have made significant progress in baseline profile generation, I'm assuming that this is no longer relevant.

Closing as stale. Please open another issue if it still persists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants