修改Android Studio 的 Logcat 缓冲区大小操作
找到 Android Studio的安装目录binidea.properties 文件
将文件中的idea.cycle.buffer.size=1024 改成 例如: idea.cycle.buffer.size=102400
另一个设置方式是:
补充知识:logcat 设置缓存区 设置buff
logcat 的buff 有2种分配方式,一种是在kernel的,一种是logd, MM用的是在logd的这种的
system/core/liblog/Android.mkifneq ($(TARGET_USES_LOGD),false)liblog_sources := logd_write.c log_event_write.celseliblog_sources := logd_write_kern.cendif
修改logcat的buff有可以从开发者选项中设置,
也可以从logcat -G 10M 设置
root@xx:/ # logcat -gmain: ring buffer is 4Mb (839Kb consumed), max entry is 5120b, max payload is 4076bsystem: ring buffer is 4Mb (2Mb consumed), max entry is 5120b, max payload is 4076bcrash: ring buffer is 4Mb (0b consumed), max entry is 5120b, max payload is 4076broot@xx:/ # logcat -G 11Mroot@xx:/ # logcat -g main: ring buffer is 11Mb (854Kb consumed), max entry is 5120b, max payload is 4076bsystem: ring buffer is 11Mb (2Mb consumed), max entry is 5120b, max payload is 4076bcrash: ring buffer is 11Mb (0b consumed), max entry is 5120b, max payload is 4076broot@xx:/ #
以上这篇修改Android Studio 的 Logcat 缓冲区大小操作就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持好吧啦网。
相关文章:
1. IntelliJ IDEA设置默认浏览器的方法2. IntelliJ IDEA设置背景图片的方法步骤3. Spring security 自定义过滤器实现Json参数传递并兼容表单参数(实例代码)4. docker /var/lib/docker/aufs/mnt 目录清理方法5. JAMon(Java Application Monitor)備忘記6. Python TestSuite生成测试报告过程解析7. Python 的 __str__ 和 __repr__ 方法对比8. 学python最电脑配置有要求么9. Python Scrapy多页数据爬取实现过程解析10. Python OpenCV去除字母后面的杂线操作
