Android的:如何改变logcat的缓冲区的大小? [英] Android: How to change size of logcat buffer?
问题描述
我注意到的logcat缓冲区的大小在不同的设备而异。假设我有我的设备上的root权限,有没有一种方法来改变主缓冲区的缓冲区的大小在运行时?如果没有,那么假设我可以重建Android的形象,我怎么在编译时改变它呢?我期待扩大其用于诊断目的。
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 buffer at runtime? If not, then assuming I can rebuild the Android image, how do I change it at compile time? I'm looking to enlarge it for diagnostic purposes.
推荐答案
据新闻组的 Android开发的的 logcat的缓冲区大小 的:
According to the newsgroup Android Developers, logcat buffer size:
在设备上的日志缓冲区是64 KB。时间戳,进程ID,
和日志级别存储在一个紧凑的格式,所以你实际上可能得到
超过64 KB格式化数据超出 logcat的-d -v<模式>
The log buffers on the device are 64 KB. The timestamp, process ID, and log level are stored in a compact format, so you may actually get more than 64 KB of formatted data out of
logcat -d -v <mode>
.
这篇关于Android的:如何改变logcat的缓冲区的大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!