Giter Club home page Giter Club logo

Comments (11)

keyboardsurfer avatar keyboardsurfer commented on August 11, 2024 1

Thanks for the context, @mrzbn. I have filed a bug to keep track of this problem.

from performance-samples.

keyboardsurfer avatar keyboardsurfer commented on August 11, 2024

Thanks for reporting this problem.
Is this an issue with the currently existing sample from main?

from performance-samples.

MML-Pro avatar MML-Pro commented on August 11, 2024

Thanks for reporting this problem. Is this an issue with the currently existing sample from main?

If I understand your question right this happens in the MacrobenchmarkSample sample app, I didn't test/tried the other samples JankStats sample or Microbenchmark sample

from performance-samples.

keyboardsurfer avatar keyboardsurfer commented on August 11, 2024

I can't reproduce this behavior on either a Mac nor a Linux machine and currently don't have access to a Windows machine.
I'm not aware of any general issues with Windows machines and Macrobenchmarking.
Could you check your build outputs and gradle logs for more detailed logs?

from performance-samples.

MML-Pro avatar MML-Pro commented on August 11, 2024

Hello Ben,
I tried to restart my device and run it again on new version of android and I got this

terminal output

Windows PowerShell                                          
Copyright (C) Microsoft Corporation. All rights reserved.   
                                                            
Try the new cross-platform PowerShell https://aka.ms/pscore6

PS C:\Users\Mido\StudioProjects\performance-samples\MacrobenchmarkSample> ./gradlew macrobenchmark:cC
Starting a Gradle Daemon, 1 busy and 1 incompatible Daemons could not be reused, use --status for details

> Task :macrobenchmark:connectedBenchmarkAndroidTest
Starting 34 tests on MI 8 Lite - 12

com.example.macrobenchmark.TextInputFrameTimingBenchmark > inputText[MI 8 Lite - 12] FAILED 
        java.util.NoSuchElementException: No element of the collection was transformed to a non-null value.
        at androidx.benchmark.macro.FrameStatsResult$Companion.parse(FrameStatsResult.kt:57)

com.example.macrobenchmark.TrivialBaselineProfileBenchmark > appStartupAndUserJourneys[MI 8 Lite - 12] FAILED 
        java.lang.IllegalArgumentException: Baseline Profile Collection requires a rooted device, and a rooted adb session. Use `adb root`.
        at androidx.benchmark.macro.BaselineProfilesKt.collectBaselineProfile(BaselineProfiles.kt:45)

com.example.macrobenchmark.TrivialBaselineProfileBenchmark > appStartupOnly[MI 8 Lite - 12] FAILED 
        java.lang.IllegalArgumentException: Baseline Profile Collection requires a rooted device, and a rooted adb session. Use `adb root`.
        at androidx.benchmark.macro.BaselineProfilesKt.collectBaselineProfile(BaselineProfiles.kt:45)

com.example.macrobenchmark.clicks.ClickLatencyBenchmark > recyclerViewClick[MI 8 Lite - 12] FAILED 
        java.util.NoSuchElementException: No element of the collection was transformed to a non-null value.
        at androidx.benchmark.macro.FrameStatsResult$Companion.parse(FrameStatsResult.kt:57)

com.example.macrobenchmark.clicks.ClickLatencyBenchmark > simpleViewClick[MI 8 Lite - 12] FAILED 
        java.util.NoSuchElementException: No element of the collection was transformed to a non-null value.
        at androidx.benchmark.macro.FrameStatsResult$Companion.parse(FrameStatsResult.kt:57)

com.example.macrobenchmark.clicks.ClickLatencyBenchmark > scrollViewClick[MI 8 Lite - 12] FAILED 
        java.util.NoSuchElementException: No element of the collection was transformed to a non-null value.
        at androidx.benchmark.macro.FrameStatsResult$Companion.parse(FrameStatsResult.kt:57)

com.example.macrobenchmark.clicks.ClickLatencyBenchmark > composeLazyColumnClick[MI 8 Lite - 12] FAILED 
        java.util.NoSuchElementException: No element of the collection was transformed to a non-null value.
        at androidx.benchmark.macro.FrameStatsResult$Companion.parse(FrameStatsResult.kt:57)

com.example.macrobenchmark.clicks.ClickLatencyBenchmark > listViewClick[MI 8 Lite - 12] FAILED 
        java.util.NoSuchElementException: No element of the collection was transformed to a non-null value.
        at androidx.benchmark.macro.FrameStatsResult$Companion.parse(FrameStatsResult.kt:57)

com.example.macrobenchmark.frames.FrameTimingBenchmark > scrollList[MI 8 Lite - 12] FAILED 
        java.util.NoSuchElementException: No element of the collection was transformed to a non-null value.
        at androidx.benchmark.macro.FrameStatsResult$Companion.parse(FrameStatsResult.kt:57)

com.example.macrobenchmark.frames.FrameTimingBenchmark > scrollComposeList[MI 8 Lite - 12] FAILED 
        java.util.NoSuchElementException: No element of the collection was transformed to a non-null value.
        at androidx.benchmark.macro.FrameStatsResult$Companion.parse(FrameStatsResult.kt:57)

