简体   繁体   中英

Explicit GC while collecting android device usage data using adb commands

When I use adb commands to collect memory, cpu, network data from the device i get frequent Explicit GC operations.

I/art(29126): Explicit concurrent mark sweep GC freed 3(96B) AllocSpace objects, 0(0B) LOS objects, 31% free, 17MB/25MB, paused 559us total 19.188ms

How can i avoid it? It interrupts the data collection and app's operations. why does it called on behalf of the app (in the logs). I am calling the commands through adb?

它不是代表应用程序调用的-如果是这样,它的日志标签将与应用程序的相同,而不是aartdalvikvm :)也许由于您明确地强制执行GC周期,因此该应用程序只是释放了部分资源。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM