判断被apk唤醒debug

最近一直在研究功耗的具体debug方法,和高通的电池曲线算法和电池的电量计转化的方法   


在底电的功耗里面分析:
  拿测了一个的bugreport分析:
在bugrepot里面搜索rtc_wakeup  
  如下:
 Batch{fd73fec num=1 start=46020255 end=46020255 flgs=0x9}:
    RTC #0: Alarm{a84fb5 type 1 when 1482890517827 com.tct.diagnostics}
      tag=*alarm*:com.tct.action.REFRESH_TIMER_TASK_ACTION
      type=1 whenElapsed=+49m29s25ms when=2016-12-28 10:01:57
      window=0 repeatInterval=0 count=0 flags=0x9
      operation=PendingIntent{af1464a: PendingIntentRecord{ab279e0 com.tct.diagnostics broadcastIntent}}
可以看出系统的唤醒源 被alarm type 1的apk唤醒,唤醒源是com.tct.diagnostics,它会有具体的对应时间,
在power monitor上面有电流图可以对应其时间进行相应的判断。
这些还可以在kernel_log里面看到,

posted @ 2017-02-08 15:57  小k的布熊  阅读(177)  评论(0编辑  收藏  举报