1 2<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 3<html><head><title>Python: module telemetry.internal.platform.power_monitor.msr_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>.msr_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/msr_power_monitor.py">telemetry/internal/platform/power_monitor/msr_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="telemetry.decorators.html">telemetry.decorators</a><br> 24<a href="logging.html">logging</a><br> 25</td><td width="25%" valign=top><a href="platform.html">platform</a><br> 26<a href="telemetry.internal.platform.power_monitor.html">telemetry.internal.platform.power_monitor</a><br> 27</td><td width="25%" valign=top><a href="re.html">re</a><br> 28</td><td width="25%" valign=top></td></tr></table></td></tr></table><p> 29<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 30<tr bgcolor="#ee77aa"> 31<td colspan=3 valign=bottom> <br> 32<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr> 33 34<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> 35<td width="100%"><dl> 36<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>) 37</font></dt><dd> 38<dl> 39<dt><font face="helvetica, arial"><a href="telemetry.internal.platform.power_monitor.msr_power_monitor.html#MsrPowerMonitor">MsrPowerMonitor</a> 40</font></dt><dd> 41<dl> 42<dt><font face="helvetica, arial"><a href="telemetry.internal.platform.power_monitor.msr_power_monitor.html#MsrPowerMonitorLinux">MsrPowerMonitorLinux</a> 43</font></dt><dt><font face="helvetica, arial"><a href="telemetry.internal.platform.power_monitor.msr_power_monitor.html#MsrPowerMonitorWin">MsrPowerMonitorWin</a> 44</font></dt></dl> 45</dd> 46</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="MsrPowerMonitor">class <strong>MsrPowerMonitor</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.msr_power_monitor.html#MsrPowerMonitor">MsrPowerMonitor</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="MsrPowerMonitor-CanMonitorPower"><strong>CanMonitorPower</strong></a>(self)</dt></dl> 64 65<dl><dt><a name="MsrPowerMonitor-StartMonitoringPower"><strong>StartMonitoringPower</strong></a>(self, browser)</dt></dl> 66 67<dl><dt><a name="MsrPowerMonitor-StopMonitoringPower"><strong>StopMonitoringPower</strong></a>(self)</dt></dl> 68 69<dl><dt><a name="MsrPowerMonitor-__init__"><strong>__init__</strong></a>(self, backend)</dt></dl> 70 71<hr> 72Methods inherited from <a href="telemetry.internal.platform.power_monitor.html#PowerMonitor">telemetry.internal.platform.power_monitor.PowerMonitor</a>:<br> 73<dl><dt><a name="MsrPowerMonitor-CanMeasurePerApplicationPower"><strong>CanMeasurePerApplicationPower</strong></a>(self)</dt><dd><tt>Returns True if the power monitor can measure power for the target<br> 74application in isolation. False if power measurement is for full system<br> 75energy consumption.</tt></dd></dl> 76 77<hr> 78Data descriptors inherited from <a href="telemetry.internal.platform.power_monitor.html#PowerMonitor">telemetry.internal.platform.power_monitor.PowerMonitor</a>:<br> 79<dl><dt><strong>__dict__</strong></dt> 80<dd><tt>dictionary for instance variables (if defined)</tt></dd> 81</dl> 82<dl><dt><strong>__weakref__</strong></dt> 83<dd><tt>list of weak references to the object (if defined)</tt></dd> 84</dl> 85</td></tr></table> <p> 86<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 87<tr bgcolor="#ffc8d8"> 88<td colspan=3 valign=bottom> <br> 89<font color="#000000" face="helvetica, arial"><a name="MsrPowerMonitorLinux">class <strong>MsrPowerMonitorLinux</strong></a>(<a href="telemetry.internal.platform.power_monitor.msr_power_monitor.html#MsrPowerMonitor">MsrPowerMonitor</a>)</font></td></tr> 90 91<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> 92<td width="100%"><dl><dt>Method resolution order:</dt> 93<dd><a href="telemetry.internal.platform.power_monitor.msr_power_monitor.html#MsrPowerMonitorLinux">MsrPowerMonitorLinux</a></dd> 94<dd><a href="telemetry.internal.platform.power_monitor.msr_power_monitor.html#MsrPowerMonitor">MsrPowerMonitor</a></dd> 95<dd><a href="telemetry.internal.platform.power_monitor.html#PowerMonitor">telemetry.internal.platform.power_monitor.PowerMonitor</a></dd> 96<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> 97</dl> 98<hr> 99Methods defined here:<br> 100<dl><dt><a name="MsrPowerMonitorLinux-CanMonitorPower"><strong>CanMonitorPower</strong></a>(self)</dt></dl> 101 102<hr> 103Methods inherited from <a href="telemetry.internal.platform.power_monitor.msr_power_monitor.html#MsrPowerMonitor">MsrPowerMonitor</a>:<br> 104<dl><dt><a name="MsrPowerMonitorLinux-StartMonitoringPower"><strong>StartMonitoringPower</strong></a>(self, browser)</dt></dl> 105 106<dl><dt><a name="MsrPowerMonitorLinux-StopMonitoringPower"><strong>StopMonitoringPower</strong></a>(self)</dt></dl> 107 108<dl><dt><a name="MsrPowerMonitorLinux-__init__"><strong>__init__</strong></a>(self, backend)</dt></dl> 109 110<hr> 111Methods inherited from <a href="telemetry.internal.platform.power_monitor.html#PowerMonitor">telemetry.internal.platform.power_monitor.PowerMonitor</a>:<br> 112<dl><dt><a name="MsrPowerMonitorLinux-CanMeasurePerApplicationPower"><strong>CanMeasurePerApplicationPower</strong></a>(self)</dt><dd><tt>Returns True if the power monitor can measure power for the target<br> 113application in isolation. False if power measurement is for full system<br> 114energy consumption.</tt></dd></dl> 115 116<hr> 117Data descriptors inherited from <a href="telemetry.internal.platform.power_monitor.html#PowerMonitor">telemetry.internal.platform.power_monitor.PowerMonitor</a>:<br> 118<dl><dt><strong>__dict__</strong></dt> 119<dd><tt>dictionary for instance variables (if defined)</tt></dd> 120</dl> 121<dl><dt><strong>__weakref__</strong></dt> 122<dd><tt>list of weak references to the object (if defined)</tt></dd> 123</dl> 124</td></tr></table> <p> 125<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 126<tr bgcolor="#ffc8d8"> 127<td colspan=3 valign=bottom> <br> 128<font color="#000000" face="helvetica, arial"><a name="MsrPowerMonitorWin">class <strong>MsrPowerMonitorWin</strong></a>(<a href="telemetry.internal.platform.power_monitor.msr_power_monitor.html#MsrPowerMonitor">MsrPowerMonitor</a>)</font></td></tr> 129 130<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> 131<td width="100%"><dl><dt>Method resolution order:</dt> 132<dd><a href="telemetry.internal.platform.power_monitor.msr_power_monitor.html#MsrPowerMonitorWin">MsrPowerMonitorWin</a></dd> 133<dd><a href="telemetry.internal.platform.power_monitor.msr_power_monitor.html#MsrPowerMonitor">MsrPowerMonitor</a></dd> 134<dd><a href="telemetry.internal.platform.power_monitor.html#PowerMonitor">telemetry.internal.platform.power_monitor.PowerMonitor</a></dd> 135<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> 136</dl> 137<hr> 138Methods defined here:<br> 139<dl><dt><a name="MsrPowerMonitorWin-CanMonitorPower"><strong>CanMonitorPower</strong></a>(self)</dt></dl> 140 141<dl><dt><a name="MsrPowerMonitorWin-StopMonitoringPower"><strong>StopMonitoringPower</strong></a>(self)</dt></dl> 142 143<hr> 144Methods inherited from <a href="telemetry.internal.platform.power_monitor.msr_power_monitor.html#MsrPowerMonitor">MsrPowerMonitor</a>:<br> 145<dl><dt><a name="MsrPowerMonitorWin-StartMonitoringPower"><strong>StartMonitoringPower</strong></a>(self, browser)</dt></dl> 146 147<dl><dt><a name="MsrPowerMonitorWin-__init__"><strong>__init__</strong></a>(self, backend)</dt></dl> 148 149<hr> 150Methods inherited from <a href="telemetry.internal.platform.power_monitor.html#PowerMonitor">telemetry.internal.platform.power_monitor.PowerMonitor</a>:<br> 151<dl><dt><a name="MsrPowerMonitorWin-CanMeasurePerApplicationPower"><strong>CanMeasurePerApplicationPower</strong></a>(self)</dt><dd><tt>Returns True if the power monitor can measure power for the target<br> 152application in isolation. False if power measurement is for full system<br> 153energy consumption.</tt></dd></dl> 154 155<hr> 156Data descriptors inherited from <a href="telemetry.internal.platform.power_monitor.html#PowerMonitor">telemetry.internal.platform.power_monitor.PowerMonitor</a>:<br> 157<dl><dt><strong>__dict__</strong></dt> 158<dd><tt>dictionary for instance variables (if defined)</tt></dd> 159</dl> 160<dl><dt><strong>__weakref__</strong></dt> 161<dd><tt>list of weak references to the object (if defined)</tt></dd> 162</dl> 163</td></tr></table></td></tr></table><p> 164<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 165<tr bgcolor="#55aa55"> 166<td colspan=3 valign=bottom> <br> 167<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr> 168 169<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td> 170<td width="100%"><strong>IA32_PACKAGE_THERM_STATUS</strong> = 433<br> 171<strong>IA32_TEMPERATURE_TARGET</strong> = 418<br> 172<strong>MSR_DRAM_ENERGY_STATUS</strong> = 1561<br> 173<strong>MSR_PKG_ENERGY_STATUS</strong> = 1553<br> 174<strong>MSR_PP0_ENERGY_STATUS</strong> = 1593<br> 175<strong>MSR_PP1_ENERGY_STATUS</strong> = 1601<br> 176<strong>MSR_RAPL_POWER_UNIT</strong> = 1542</td></tr></table> 177</body></html>