AndroidBitmapMonitor icon indicating copy to clipboard operation
AndroidBitmapMonitor copied to clipboard

A bitmap memory usage monitor for Android. Android 图片内存分析工具,可以帮助发现应用的图片使用是否合理。

Results 13 AndroidBitmapMonitor issues
Sort by recently updated
recently updated
newest added

版本1.1.0 手机 pixel 3XL 已开启悬浮窗权限 Caused by android.app.BackgroundServiceStartNotAllowedException Not allowed to start service Intent { flg=0x10000000 cmp=com.hk.azal.live/top.shixinzhang.bitmapmonitor.ui.FloatWindowService }: app is in background uid UidRecord{8e253cc u0a217 TRNB idle change:uncached procs:0 seq(0,0,0)}

_ZN7android6bitmap12createBitmapEP7_JNIEnvPNS_6BitmapEiP11_jbyteArrayP8_jobjecti 你好请教个问题 这个函数符号你是怎么获取的

signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr -------- Abort message: 'art/runtime/check_jni.cc:65] JNI DETECTED ERROR IN APPLICATION: JNI FindClass called with pending exception 'java.lang.NoSuchFieldError' thrown in java.lang.String java.lang.Runtime.nativeLoad(java.lang.String, java.lang.ClassLoader, java.lang.String):-2'

大佬,bitmap_monitor.cpp 里的 LOGI 是不是可以支持下设置是否打印?量有点太大了,而且 level 还是 info。

` implementation "io.github.shixinzhang:android-bitmap-monitor:1.1.0" ` ``` val ctx = ContextUtils.getApplication() val cacheFile = File(ctx.cacheDir, "bitmap_monitor") if (!cacheFile.exists()) { cacheFile.mkdirs() } val config = BitmapMonitor.Config.Builder() // 检查图片是否被回收的间隔,单位:秒 (建议不要太频繁,默认 5秒) .checkRecycleInterval(10L) // 获取堆栈的阈值,当一张图片占据的内存超过这个数值后就会去抓栈...

接入SDK之后,点击进入图片捕获列表,点击其中的图片进行查看详情。绝大部分图片都是黑的,没有显示出来。 环境: android 10,pixel3. implementation "com.github.bumptech.glide:annotations:4.12.0" ![screen_cap_20230222_155504](https://user-images.githubusercontent.com/18607031/220557950-5e70f19a-256b-4d98-b39f-00310080e9ec.png)

oppo findx3 android13手机上看不到预览图

打开MainActivity,有15张图片。回退到上一个页面,bitmap数量和大小,没有任何减少

(1)使用auto&明确指出要使用左值引用,减少不必要的拷贝构造。 (2)只用erase代替copy_records,减少不必要的构造。