歡迎您光臨本站 註冊首頁

修改Android Studio 的 Logcat 緩衝區大小操作

←手機掃碼閱讀     qp18502452 @ 2020-05-05 , reply:0

找到 Android Studio的安裝目錄inidea.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 設置
[email protected]:/ # 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 

[email protected]:/ # logcat -G 11M 

[email protected]:/ # 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 

[email protected]:/ #


[qp18502452 ] 修改Android Studio 的 Logcat 緩衝區大小操作已經有265次圍觀

http://coctec.com/docs/android/show-post-232971.html