title: Detect Wake Locks programmatically
body: <p>We develop a <code>SDK</code> that is heavily dependent on the <code>location APIs</code> of Android OS and Google Play Services. </p>
  
  <p>We have detected that there are too many wake ups causing Android Vitals to launch alerts in our clients' developer console. In order to solve or mitigate the issue, I would like to measure the amount of <code>wake locks</code> that the application holds over time, so I can see if my code changes are effective or not.</p>
  
  <p>I've been using an app called <code>"Wakelock Detector"</code> which is great, however I need more information regarding the wake locks themselves, so I would like to code a tool to debug the issue myself. </p>
  
  <p>However I've been unable to find documentation regarding how to read this information from Java (only <code>adb</code> commands). It is possible to do so? How the app <code>"Wakelock detector"</code> works?</p>