| OLD | NEW |
| 1 | 1 |
| 2 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | 2 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| 3 <html><head><title>Python: module telemetry.core.platform.mac_platform_backend</
title> | 3 <html><head><title>Python: module telemetry.core.platform.mac_platform_backend</
title> |
| 4 </head><body bgcolor="#f0f0f8"> | 4 </head><body bgcolor="#f0f0f8"> |
| 5 | 5 |
| 6 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> | 6 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> |
| 7 <tr bgcolor="#7799ee"> | 7 <tr bgcolor="#7799ee"> |
| 8 <td valign=bottom> <br> | 8 <td valign=bottom> <br> |
| 9 <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a hre
f="telemetry.html"><font color="#ffffff">telemetry</font></a>.<a href="telemetry
.core.html"><font color="#ffffff">core</font></a>.<a href="telemetry.core.platfo
rm.html"><font color="#ffffff">platform</font></a>.mac_platform_backend</strong>
</big></big></font></td | 9 <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a hre
f="telemetry.html"><font color="#ffffff">telemetry</font></a>.<a href="telemetry
.core.html"><font color="#ffffff">core</font></a>.<a href="telemetry.core.platfo
rm.html"><font color="#ffffff">platform</font></a>.mac_platform_backend</strong>
</big></big></font></td |
| 10 ><td align=right valign=bottom | 10 ><td align=right valign=bottom |
| 11 ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href=
"../telemetry/core/platform/mac_platform_backend.py">telemetry/core/platform/mac
_platform_backend.py</a></font></td></tr></table> | 11 ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href=
"../telemetry/core/platform/mac_platform_backend.py">telemetry/core/platform/mac
_platform_backend.py</a></font></td></tr></table> |
| 12 <p><tt># Copyright (c) 2013 The Chromium Autho
rs. All rights reserved.<br> | 12 <p><tt># Copyright (c) 2013 The Chromium Autho
rs. All rights reserved.<br> |
| 13 # Use of this source code is governed by
a BSD-style license that can be<br> | 13 # Use of this source code is governed by
a BSD-style license that can be<br> |
| 14 # found in the LICENSE file.</tt></p> | 14 # found in the LICENSE file.</tt></p> |
| 15 <p> | 15 <p> |
| 16 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | 16 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 17 <tr bgcolor="#aa55cc"> | 17 <tr bgcolor="#aa55cc"> |
| 18 <td colspan=3 valign=bottom> <br> | 18 <td colspan=3 valign=bottom> <br> |
| 19 <font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big
></font></td></tr> | 19 <font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big
></font></td></tr> |
| 20 | 20 |
| 21 <tr><td bgcolor="#aa55cc"><tt> </tt></td><td>
</td> | 21 <tr><td bgcolor="#aa55cc"><tt> </tt></td><td>
</td> |
| 22 <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=t
op><a href="os.html">os</a><br> | 22 <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=t
op><a href="ctypes.html">ctypes</a><br> |
| 23 <a href="telemetry.decorators.html">telemetry.decorators</a><br> |
| 24 </td><td width="25%" valign=top><a href="os.html">os</a><br> |
| 25 <a href="telemetry.core.platform.platform_backend.html">telemetry.core.platform.
platform_backend</a><br> |
| 23 </td><td width="25%" valign=top><a href="telemetry.core.platform.posix_platform_
backend.html">telemetry.core.platform.posix_platform_backend</a><br> | 26 </td><td width="25%" valign=top><a href="telemetry.core.platform.posix_platform_
backend.html">telemetry.core.platform.posix_platform_backend</a><br> |
| 27 <a href="telemetry.core.platform.power_monitor.powermetrics_power_monitor.html">
telemetry.core.platform.power_monitor.powermetrics_power_monitor</a><br> |
| 24 </td><td width="25%" valign=top><a href="resource.html">resource</a><br> | 28 </td><td width="25%" valign=top><a href="resource.html">resource</a><br> |
| 25 </td><td width="25%" valign=top></td></tr></table></td></tr></table><p> | 29 <a href="time.html">time</a><br> |
| 30 </td></tr></table></td></tr></table><p> |
| 26 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | 31 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 27 <tr bgcolor="#ee77aa"> | 32 <tr bgcolor="#ee77aa"> |
| 28 <td colspan=3 valign=bottom> <br> | 33 <td colspan=3 valign=bottom> <br> |
| 29 <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big
></font></td></tr> | 34 <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big
></font></td></tr> |
| 30 | 35 |
| 31 <tr><td bgcolor="#ee77aa"><tt> </tt></td><td>
</td> | 36 <tr><td bgcolor="#ee77aa"><tt> </tt></td><td>
</td> |
| 32 <td width="100%"><dl> | 37 <td width="100%"><dl> |
| 33 <dt><font face="helvetica, arial"><a href="telemetry.core.platform.posix_platfor
m_backend.html#PosixPlatformBackend">telemetry.core.platform.posix_platform_back
end.PosixPlatformBackend</a>(<a href="telemetry.core.platform.platform_backend.h
tml#PlatformBackend">telemetry.core.platform.platform_backend.PlatformBackend</a
>) | 38 <dt><font face="helvetica, arial"><a href="telemetry.core.platform.posix_platfor
m_backend.html#PosixPlatformBackend">telemetry.core.platform.posix_platform_back
end.PosixPlatformBackend</a>(<a href="telemetry.core.platform.desktop_platform_b
ackend.html#DesktopPlatformBackend">telemetry.core.platform.desktop_platform_bac
kend.DesktopPlatformBackend</a>) |
| 34 </font></dt><dd> | 39 </font></dt><dd> |
| 35 <dl> | 40 <dl> |
| 36 <dt><font face="helvetica, arial"><a href="telemetry.core.platform.mac_platform_
backend.html#MacPlatformBackend">MacPlatformBackend</a> | 41 <dt><font face="helvetica, arial"><a href="telemetry.core.platform.mac_platform_
backend.html#MacPlatformBackend">MacPlatformBackend</a> |
| 37 </font></dt></dl> | 42 </font></dt></dl> |
| 38 </dd> | 43 </dd> |
| 39 </dl> | 44 </dl> |
| 40 <p> | 45 <p> |
| 41 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | 46 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 42 <tr bgcolor="#ffc8d8"> | 47 <tr bgcolor="#ffc8d8"> |
| 43 <td colspan=3 valign=bottom> <br> | 48 <td colspan=3 valign=bottom> <br> |
| 44 <font color="#000000" face="helvetica, arial"><a name="MacPlatformBackend">class
<strong>MacPlatformBackend</strong></a>(<a href="telemetry.core.platform.posix_
platform_backend.html#PosixPlatformBackend">telemetry.core.platform.posix_platfo
rm_backend.PosixPlatformBackend</a>)</font></td></tr> | 49 <font color="#000000" face="helvetica, arial"><a name="MacPlatformBackend">class
<strong>MacPlatformBackend</strong></a>(<a href="telemetry.core.platform.posix_
platform_backend.html#PosixPlatformBackend">telemetry.core.platform.posix_platfo
rm_backend.PosixPlatformBackend</a>)</font></td></tr> |
| 45 | 50 |
| 46 <tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> | 51 <tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> |
| 47 <td width="100%"><dl><dt>Method resolution order:</dt> | 52 <td width="100%"><dl><dt>Method resolution order:</dt> |
| 48 <dd><a href="telemetry.core.platform.mac_platform_backend.html#MacPlatformBacken
d">MacPlatformBackend</a></dd> | 53 <dd><a href="telemetry.core.platform.mac_platform_backend.html#MacPlatformBacken
d">MacPlatformBackend</a></dd> |
| 49 <dd><a href="telemetry.core.platform.posix_platform_backend.html#PosixPlatformBa
ckend">telemetry.core.platform.posix_platform_backend.PosixPlatformBackend</a></
dd> | 54 <dd><a href="telemetry.core.platform.posix_platform_backend.html#PosixPlatformBa
ckend">telemetry.core.platform.posix_platform_backend.PosixPlatformBackend</a></
dd> |
| 55 <dd><a href="telemetry.core.platform.desktop_platform_backend.html#DesktopPlatfo
rmBackend">telemetry.core.platform.desktop_platform_backend.DesktopPlatformBacke
nd</a></dd> |
| 50 <dd><a href="telemetry.core.platform.platform_backend.html#PlatformBackend">tele
metry.core.platform.platform_backend.PlatformBackend</a></dd> | 56 <dd><a href="telemetry.core.platform.platform_backend.html#PlatformBackend">tele
metry.core.platform.platform_backend.PlatformBackend</a></dd> |
| 51 <dd><a href="__builtin__.html#object">__builtin__.object</a></dd> | 57 <dd><a href="__builtin__.html#object">__builtin__.object</a></dd> |
| 52 </dl> | 58 </dl> |
| 53 <hr> | 59 <hr> |
| 54 Methods defined here:<br> | 60 Methods defined here:<br> |
| 61 <dl><dt><a name="MacPlatformBackend-CanFlushIndividualFilesFromSystemCache"><str
ong>CanFlushIndividualFilesFromSystemCache</strong></a>(self)</dt></dl> |
| 62 |
| 63 <dl><dt><a name="MacPlatformBackend-CanMonitorPowerAsync"><strong>CanMonitorPowe
rAsync</strong></a>(self)</dt></dl> |
| 64 |
| 65 <dl><dt><a name="MacPlatformBackend-FlushEntireSystemCache"><strong>FlushEntireS
ystemCache</strong></a>(self)</dt></dl> |
| 66 |
| 67 <dl><dt><a name="MacPlatformBackend-GetCpuStats"><strong>GetCpuStats</strong></a
>(self, pid)</dt><dd><tt>Return current cpu processing time&
nbsp;of pid in seconds.</tt></dd></dl> |
| 68 |
| 69 <dl><dt><a name="MacPlatformBackend-GetCpuTimestamp"><strong>GetCpuTimestamp</st
rong></a>(self)</dt><dd><tt>Return current timestamp in seco
nds.</tt></dd></dl> |
| 70 |
| 55 <dl><dt><a name="MacPlatformBackend-GetMemoryStats"><strong>GetMemoryStats</stro
ng></a>(self, pid)</dt></dl> | 71 <dl><dt><a name="MacPlatformBackend-GetMemoryStats"><strong>GetMemoryStats</stro
ng></a>(self, pid)</dt></dl> |
| 56 | 72 |
| 57 <dl><dt><a name="MacPlatformBackend-GetOSName"><strong>GetOSName</strong></a>(se
lf)</dt></dl> | 73 <dl><dt><a name="MacPlatformBackend-GetOSName"><strong>GetOSName</strong></a>(se
lf)</dt></dl> |
| 58 | 74 |
| 59 <dl><dt><a name="MacPlatformBackend-GetOSVersionName"><strong>GetOSVersionName</
strong></a>(self)</dt></dl> | 75 <dl><dt><a name="MacPlatformBackend-GetOSVersionName"><strong>GetOSVersionName</
strong></a>(*args, **kwargs)</dt></dl> |
| 60 | 76 |
| 61 <dl><dt><a name="MacPlatformBackend-GetRawDisplayFrameRateMeasurements"><strong>
GetRawDisplayFrameRateMeasurements</strong></a>(self)</dt></dl> | 77 <dl><dt><a name="MacPlatformBackend-GetRawDisplayFrameRateMeasurements"><strong>
GetRawDisplayFrameRateMeasurements</strong></a>(self)</dt></dl> |
| 62 | 78 |
| 63 <dl><dt><a name="MacPlatformBackend-GetSystemCommitCharge"><strong>GetSystemComm
itCharge</strong></a>(self)</dt></dl> | 79 <dl><dt><a name="MacPlatformBackend-GetSystemCommitCharge"><strong>GetSystemComm
itCharge</strong></a>(self)</dt></dl> |
| 64 | 80 |
| 81 <dl><dt><a name="MacPlatformBackend-GetSystemTotalPhysicalMemory"><strong>GetSys
temTotalPhysicalMemory</strong></a>(*args, **kwargs)</dt></dl> |
| 82 |
| 65 <dl><dt><a name="MacPlatformBackend-HasBeenThermallyThrottled"><strong>HasBeenTh
ermallyThrottled</strong></a>(self)</dt></dl> | 83 <dl><dt><a name="MacPlatformBackend-HasBeenThermallyThrottled"><strong>HasBeenTh
ermallyThrottled</strong></a>(self)</dt></dl> |
| 66 | 84 |
| 67 <dl><dt><a name="MacPlatformBackend-IsThermallyThrottled"><strong>IsThermallyThr
ottled</strong></a>(self)</dt></dl> | 85 <dl><dt><a name="MacPlatformBackend-IsThermallyThrottled"><strong>IsThermallyThr
ottled</strong></a>(self)</dt></dl> |
| 68 | 86 |
| 87 <dl><dt><a name="MacPlatformBackend-PurgeUnpinnedMemory"><strong>PurgeUnpinnedMe
mory</strong></a>(self)</dt></dl> |
| 88 |
| 89 <dl><dt><a name="MacPlatformBackend-StartMonitoringPowerAsync"><strong>StartMoni
toringPowerAsync</strong></a>(self)</dt></dl> |
| 90 |
| 69 <dl><dt><a name="MacPlatformBackend-StartRawDisplayFrameRateMeasurement"><strong
>StartRawDisplayFrameRateMeasurement</strong></a>(self)</dt></dl> | 91 <dl><dt><a name="MacPlatformBackend-StartRawDisplayFrameRateMeasurement"><strong
>StartRawDisplayFrameRateMeasurement</strong></a>(self)</dt></dl> |
| 70 | 92 |
| 93 <dl><dt><a name="MacPlatformBackend-StopMonitoringPowerAsync"><strong>StopMonito
ringPowerAsync</strong></a>(self)</dt></dl> |
| 94 |
| 71 <dl><dt><a name="MacPlatformBackend-StopRawDisplayFrameRateMeasurement"><strong>
StopRawDisplayFrameRateMeasurement</strong></a>(self)</dt></dl> | 95 <dl><dt><a name="MacPlatformBackend-StopRawDisplayFrameRateMeasurement"><strong>
StopRawDisplayFrameRateMeasurement</strong></a>(self)</dt></dl> |
| 72 | 96 |
| 97 <dl><dt><a name="MacPlatformBackend-__init__"><strong>__init__</strong></a>(self
)</dt></dl> |
| 98 |
| 73 <hr> | 99 <hr> |
| 74 Methods inherited from <a href="telemetry.core.platform.posix_platform_backend.h
tml#PosixPlatformBackend">telemetry.core.platform.posix_platform_backend.PosixPl
atformBackend</a>:<br> | 100 Methods inherited from <a href="telemetry.core.platform.posix_platform_backend.h
tml#PosixPlatformBackend">telemetry.core.platform.posix_platform_backend.PosixPl
atformBackend</a>:<br> |
| 101 <dl><dt><a name="MacPlatformBackend-CanLaunchApplication"><strong>CanLaunchAppli
cation</strong></a>(self, application)</dt></dl> |
| 102 |
| 75 <dl><dt><a name="MacPlatformBackend-GetChildPids"><strong>GetChildPids</strong><
/a>(self, pid)</dt><dd><tt>Returns a list of child pids
of |pid|.</tt></dd></dl> | 103 <dl><dt><a name="MacPlatformBackend-GetChildPids"><strong>GetChildPids</strong><
/a>(self, pid)</dt><dd><tt>Returns a list of child pids
of |pid|.</tt></dd></dl> |
| 76 | 104 |
| 77 <dl><dt><a name="MacPlatformBackend-GetCommandLine"><strong>GetCommandLine</stro
ng></a>(self, pid)</dt></dl> | 105 <dl><dt><a name="MacPlatformBackend-GetCommandLine"><strong>GetCommandLine</stro
ng></a>(self, pid)</dt></dl> |
| 78 | 106 |
| 107 <dl><dt><a name="MacPlatformBackend-GetFlushUtilityName"><strong>GetFlushUtility
Name</strong></a>(self)</dt></dl> |
| 108 |
| 109 <dl><dt><a name="MacPlatformBackend-LaunchApplication"><strong>LaunchApplication
</strong></a>(self, application, parameters<font color="#909090">=None</font>, e
levate_privilege<font color="#909090">=False</font>)</dt></dl> |
| 110 |
| 111 <hr> |
| 112 Methods inherited from <a href="telemetry.core.platform.desktop_platform_backend
.html#DesktopPlatformBackend">telemetry.core.platform.desktop_platform_backend.D
esktopPlatformBackend</a>:<br> |
| 113 <dl><dt><a name="MacPlatformBackend-FlushSystemCacheForDirectory"><strong>FlushS
ystemCacheForDirectory</strong></a>(self, directory, ignoring<font color="#90909
0">=None</font>)</dt></dl> |
| 114 |
| 79 <hr> | 115 <hr> |
| 80 Methods inherited from <a href="telemetry.core.platform.platform_backend.html#Pl
atformBackend">telemetry.core.platform.platform_backend.PlatformBackend</a>:<br> | 116 Methods inherited from <a href="telemetry.core.platform.platform_backend.html#Pl
atformBackend">telemetry.core.platform.platform_backend.PlatformBackend</a>:<br> |
| 117 <dl><dt><a name="MacPlatformBackend-CanCaptureVideo"><strong>CanCaptureVideo</st
rong></a>(self)</dt></dl> |
| 118 |
| 119 <dl><dt><a name="MacPlatformBackend-CanMonitorPowerSync"><strong>CanMonitorPower
Sync</strong></a>(self)</dt></dl> |
| 120 |
| 81 <dl><dt><a name="MacPlatformBackend-CanMonitorThermalThrottling"><strong>CanMoni
torThermalThrottling</strong></a>(self)</dt></dl> | 121 <dl><dt><a name="MacPlatformBackend-CanMonitorThermalThrottling"><strong>CanMoni
torThermalThrottling</strong></a>(self)</dt></dl> |
| 82 | 122 |
| 83 <dl><dt><a name="MacPlatformBackend-GetIOStats"><strong>GetIOStats</strong></a>(
self, pid)</dt></dl> | 123 <dl><dt><a name="MacPlatformBackend-GetIOStats"><strong>GetIOStats</strong></a>(
self, pid)</dt></dl> |
| 84 | 124 |
| 125 <dl><dt><a name="MacPlatformBackend-InstallApplication"><strong>InstallApplicati
on</strong></a>(self, application)</dt></dl> |
| 126 |
| 127 <dl><dt><a name="MacPlatformBackend-IsApplicationRunning"><strong>IsApplicationR
unning</strong></a>(self, application)</dt></dl> |
| 128 |
| 85 <dl><dt><a name="MacPlatformBackend-IsRawDisplayFrameRateSupported"><strong>IsRa
wDisplayFrameRateSupported</strong></a>(self)</dt></dl> | 129 <dl><dt><a name="MacPlatformBackend-IsRawDisplayFrameRateSupported"><strong>IsRa
wDisplayFrameRateSupported</strong></a>(self)</dt></dl> |
| 86 | 130 |
| 131 <dl><dt><a name="MacPlatformBackend-MonitorPowerSync"><strong>MonitorPowerSync</
strong></a>(self, duration_ms)</dt></dl> |
| 132 |
| 87 <dl><dt><a name="MacPlatformBackend-SetFullPerformanceModeEnabled"><strong>SetFu
llPerformanceModeEnabled</strong></a>(self, enabled)</dt></dl> | 133 <dl><dt><a name="MacPlatformBackend-SetFullPerformanceModeEnabled"><strong>SetFu
llPerformanceModeEnabled</strong></a>(self, enabled)</dt></dl> |
| 88 | 134 |
| 135 <dl><dt><a name="MacPlatformBackend-StartVideoCapture"><strong>StartVideoCapture
</strong></a>(self, min_bitrate_mbps)</dt></dl> |
| 136 |
| 137 <dl><dt><a name="MacPlatformBackend-StopVideoCapture"><strong>StopVideoCapture</
strong></a>(self)</dt></dl> |
| 138 |
| 89 <hr> | 139 <hr> |
| 90 Data descriptors inherited from <a href="telemetry.core.platform.platform_backen
d.html#PlatformBackend">telemetry.core.platform.platform_backend.PlatformBackend
</a>:<br> | 140 Data descriptors inherited from <a href="telemetry.core.platform.platform_backen
d.html#PlatformBackend">telemetry.core.platform.platform_backend.PlatformBackend
</a>:<br> |
| 91 <dl><dt><strong>__dict__</strong></dt> | 141 <dl><dt><strong>__dict__</strong></dt> |
| 92 <dd><tt>dictionary for instance variables (if defined)<
/tt></dd> | 142 <dd><tt>dictionary for instance variables (if defined)<
/tt></dd> |
| 93 </dl> | 143 </dl> |
| 94 <dl><dt><strong>__weakref__</strong></dt> | 144 <dl><dt><strong>__weakref__</strong></dt> |
| 95 <dd><tt>list of weak references to the object 
;(if defined)</tt></dd> | 145 <dd><tt>list of weak references to the object 
;(if defined)</tt></dd> |
| 96 </dl> | 146 </dl> |
| 97 </td></tr></table></td></tr></table> | 147 <dl><dt><strong>is_video_capture_running</strong></dt> |
| 148 </dl> |
| 149 </td></tr></table></td></tr></table><p> |
| 150 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 151 <tr bgcolor="#55aa55"> |
| 152 <td colspan=3 valign=bottom> <br> |
| 153 <font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></
font></td></tr> |
| 154 |
| 155 <tr><td bgcolor="#55aa55"><tt> </tt></td><td>
</td> |
| 156 <td width="100%"><strong>LEOPARD</strong> = 'leopard'<br> |
| 157 <strong>LION</strong> = 'lion'<br> |
| 158 <strong>MAVERICKS</strong> = 'mavericks'<br> |
| 159 <strong>MOUNTAINLION</strong> = 'mountainlion'<br> |
| 160 <strong>SNOWLEOPARD</strong> = 'snowleopard'</td></tr></table> |
| 98 </body></html> | 161 </body></html> |
| OLD | NEW |