1 2<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 3<html><head><title>Python: module telemetry.internal.platform.power_monitor.powermetrics_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>.<a href="telemetry.internal.platform.power_monitor.html"><font color="#ffffff">power_monitor</font></a>.powermetrics_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/powermetrics_power_monitor.py">telemetry/internal/platform/power_monitor/powermetrics_power_monitor.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>Modules</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="collections.html">collections</a><br> 24<a href="telemetry.decorators.html">telemetry.decorators</a><br> 25<a href="logging.html">logging</a><br> 26</td><td width="25%" valign=top><a href="os.html">os</a><br> 27<a href="telemetry.core.os_version.html">telemetry.core.os_version</a><br> 28<a href="plistlib.html">plistlib</a><br> 29</td><td width="25%" valign=top><a href="telemetry.internal.platform.power_monitor.html">telemetry.internal.platform.power_monitor</a><br> 30<a href="shutil.html">shutil</a><br> 31<a href="tempfile.html">tempfile</a><br> 32</td><td width="25%" valign=top><a href="telemetry.core.util.html">telemetry.core.util</a><br> 33<a href="xml.html">xml</a><br> 34</td></tr></table></td></tr></table><p> 35<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 36<tr bgcolor="#ee77aa"> 37<td colspan=3 valign=bottom> <br> 38<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr> 39 40<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> 41<td width="100%"><dl> 42<dt><font face="helvetica, arial"><a href="telemetry.internal.platform.power_monitor.html#PowerMonitor">telemetry.internal.platform.power_monitor.PowerMonitor</a>(<a href="__builtin__.html#object">__builtin__.object</a>) 43</font></dt><dd> 44<dl> 45<dt><font face="helvetica, arial"><a href="telemetry.internal.platform.power_monitor.powermetrics_power_monitor.html#PowerMetricsPowerMonitor">PowerMetricsPowerMonitor</a> 46</font></dt></dl> 47</dd> 48</dl> 49 <p> 50<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 51<tr bgcolor="#ffc8d8"> 52<td colspan=3 valign=bottom> <br> 53<font color="#000000" face="helvetica, arial"><a name="PowerMetricsPowerMonitor">class <strong>PowerMetricsPowerMonitor</strong></a>(<a href="telemetry.internal.platform.power_monitor.html#PowerMonitor">telemetry.internal.platform.power_monitor.PowerMonitor</a>)</font></td></tr> 54 55<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> 56<td width="100%"><dl><dt>Method resolution order:</dt> 57<dd><a href="telemetry.internal.platform.power_monitor.powermetrics_power_monitor.html#PowerMetricsPowerMonitor">PowerMetricsPowerMonitor</a></dd> 58<dd><a href="telemetry.internal.platform.power_monitor.html#PowerMonitor">telemetry.internal.platform.power_monitor.PowerMonitor</a></dd> 59<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> 60</dl> 61<hr> 62Methods defined here:<br> 63<dl><dt><a name="PowerMetricsPowerMonitor-CanMonitorPower"><strong>CanMonitorPower</strong></a>(*args, **kwargs)</dt></dl> 64 65<dl><dt><a name="PowerMetricsPowerMonitor-StartMonitoringPower"><strong>StartMonitoringPower</strong></a>(self, browser)</dt></dl> 66 67<dl><dt><a name="PowerMetricsPowerMonitor-StopMonitoringPower"><strong>StopMonitoringPower</strong></a>(self)</dt></dl> 68 69<dl><dt><a name="PowerMetricsPowerMonitor-__init__"><strong>__init__</strong></a>(self, backend)</dt></dl> 70 71<hr> 72Static methods defined here:<br> 73<dl><dt><a name="PowerMetricsPowerMonitor-ParsePowerMetricsOutput"><strong>ParsePowerMetricsOutput</strong></a>(powermetrics_output)</dt><dd><tt>Parse output of powermetrics command line utility.<br> 74 <br> 75Returns:<br> 76 Dictionary in the format returned by <a href="#PowerMetricsPowerMonitor-StopMonitoringPower">StopMonitoringPower</a>() or None<br> 77 if |powermetrics_output| is empty - crbug.com/353250 .</tt></dd></dl> 78 79<hr> 80Data descriptors defined here:<br> 81<dl><dt><strong>binary_path</strong></dt> 82</dl> 83<hr> 84Methods inherited from <a href="telemetry.internal.platform.power_monitor.html#PowerMonitor">telemetry.internal.platform.power_monitor.PowerMonitor</a>:<br> 85<dl><dt><a name="PowerMetricsPowerMonitor-CanMeasurePerApplicationPower"><strong>CanMeasurePerApplicationPower</strong></a>(self)</dt><dd><tt>Returns True if the power monitor can measure power for the target<br> 86application in isolation. False if power measurement is for full system<br> 87energy consumption.</tt></dd></dl> 88 89<hr> 90Data descriptors inherited from <a href="telemetry.internal.platform.power_monitor.html#PowerMonitor">telemetry.internal.platform.power_monitor.PowerMonitor</a>:<br> 91<dl><dt><strong>__dict__</strong></dt> 92<dd><tt>dictionary for instance variables (if defined)</tt></dd> 93</dl> 94<dl><dt><strong>__weakref__</strong></dt> 95<dd><tt>list of weak references to the object (if defined)</tt></dd> 96</dl> 97</td></tr></table></td></tr></table> 98</body></html>