修改Android Studio 的 Logcat 缓冲区大小操作
找到 Android Studio的安装目录\bin\idea.properties 文件
将文件中的idea.cycle.buffer.size=1024 改成 例如: idea.cycle.buffer.size=102400
另一个设置方式是:
补充知识:logcat 设置缓存区 设置buff
logcat 的buff 有2种分配方式,一种是在kernel的,一种是logd, MM用的是在logd的这种的
system/core/liblog/Android.mk ifneq ($(TARGET_USES_LOGD),false) liblog_sources := logd_write.c log_event_write.c else liblog_sources := logd_write_kern.c endif
修改logcat的buff有可以从开发者选项中设置,
也可以从logcat -G 10M 设置
root@xx:/ # logcat -g main: ring buffer is 4Mb (839Kb consumed), max entry is 5120b, max payload is 4076b system: ring buffer is 4Mb (2Mb consumed), max entry is 5120b, max payload is 4076b crash: ring buffer is 4Mb (0b consumed), max entry is 5120b, max payload is 4076b root@xx:/ # logcat -G 11M root@xx:/ # logcat -g main: ring buffer is 11Mb (854Kb consumed), max entry is 5120b, max payload is 4076b system: ring buffer is 11Mb (2Mb consumed), max entry is 5120b, max payload is 4076b crash: ring buffer is 11Mb (0b consumed), max entry is 5120b, max payload is 4076b root@xx:/ #
以上这篇修改Android Studio 的 Logcat 缓冲区大小操作就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持脚本之家。
相关文章
Android自定义Chronometer实现短信验证码秒表倒计时功能
这篇文章主要介绍了Android自定义ChronometerView实现类似秒表倒计时,短信验证码倒计时功能,具有一定的参考价值,感兴趣的小伙伴们可以参考一下2016-11-11Android ListView实现仿iPhone实现左滑删除按钮的简单实例
下面小编就为大家带来一篇Android ListView实现仿iPhone实现左滑删除按钮的简单实例。小编觉得挺不错的,现在就分享给大家,也给大家做个参考。一起跟随小编过来看看吧2016-08-08Android通过Java sdk的方式接入OpenCv的方法
这篇文章主要介绍了Android通过Java sdk的方式接入OpenCv的方法,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧2020-04-04
最新评论