Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有什么方法可以确定应用程序中的耗电量是什么?根据我的发现,我能得到的最细粒度的是应用程序本身使用了多少电量。我想知道我可以做些什么以尽可能以最经验的方式使我的应用程序更高效,因为当有数字支持时很容易证明更改是合理的。
有什么方法可以确定应用程序中的耗电量是什么?
您可以购买 Qualcomm MDP 设备并使用 Trepn 对您的应用进行相当准确和详细的功耗分析。但是,MDP 很昂贵。
否则,您几乎无能为力,仅仅是因为当前的 Android 生产硬件无法尝试收集此级别的信息。甚至设置中的电池屏幕也大多只是一个有根据的猜测。