lowmemorykiller 的日志查询

1 lowmemorykiller 的日志查询

系统卡顿优化往往会触发lowmemorykiller,查看应用是否被lowmemorykiller的日志,一般需要查询对应包名对应的pid

例如 com.su.download pid 是16826,目前pid一般可以在event日志查看到

1.1 kernel_log_6__2018_0614_191444

13,845: <7>[  404.507273] -(6)[97:kswapd0][signal][97:kswapd0]send death sig 9 to[16826:redstone.ota.ui:R] 
13,846: <6>[  404.507319]  (6)[97:kswapd0]lowmemorykiller: Killing 'redstone.ota.ui' (16826), adj 904, state(0)

1.2 main_log_1__2018_0614_191444

76,496: 06-14 18:56:32.305074 1005 1023 I zygote64: Successfully killed process cgroup uid 1000 pid 16826 in 0ms

1.3 events_log_3__2018_0614_191444

4,202: 06-14 18:56:32.303401 1005 1404 I am_proc_died: [0,16826,com.su.download,904,11]

1.4 sys_log_4__2018_0614_191444

06-14 18:56:32.293532  1005  6176 I WindowManager: WIN DEATH: Window{e5030bc u0 com.su.download/com.su.download.activity.RsMainActivity}
06-14 18:56:32.303128  1005  1404 I ActivityManager: Process com.su.download (pid 16826) has died: cch+4SVC 
06-14 18:56:32.303719  1005  1404 W ActivityManager: Scheduling restart of crashed service com.su.download/com.globe.android.stats.agent.AgentService in 16262ms
06-14 18:56:32.303882  1005  1404 W ActivityManager: Scheduling restart of crashed service com.su.download/com.android.meteor.agent.library.AgentService in 26262ms

你可能感兴趣的:(功耗异常分析)