Monitor apps power usage

前端 未结 1 1983
执念已碎
执念已碎 2021-02-06 07:38

Is there a way to programmatically access the settings->about phone->battery usage stuff? We\'d like to monitor how much power our app is using.

1条回答
  •  感情败类
    2021-02-06 08:10

    Is there a way to programmatically access the settings->about phone->battery usage stuff?

    Alas, no.

    We'd like to monitor how much power our app is using.

    The excellent-but-flawed answer is the Qualcomm MDP with the Trepn power profiler. Alas, this is expensive and has a wholly inappropriate set of terms and conditions, IMHO.

    There is also http://powertutor.org/ and https://github.com/dvgrhl/BatteryCalibrator, though neither are as sophisticated as Trepn.

    0 讨论(0)
提交回复
热议问题