log messages processIncoming, handlePacket, sendBufferedRequest is repeated a LOT - android

对着背影说爱祢 提交于 2019-12-01 03:59:10
Adrian C.

As you suspected, all the log messages have nothing to do with GCM, it is the debugger the one who generates all this messages, to be more precise, the JDWP debugger:

The Dalvik VM (Virtual Machine) supports the JDWP protocol to allow debuggers to attach to a VM. Each application runs in a VM and exposes a unique port that you can attach a debugger to via DDMS. If you want to debug multiple applications, attaching to each port might become tedious, so DDMS provides a port forwarding feature that can forward a specific VM's debugging port to port 8700. You can switch freely from application to application by highlighting it in the Devices tab of DDMS. DDMS forwards the appropriate port to port 8700. Most modern Java IDEs include a JDWP debugger, or you can use a command line debugger such as jdb.

You don't have to worry about all this messages affecting you battery, the messages will be generated only if your device will have the USB debugging option enabled, but with almost no cost for you battery (see this thread for more details)

Disable ADB Integration by unchecking in Tools -> Android -> Enable ADB Integration. Keep in mind that this will get rid of JDWP messages, but also will prevent you from doing CPU, GPU, Memory, Network monitoring.

Other option is to fold the messages from the logcat (see this answer). The disadvantage is that all folded lines will stack on the same line, no line feed being added.

Also you have the possibility to filter messages based on their tags and log level (see this thread)

Hope it helps.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!