<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Profiler on Terminal</title><link>https://muisti.atk-neuvos.fi/tags/profiler/</link><description>Recent content in Profiler on Terminal</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sun, 20 Jul 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://muisti.atk-neuvos.fi/tags/profiler/index.xml" rel="self" type="application/rss+xml"/><item><title>Profiling android battery usage</title><link>https://muisti.atk-neuvos.fi/posts/profiler/</link><pubDate>Sun, 20 Jul 2025 00:00:00 +0000</pubDate><guid>https://muisti.atk-neuvos.fi/posts/profiler/</guid><description>&lt;p&gt;ADB shell access is needed so enable developer mode and allow ADB in developer settings.
ADB over tcp can be useful, but USB3 is much faster.&lt;/p&gt;
&lt;h1 id="initiate-logging"&gt;Initiate logging&lt;/h1&gt;
&lt;p&gt;Lets start measuring and logging, preferably with almost empty battery.&lt;/p&gt;
&lt;p&gt;Connect phone to computer with USB and reset battery stats.&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;adb shell dumpsys batterystats --reset
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Charge the phone to 100%. Then use the phone normally until something interesting happens, like severe battery drain.&lt;/p&gt;</description></item></channel></rss>