1 2 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 3 <html><head><title>Python: package telemetry.internal.platform.power_monitor</title> 4 <meta charset="utf-8"> 5 </head><body bgcolor="#f0f0f8"> 6 7 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> 8 <tr bgcolor="#7799ee"> 9 <td valign=bottom> <br> 10 <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="telemetry.html"><font color="#ffffff">telemetry</font></a>.<a href="telemetry.internal.html"><font color="#ffffff">internal</font></a>.<a href="telemetry.internal.platform.html"><font color="#ffffff">platform</font></a>.power_monitor</strong></big></big></font></td 11 ><td align=right valign=bottom 12 ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="../telemetry/internal/platform/power_monitor/__init__.py">telemetry/internal/platform/power_monitor/__init__.py</a></font></td></tr></table> 13 <p><tt># Copyright 2014 The Chromium Authors. All rights reserved.<br> 14 # Use of this source code is governed by a BSD-style license that can be<br> 15 # found in the LICENSE file.</tt></p> 16 <p> 17 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 18 <tr bgcolor="#aa55cc"> 19 <td colspan=3 valign=bottom> <br> 20 <font color="#ffffff" face="helvetica, arial"><big><strong>Package Contents</strong></big></font></td></tr> 21 22 <tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td> 23 <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="telemetry.internal.platform.power_monitor.android_dumpsys_power_monitor.html">android_dumpsys_power_monitor</a><br> 24 <a href="telemetry.internal.platform.power_monitor.android_dumpsys_power_monitor_unittest.html">android_dumpsys_power_monitor_unittest</a><br> 25 <a href="telemetry.internal.platform.power_monitor.android_fuelgauge_power_monitor.html">android_fuelgauge_power_monitor</a><br> 26 <a href="telemetry.internal.platform.power_monitor.android_fuelgauge_power_monitor_unittest.html">android_fuelgauge_power_monitor_unittest</a><br> 27 <a href="telemetry.internal.platform.power_monitor.android_temperature_monitor.html">android_temperature_monitor</a><br> 28 </td><td width="25%" valign=top><a href="telemetry.internal.platform.power_monitor.android_temperature_monitor_unittest.html">android_temperature_monitor_unittest</a><br> 29 <a href="telemetry.internal.platform.power_monitor.cros_power_monitor.html">cros_power_monitor</a><br> 30 <a href="telemetry.internal.platform.power_monitor.cros_power_monitor_unittest.html">cros_power_monitor_unittest</a><br> 31 <a href="telemetry.internal.platform.power_monitor.monsoon_power_monitor.html">monsoon_power_monitor</a><br> 32 <a href="telemetry.internal.platform.power_monitor.monsoon_power_monitor_unittest.html">monsoon_power_monitor_unittest</a><br> 33 </td><td width="25%" valign=top><a href="telemetry.internal.platform.power_monitor.msr_power_monitor.html">msr_power_monitor</a><br> 34 <a href="telemetry.internal.platform.power_monitor.msr_power_monitor_unittest.html">msr_power_monitor_unittest</a><br> 35 <a href="telemetry.internal.platform.power_monitor.power_monitor_controller.html">power_monitor_controller</a><br> 36 <a href="telemetry.internal.platform.power_monitor.power_monitor_controller_unittest.html">power_monitor_controller_unittest</a><br> 37 <a href="telemetry.internal.platform.power_monitor.powermetrics_power_monitor.html">powermetrics_power_monitor</a><br> 38 </td><td width="25%" valign=top><a href="telemetry.internal.platform.power_monitor.powermetrics_power_monitor_unittest.html">powermetrics_power_monitor_unittest</a><br> 39 <a href="telemetry.internal.platform.power_monitor.sysfs_power_monitor.html">sysfs_power_monitor</a><br> 40 <a href="telemetry.internal.platform.power_monitor.sysfs_power_monitor_unittest.html">sysfs_power_monitor_unittest</a><br> 41 </td></tr></table></td></tr></table><p> 42 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 43 <tr bgcolor="#ee77aa"> 44 <td colspan=3 valign=bottom> <br> 45 <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr> 46 47 <tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> 48 <td width="100%"><dl> 49 <dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.object</a> 50 </font></dt><dd> 51 <dl> 52 <dt><font face="helvetica, arial"><a href="telemetry.internal.platform.power_monitor.html#PowerMonitor">PowerMonitor</a> 53 </font></dt></dl> 54 </dd> 55 </dl> 56 <p> 57 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 58 <tr bgcolor="#ffc8d8"> 59 <td colspan=3 valign=bottom> <br> 60 <font color="#000000" face="helvetica, arial"><a name="PowerMonitor">class <strong>PowerMonitor</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr> 61 62 <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> 63 <td colspan=2><tt>A power profiler.<br> 64 <br> 65 Provides an interface to register power consumption during a test.<br> </tt></td></tr> 66 <tr><td> </td> 67 <td width="100%">Methods defined here:<br> 68 <dl><dt><a name="PowerMonitor-CanMeasurePerApplicationPower"><strong>CanMeasurePerApplicationPower</strong></a>(self)</dt><dd><tt>Returns True if the power monitor can measure power for the target<br> 69 application in isolation. False if power measurement is for full system<br> 70 energy consumption.</tt></dd></dl> 71 72 <dl><dt><a name="PowerMonitor-CanMonitorPower"><strong>CanMonitorPower</strong></a>(self)</dt><dd><tt>Returns True iff power can be monitored asynchronously via<br> 73 <a href="#PowerMonitor-StartMonitoringPower">StartMonitoringPower</a>() and <a href="#PowerMonitor-StopMonitoringPower">StopMonitoringPower</a>().</tt></dd></dl> 74 75 <dl><dt><a name="PowerMonitor-StartMonitoringPower"><strong>StartMonitoringPower</strong></a>(self, browser)</dt><dd><tt>Starts monitoring power utilization statistics.<br> 76 <br> 77 See Platform#StartMonitoringPower for the arguments format.</tt></dd></dl> 78 79 <dl><dt><a name="PowerMonitor-StopMonitoringPower"><strong>StopMonitoringPower</strong></a>(self)</dt><dd><tt>Stops monitoring power utilization and returns collects stats<br> 80 <br> 81 See Platform#StopMonitoringPower for the return format.</tt></dd></dl> 82 83 <hr> 84 Data descriptors defined here:<br> 85 <dl><dt><strong>__dict__</strong></dt> 86 <dd><tt>dictionary for instance variables (if defined)</tt></dd> 87 </dl> 88 <dl><dt><strong>__weakref__</strong></dt> 89 <dd><tt>list of weak references to the object (if defined)</tt></dd> 90 </dl> 91 </td></tr></table></td></tr></table> 92 </body></html>