How to change size of logcat buffer in Android?

前端 未结 8 434
隐瞒了意图╮
隐瞒了意图╮ 2020-12-28 13:47

I noticed that the size of the logcat buffer varies on different devices. Assuming I have root permissions on my device, is there a way to change the buffer size of the main

8条回答
  •  孤城傲影
    2020-12-28 14:10

    See current buffer size

    adb logcat -g
    

    Set all type buffer size (main, system, crash)

    adb logcat -G 16M # 16M can be replace by (128K ~ 16M)
    

    Set specific type buffer size (main, system, crash)

    adb logcat -b system -G 8M # system can be replaced with 'main' or 'crash'
    

提交回复
热议问题