Comments (7)
The problem is still here in 1.1.0
on the devices lower than API level 29 if release build of the app is used. Some mandatory traces, like startActivityAndWait
are missing from captured .trace files because release builds are not traceable.
Starting API 29 there is a new manifest flag which allows to collect traces from release builds when set on both the app and the test app.
The only way to make it work on API 28 is to use debug builds.
from performance-samples.
When relying on debug builds for benchmarking you won't be able to see real world performance of your app.
The macrobenchmark library works down to API 23. Some traces might not be available depending on the specific device you're using. Which device & OS version are you using to capture traces?
from performance-samples.
We're currently trying to resolve it in this issue.
As a workaround, could you try adding some Thread.sleep(500)
to the measureRepeated
?
from performance-samples.
Yes, i do, but it's not working.
from performance-samples.
We've done some stability improvements. Could you check with the latest version rc01
if the problem still persists?
Thanks!
from performance-samples.
When relying on debug builds for benchmarking you won't be able to see real world performance of your app. The macrobenchmark library works down to API 23. Some traces might not be available depending on the specific device you're using. Which device & OS version are you using to capture traces?
Same issue on Redmi 7A. 2GB RAM
from performance-samples.
This is unfortunately correct.
As you mentioned, you can use debug
builds, but these are not recommended for performance measuring.
Alternatively, you should be able to measure release
build on rooted device.
Here's nothing we can do better, because that's how Android system was designed.
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.