Android 中log 找到关键log

SYS_ANDROID_EVENT_LOG1. aee_exp文件夹中有 db.fatal.00.SWT.

2. 准备工作: gat打开db.fatal.00.SWT.dbg文件,即会生成.DEC文件

            image

2. ZZ_INTERNAL 文件内容

SWT,1039,-1361051648,99,/data/core/,0,system_server_watchdog,system_server,Sat Jan 21 02:00:05 GST 2017,1,1818135

确定是watchdog引起的重启。 时间点02:00(!!!重要)

3. 分析  .DEC文件

  (1) _exp_main.txt  文件

Exception Class: SWT
Exception Type: system_server_watchdog

Current Executing Process: 
system_server


Backtrace: 
Process: system_server
Subject: Blocked in monitor com.android.server.wm.WindowManagerService on foreground thread (android.fg), Blocked in handler on display thread (android.display)

[!!!重要 android.fg]

(2)SYS_ANDROID_EVENT_LOG 文件

search watchdog /android.fg

01-21 02:00:02.058  1039  1693 I watchdog: Blocked in monitor com.android.server.wm.WindowManagerService on foreground thread (android.fg), Blocked in handler on display thread (android.display)

得到线程1039

(2) SWT_JBT_TRACES 文件

seacrh “d 1039” + 刚刚得到的time。就能找到关键log

posted @ 2017-05-16 15:50  蒋励  阅读(985)  评论(0编辑  收藏  举报