Android的:如何改变logcat的缓冲区的大小? [英] Android: How to change size of logcat buffer?

查看:310
本文介绍了Android的:如何改变logcat的缓冲区的大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到的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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