Code Monkey home page Code Monkey logo

bitmapcanary's Introduction

BitmapCanary

Detect Android bitmap size when app runing,检查安卓运行时使用的bitmap大小,检查出过大的位图并展示

   介绍:    Android工程中会使用大量的图片,但是如果图片放置的drawable目录位置不正确,可能会导致图片占用的内存过大,可能导致cpu使用更多时间分配更多内存,可能导致内存溢出    现在可以使用BitmapCanary来方便开发者检查工程中过大的图片,可视化展示,一句代码即可接入该功能    

使用方法:

下载并依赖androidbitmapcanary

ActivityDrawableWatcher.watchDrawable(this);//这样就ok啦

   app界面会有蒙层来表示该图片的位图已经超过了视图的1.5倍(长宽)大小,并有白色数字标明倍数    

image

bitmapcanary's People

Contributors

hss01248 avatar smallnew avatar

Watchers

James Cloos 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.