Comments (11)
Thanks for the context, @mrzbn. I have filed a bug to keep track of this problem.
from performance-samples.
Thanks for reporting this problem.
Is this an issue with the currently existing sample from main
?
from performance-samples.
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.
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.
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.
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.
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.
adb root
, then run the benchmark.
from performance-samples.
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.
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.
This has been fixed in AOSP and will be published with an upcoming release.
from performance-samples.
Related Issues (20)
- Samples doesn't work for dynamic feature modules HOT 4
- Does Baseline Profile just helps with very First launch HOT 1
- [JankStat] [Feature] Provide expectedDuration of Frame in FramaData HOT 1
- java.io.FileNotFoundException - perfetto-trace HOT 2
- Fix GitHub build for macrobenchmark sample
- A question about just one baseline-prof.txt(PR : #258) HOT 4
- Question about the difference in file size inside the aab depending on the location of the generated baseline-prof.txt file
- Fix the GitHub Actions build by not executing benchmarks on an emulator
- Failing to run assembleDebugAndroidTest in MacrobenchmarkSample app
- Why macrobenchmark module's build.gradle has "isDebuggable = true" HOT 1
- Failing tests in the Macrobenchmark sample
- Where and with what name to store the multiple profile HOT 7
- Can only fetch a single baseline profile from Firebase Test Lab
- Add sample for Custom (Async) Trace and TraceMetric
- java.io.FileNotFoundException: http://localhost:9001/status - PerfettoHttpServer HOT 1
- Does Baseline profile generation requires nonMinified Release?
- All Macrobenchmarking tests fail on both device & emulators & gradle/dependency issues HOT 1
- Automation feature support
- java.lang.IllegalStateException: Failed to compile (out=Error: Failed to cpmpile ! HOT 3
- Question about removing benchmark build type HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from performance-samples.