找到 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 缓冲区大小操作就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持免费资源网。