Coder Social home page Coder Social logo

nbxxf / performance-samples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from android/performance-samples

0.0 0.0 0.0 4.9 MB

Samples to show APIs and best practices in Performance on Android

Home Page: https://d.android.com/topic/performance/overview

License: Apache License 2.0

Shell 0.32% Kotlin 93.02% TypeScript 6.66%

performance-samples's Introduction

Android Performance

A collection of samples using the performance libraries.

You can learn more about Android Performance at https://d.android.com/performance.

This sample shows how to use the Macrobenchmark library for testing application startup and runtime performance cases, such as scrolling a RecyclerView or LazyColumn to measure jank.

Baseline Profiles can be generated with the Macrobenchmark library. This sample contains code to generate a baseline profile.

The sample also includes a GitHub workflow to run Macrobenchmarks on Firebase Test Lab. For more information refer to the README.md.

The Macrobenchmark sample also demonstrates using Jetpack Compose with Macrobenchmark.

This sample shows how to use the Benchmark library to benchmark code and UI from library modules.

Important Notes

  • Make sure your device's screen is on before running benchmarks

This sample shows how to set up and use the JankStats library to detect janky frames.

Reporting Issues

You can report an Issue with a sample using this repository. If you find an issue with a specific library, report it using the corresponding issue tracker link available in the sample README file.

Additional Resources

PagingWithNetworkSample

  • Example of benchmarking an androidx.paging backed RecyclerView

WorkManagerSample

  • Example of benchmarking asynchronously scheduled background work

performance-samples's People

Contributors

afzalive avatar alabiaga avatar allisonmt avatar android-devrel-github-bot avatar bentrengrove avatar chethaase avatar chriscraik avatar codingjeremy avatar darian-catalin-cucer avatar dependabot[bot] avatar dlam avatar hearsilent avatar keyboardsurfer avatar kikoso avatar kokoro-team avatar mlykotom avatar mohand1993 avatar nyctonio avatar pyricau avatar ricardojiang avatar subhrajyotisen avatar takahirom avatar theapache64 avatar tikurahul avatar vjgarciag96 avatar vkotovv avatar yenerm avatar yschimke avatar zakharovsergey1000 avatar

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.