com.example.macrobenchmark.frames.NestedRecyclerFrameTimingBenchmarks > scrollNestedRecyclerWithRecyclerPool[MI 8 Lite - 12] FAILED 
        java.util.NoSuchElementException: No element of the collection was transformed to a non-null value.
        at androidx.benchmark.macro.FrameStatsResult$Companion.parse(FrameStatsResult.kt:57)

com.example.macrobenchmark.frames.NestedRecyclerFrameTimingBenchmarks > scrollNestedRecyclerWithoutRecyclerPool[MI 8 Lite - 12] FAILED 
        java.util.NoSuchElementException: No element of the collection was transformed to a non-null value.
        at androidx.benchmark.macro.FrameStatsResult$Companion.parse(FrameStatsResult.kt:57)

com.example.macrobenchmark.frames.NonExportedActivityBenchmark > nonExportedActivityScrollList[MI 8 Lite - 12] FAILED 
        java.util.NoSuchElementException: No element of the collection was transformed to a non-null value.
        at androidx.benchmark.macro.FrameStatsResult$Companion.parse(FrameStatsResult.kt:57)

com.example.macrobenchmark.startup.ColdStartupBenchmark > startupPartialWithBaselineProfiles[MI 8 Lite - 12] FAILED 
        java.lang.RuntimeException: Baseline profiles aren't supported on this device version
        at androidx.benchmark.macro.CompilationMode$Partial.broadcastBaselineProfileInstall(CompilationMode.kt:307)

com.example.macrobenchmark.startup.ColdStartupBenchmark > startupNoCompilation[MI 8 Lite - 12] FAILED 
        java.util.NoSuchElementException: No element of the collection was transformed to a non-null value.
        at androidx.benchmark.macro.FrameStatsResult$Companion.parse(FrameStatsResult.kt:57)

com.example.macrobenchmark.startup.ColdStartupBenchmark > startupFullCompilation[MI 8 Lite - 12] FAILED 
        java.util.NoSuchElementException: No element of the collection was transformed to a non-null value.
        at androidx.benchmark.macro.FrameStatsResult$Companion.parse(FrameStatsResult.kt:57)

com.example.macrobenchmark.startup.ColdStartupBenchmark > startupPartialCompilation[MI 8 Lite - 12] FAILED 
        java.util.NoSuchElementException: No element of the collection was transformed to a non-null value.
        at androidx.benchmark.macro.FrameStatsResult$Companion.parse(FrameStatsResult.kt:57)

com.example.macrobenchmark.startup.FullyDrawnStartupBenchmark > startup[MI 8 Lite - 12] FAILED 

Tests on MI 8 Lite - 12 failed: There was 18 failure(s).
Test run failed to complete. Expected 34 tests, received 17

> Task :macrobenchmark:connectedBenchmarkAndroidTest FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':macrobenchmark:connectedBenchmarkAndroidTest'.
> There were failing tests. See the report at: file:///C:/Users/Mido/StudioProjects/performance-samples/MacrobenchmarkSample/macrobenchmark/build/reports/androidTe
sts/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 5m 30s
87 actionable tasks: 2 executed, 85 up-to-date
PS C:\Users\Mido\StudioProjects\performance-samples\MacrobenchmarkSample> 

from performance-samples.

keyboardsurfer avatar keyboardsurfer commented on August 11, 2024

Baseline Profile Collection requires a rooted device, and a rooted adb session. Use adb root

Please follow this instruction from the log and let me know how the situation improves.

from performance-samples.

MML-Pro avatar MML-Pro commented on August 11, 2024

Baseline Profile Collection requires a rooted device, and a rooted adb session. Use adb root

Please follow this instruction from the log and let me know how the situation improves.

Sorry I didn't understand your last comment, my device already rooted, what should I do before run this command ./gradlew macrobenchmark:cC ?

from performance-samples.

keyboardsurfer avatar keyboardsurfer commented on August 11, 2024

adb root , then run the benchmark.

from performance-samples.

mrzbn avatar mrzbn commented on August 11, 2024

@keyboardsurfer

my app's locale is Farsi and I encounter this exception, too.

java.util.NoSuchElementException: No element of the collection was transformed to a non-null value. at androidx.benchmark.macro.FrameStatsResult$Companion.parse(FrameStatsResult.kt:57)

I checked and realized that parse method looks for following regex in the output:

private val NAME_REGEX = Regex("(\\S+) \\(visibility=[0-9]+\\)")

and my output contains: (visibility=۰)

"۰" is 0 in Farsi. I think that's the reason parsing throws exception.

from performance-samples.

YingChen0605 avatar YingChen0605 commented on August 11, 2024

FYI When I try running benchmark in a rooted Pixel 7 pro, it takes forever to start up the test. But after I unroot the device, the test can complete successfully very quickly.

from performance-samples.

keyboardsurfer avatar keyboardsurfer commented on August 11, 2024

This has been fixed in AOSP and will be published with an upcoming release.

from performance-samples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.