Giter Club home page Giter Club logo

Comments (7)

zeac avatar zeac commented on August 11, 2024 4

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.

keyboardsurfer avatar keyboardsurfer commented on August 11, 2024 1

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.

mlykotom avatar mlykotom commented on August 11, 2024

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.

beyondckw avatar beyondckw commented on August 11, 2024

Yes, i do, but it's not working.

from performance-samples.

mlykotom avatar mlykotom commented on August 11, 2024

We've done some stability improvements. Could you check with the latest version rc01 if the problem still persists?
Thanks!

from performance-samples.

YashNagayach95 avatar YashNagayach95 commented on August 11, 2024

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.

mlykotom avatar mlykotom commented on August 11, 2024

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)

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.