使用Battery Historian(android 5.0)

來源:互聯網
上載者:User

標籤:

http://hukai.me/android-performance-battery/可以先參考這篇文章

1$ adb shell dumpsys batterystats > xxx.txt //得到整個裝置的電量消耗資訊 $ adb shell dumpsys batterystats > com.package.name > xxx.txt //得到指定app相關的電量消耗資訊

2安裝python 設定環境變數

3python historian.py xxx.txt > xxx.html

得到產生的xxx.html

 

開啟後成這個樣子

Visualizer disabled. If you see this message, download the HTML then open it

這句話導致了圖表無法出現

 

用記事本開啟源檔案

前幾行發現

<script type="text/javascript" src="https://www.google.com/jsapi?autoload={‘modules‘:[{‘name‘:‘visualization‘,       ‘version‘:‘1‘,‘packages‘:[‘timeline‘]}]}"></script><script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>

才知道這個路徑是被國內牆的 所以一直載入中 然後就無法顯示了

然後。。。當然是FQ了 推薦一個vpn代理 很快的http://honx.in/i/U0etuoKo1w28DR7D#two  名字叫做紅杏 聽名字你就懂得。。。

然後開啟html檔案就可以了

 

 

一開始的圖片應該是這樣的

使用Battery Historian(android 5.0)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.