| OLD | NEW |
| (Empty) |
| 1 | |
| 2 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | |
| 3 <html><head><title>Python: module telemetry.internal.platform.win_platform_backe
nd</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 hre
f="telemetry.html"><font color="#ffffff">telemetry</font></a>.<a href="telemetry
.internal.html"><font color="#ffffff">internal</font></a>.<a href="telemetry.int
ernal.platform.html"><font color="#ffffff">platform</font></a>.win_platform_back
end</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/win_platform_backend.py">telemetry/internal/plat
form/win_platform_backend.py</a></font></td></tr></table> | |
| 13 <p><tt># Copyright 2013 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=t
op><a href="atexit.html">atexit</a><br> | |
| 24 <a href="catapult_base.cloud_storage.html">catapult_base.cloud_storage</a><br> | |
| 25 <a href="collections.html">collections</a><br> | |
| 26 <a href="contextlib.html">contextlib</a><br> | |
| 27 <a href="ctypes.html">ctypes</a><br> | |
| 28 <a href="telemetry.decorators.html">telemetry.decorators</a><br> | |
| 29 </td><td width="25%" valign=top><a href="telemetry.internal.platform.desktop_pla
tform_backend.html">telemetry.internal.platform.desktop_platform_backend</a><br> | |
| 30 <a href="telemetry.core.exceptions.html">telemetry.core.exceptions</a><br> | |
| 31 <a href="logging.html">logging</a><br> | |
| 32 <a href="telemetry.internal.platform.power_monitor.msr_power_monitor.html">telem
etry.internal.platform.power_monitor.msr_power_monitor</a><br> | |
| 33 <a href="os.html">os</a><br> | |
| 34 <a href="telemetry.core.os_version.html">telemetry.core.os_version</a><br> | |
| 35 </td><td width="25%" valign=top><a href="telemetry.internal.util.path.html">tele
metry.internal.util.path</a><br> | |
| 36 <a href="platform.html">platform</a><br> | |
| 37 <a href="re.html">re</a><br> | |
| 38 <a href="socket.html">socket</a><br> | |
| 39 <a href="struct.html">struct</a><br> | |
| 40 <a href="subprocess.html">subprocess</a><br> | |
| 41 </td><td width="25%" valign=top><a href="sys.html">sys</a><br> | |
| 42 <a href="time.html">time</a><br> | |
| 43 <a href="telemetry.core.util.html">telemetry.core.util</a><br> | |
| 44 <a href="zipfile.html">zipfile</a><br> | |
| 45 </td></tr></table></td></tr></table><p> | |
| 46 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | |
| 47 <tr bgcolor="#ee77aa"> | |
| 48 <td colspan=3 valign=bottom> <br> | |
| 49 <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big
></font></td></tr> | |
| 50 | |
| 51 <tr><td bgcolor="#ee77aa"><tt> </tt></td><td>
</td> | |
| 52 <td width="100%"><dl> | |
| 53 <dt><font face="helvetica, arial"><a href="telemetry.internal.platform.desktop_p
latform_backend.html#DesktopPlatformBackend">telemetry.internal.platform.desktop
_platform_backend.DesktopPlatformBackend</a>(<a href="telemetry.internal.platfor
m.platform_backend.html#PlatformBackend">telemetry.internal.platform.platform_ba
ckend.PlatformBackend</a>) | |
| 54 </font></dt><dd> | |
| 55 <dl> | |
| 56 <dt><font face="helvetica, arial"><a href="telemetry.internal.platform.win_platf
orm_backend.html#WinPlatformBackend">WinPlatformBackend</a> | |
| 57 </font></dt></dl> | |
| 58 </dd> | |
| 59 </dl> | |
| 60 <p> | |
| 61 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | |
| 62 <tr bgcolor="#ffc8d8"> | |
| 63 <td colspan=3 valign=bottom> <br> | |
| 64 <font color="#000000" face="helvetica, arial"><a name="WinPlatformBackend">class
<strong>WinPlatformBackend</strong></a>(<a href="telemetry.internal.platform.de
sktop_platform_backend.html#DesktopPlatformBackend">telemetry.internal.platform.
desktop_platform_backend.DesktopPlatformBackend</a>)</font></td></tr> | |
| 65 | |
| 66 <tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> | |
| 67 <td width="100%"><dl><dt>Method resolution order:</dt> | |
| 68 <dd><a href="telemetry.internal.platform.win_platform_backend.html#WinPlatformBa
ckend">WinPlatformBackend</a></dd> | |
| 69 <dd><a href="telemetry.internal.platform.desktop_platform_backend.html#DesktopPl
atformBackend">telemetry.internal.platform.desktop_platform_backend.DesktopPlatf
ormBackend</a></dd> | |
| 70 <dd><a href="telemetry.internal.platform.platform_backend.html#PlatformBackend">
telemetry.internal.platform.platform_backend.PlatformBackend</a></dd> | |
| 71 <dd><a href="__builtin__.html#object">__builtin__.object</a></dd> | |
| 72 </dl> | |
| 73 <hr> | |
| 74 Methods defined here:<br> | |
| 75 <dl><dt><a name="WinPlatformBackend-CanFlushIndividualFilesFromSystemCache"><str
ong>CanFlushIndividualFilesFromSystemCache</strong></a>(self)</dt></dl> | |
| 76 | |
| 77 <dl><dt><a name="WinPlatformBackend-CanMeasurePerApplicationPower"><strong>CanMe
asurePerApplicationPower</strong></a>(self)</dt></dl> | |
| 78 | |
| 79 <dl><dt><a name="WinPlatformBackend-CanMonitorPower"><strong>CanMonitorPower</st
rong></a>(self)</dt></dl> | |
| 80 | |
| 81 <dl><dt><a name="WinPlatformBackend-CloseMsrServer"><strong>CloseMsrServer</stro
ng></a>(self)</dt></dl> | |
| 82 | |
| 83 <dl><dt><a name="WinPlatformBackend-CooperativelyShutdown"><strong>Cooperatively
Shutdown</strong></a>(self, proc, app_name)</dt></dl> | |
| 84 | |
| 85 <dl><dt><a name="WinPlatformBackend-GetArchName"><strong>GetArchName</strong></a
>(*args, **kwargs)</dt></dl> | |
| 86 | |
| 87 <dl><dt><a name="WinPlatformBackend-GetChildPids"><strong>GetChildPids</strong><
/a>(self, pid)</dt><dd><tt>Retunds a list of child pids
of |pid|.</tt></dd></dl> | |
| 88 | |
| 89 <dl><dt><a name="WinPlatformBackend-GetCommandLine"><strong>GetCommandLine</stro
ng></a>(self, pid)</dt></dl> | |
| 90 | |
| 91 <dl><dt><a name="WinPlatformBackend-GetCpuStats"><strong>GetCpuStats</strong></a
>(self, pid)</dt></dl> | |
| 92 | |
| 93 <dl><dt><a name="WinPlatformBackend-GetCpuTimestamp"><strong>GetCpuTimestamp</st
rong></a>(self)</dt><dd><tt>Return current timestamp in seco
nds.</tt></dd></dl> | |
| 94 | |
| 95 <dl><dt><a name="WinPlatformBackend-GetMemoryStats"><strong>GetMemoryStats</stro
ng></a>(self, pid)</dt></dl> | |
| 96 | |
| 97 <dl><dt><a name="WinPlatformBackend-GetOSName"><strong>GetOSName</strong></a>(se
lf)</dt></dl> | |
| 98 | |
| 99 <dl><dt><a name="WinPlatformBackend-GetOSVersionName"><strong>GetOSVersionName</
strong></a>(*args, **kwargs)</dt></dl> | |
| 100 | |
| 101 <dl><dt><a name="WinPlatformBackend-GetSystemCommitCharge"><strong>GetSystemComm
itCharge</strong></a>(self)</dt></dl> | |
| 102 | |
| 103 <dl><dt><a name="WinPlatformBackend-GetSystemProcessInfo"><strong>GetSystemProce
ssInfo</strong></a>(self)</dt></dl> | |
| 104 | |
| 105 <dl><dt><a name="WinPlatformBackend-GetSystemTotalPhysicalMemory"><strong>GetSys
temTotalPhysicalMemory</strong></a>(*args, **kwargs)</dt></dl> | |
| 106 | |
| 107 <dl><dt><a name="WinPlatformBackend-HasBeenThermallyThrottled"><strong>HasBeenTh
ermallyThrottled</strong></a>(self)</dt></dl> | |
| 108 | |
| 109 <dl><dt><a name="WinPlatformBackend-IsCooperativeShutdownSupported"><strong>IsCo
operativeShutdownSupported</strong></a>(self)</dt></dl> | |
| 110 | |
| 111 <dl><dt><a name="WinPlatformBackend-IsCurrentProcessElevated"><strong>IsCurrentP
rocessElevated</strong></a>(self)</dt></dl> | |
| 112 | |
| 113 <dl><dt><a name="WinPlatformBackend-IsThermallyThrottled"><strong>IsThermallyThr
ottled</strong></a>(self)</dt></dl> | |
| 114 | |
| 115 <dl><dt><a name="WinPlatformBackend-KillProcess"><strong>KillProcess</strong></a
>(self, pid, kill_process_tree<font color="#909090">=False</font>)</dt></dl> | |
| 116 | |
| 117 <dl><dt><a name="WinPlatformBackend-LaunchApplication"><strong>LaunchApplication
</strong></a>(self, application, parameters<font color="#909090">=None</font>, e
levate_privilege<font color="#909090">=False</font>)</dt><dd><tt>Launch an&
nbsp;application. Returns a PyHANDLE object.</tt></dd></dl> | |
| 118 | |
| 119 <dl><dt><a name="WinPlatformBackend-ReadMsr"><strong>ReadMsr</strong></a>(self,
msr_number, start<font color="#909090">=0</font>, length<font color="#909090">=6
4</font>)</dt></dl> | |
| 120 | |
| 121 <dl><dt><a name="WinPlatformBackend-StartMonitoringPower"><strong>StartMonitorin
gPower</strong></a>(self, browser)</dt></dl> | |
| 122 | |
| 123 <dl><dt><a name="WinPlatformBackend-StopMonitoringPower"><strong>StopMonitoringP
ower</strong></a>(self)</dt></dl> | |
| 124 | |
| 125 <dl><dt><a name="WinPlatformBackend-__del__"><strong>__del__</strong></a>(self)<
/dt></dl> | |
| 126 | |
| 127 <dl><dt><a name="WinPlatformBackend-__init__"><strong>__init__</strong></a>(self
)</dt></dl> | |
| 128 | |
| 129 <dl><dt><a name="WinPlatformBackend-close"><strong>close</strong></a>(self)</dt>
</dl> | |
| 130 | |
| 131 <hr> | |
| 132 Class methods defined here:<br> | |
| 133 <dl><dt><a name="WinPlatformBackend-IsPlatformBackendForHost"><strong>IsPlatform
BackendForHost</strong></a>(cls)<font color="#909090"><font face="helvetica, ari
al"> from <a href="__builtin__.html#type">__builtin__.type</a></font></font></dt
></dl> | |
| 134 | |
| 135 <hr> | |
| 136 Methods inherited from <a href="telemetry.internal.platform.desktop_platform_bac
kend.html#DesktopPlatformBackend">telemetry.internal.platform.desktop_platform_b
ackend.DesktopPlatformBackend</a>:<br> | |
| 137 <dl><dt><a name="WinPlatformBackend-FlushSystemCacheForDirectory"><strong>FlushS
ystemCacheForDirectory</strong></a>(self, directory)</dt></dl> | |
| 138 | |
| 139 <dl><dt><a name="WinPlatformBackend-GetDeviceTypeName"><strong>GetDeviceTypeName
</strong></a>(self)</dt></dl> | |
| 140 | |
| 141 <hr> | |
| 142 Methods inherited from <a href="telemetry.internal.platform.platform_backend.htm
l#PlatformBackend">telemetry.internal.platform.platform_backend.PlatformBackend<
/a>:<br> | |
| 143 <dl><dt><a name="WinPlatformBackend-CanCaptureVideo"><strong>CanCaptureVideo</st
rong></a>(self)</dt></dl> | |
| 144 | |
| 145 <dl><dt><a name="WinPlatformBackend-CanLaunchApplication"><strong>CanLaunchAppli
cation</strong></a>(self, application)</dt></dl> | |
| 146 | |
| 147 <dl><dt><a name="WinPlatformBackend-CanMonitorNetworkData"><strong>CanMonitorNet
workData</strong></a>(self)</dt></dl> | |
| 148 | |
| 149 <dl><dt><a name="WinPlatformBackend-CanMonitorThermalThrottling"><strong>CanMoni
torThermalThrottling</strong></a>(self)</dt></dl> | |
| 150 | |
| 151 <dl><dt><a name="WinPlatformBackend-CanTakeScreenshot"><strong>CanTakeScreenshot
</strong></a>(self)</dt></dl> | |
| 152 | |
| 153 <dl><dt><a name="WinPlatformBackend-DidCreateBrowser"><strong>DidCreateBrowser</
strong></a>(self, browser, browser_backend)</dt></dl> | |
| 154 | |
| 155 <dl><dt><a name="WinPlatformBackend-DidStartBrowser"><strong>DidStartBrowser</st
rong></a>(self, browser, browser_backend)</dt></dl> | |
| 156 | |
| 157 <dl><dt><a name="WinPlatformBackend-FlushDnsCache"><strong>FlushDnsCache</strong
></a>(self)</dt></dl> | |
| 158 | |
| 159 <dl><dt><a name="WinPlatformBackend-FlushEntireSystemCache"><strong>FlushEntireS
ystemCache</strong></a>(self)</dt></dl> | |
| 160 | |
| 161 <dl><dt><a name="WinPlatformBackend-GetNetworkData"><strong>GetNetworkData</stro
ng></a>(self, browser)</dt></dl> | |
| 162 | |
| 163 <dl><dt><a name="WinPlatformBackend-GetRemotePort"><strong>GetRemotePort</strong
></a>(self, port)</dt></dl> | |
| 164 | |
| 165 <dl><dt><a name="WinPlatformBackend-InitPlatformBackend"><strong>InitPlatformBac
kend</strong></a>(self)</dt></dl> | |
| 166 | |
| 167 <dl><dt><a name="WinPlatformBackend-InstallApplication"><strong>InstallApplicati
on</strong></a>(self, application)</dt></dl> | |
| 168 | |
| 169 <dl><dt><a name="WinPlatformBackend-IsApplicationRunning"><strong>IsApplicationR
unning</strong></a>(self, application)</dt></dl> | |
| 170 | |
| 171 <dl><dt><a name="WinPlatformBackend-IsDisplayTracingSupported"><strong>IsDisplay
TracingSupported</strong></a>(self)</dt></dl> | |
| 172 | |
| 173 <dl><dt><a name="WinPlatformBackend-PathExists"><strong>PathExists</strong></a>(
self, path, timeout<font color="#909090">=None</font>, retries<font color="#9090
90">=None</font>)</dt><dd><tt>Tests whether the given path&n
bsp;exists on the target platform.<br> | |
| 174 Args:<br> | |
| 175 path: path in request.<br> | |
| 176 timeout: timeout.<br> | |
| 177 retries: num of retries.<br> | |
| 178 Return:<br> | |
| 179 Whether the path exists on the target&
nbsp;platform.</tt></dd></dl> | |
| 180 | |
| 181 <dl><dt><a name="WinPlatformBackend-PurgeUnpinnedMemory"><strong>PurgeUnpinnedMe
mory</strong></a>(self)</dt></dl> | |
| 182 | |
| 183 <dl><dt><a name="WinPlatformBackend-SetFullPerformanceModeEnabled"><strong>SetFu
llPerformanceModeEnabled</strong></a>(self, enabled)</dt></dl> | |
| 184 | |
| 185 <dl><dt><a name="WinPlatformBackend-SetPlatform"><strong>SetPlatform</strong></a
>(self, platform)</dt></dl> | |
| 186 | |
| 187 <dl><dt><a name="WinPlatformBackend-StartDisplayTracing"><strong>StartDisplayTra
cing</strong></a>(self)</dt><dd><tt>Start gathering a trace
with frame timestamps close to physical<br> | |
| 188 display.</tt></dd></dl> | |
| 189 | |
| 190 <dl><dt><a name="WinPlatformBackend-StartVideoCapture"><strong>StartVideoCapture
</strong></a>(self, min_bitrate_mbps)</dt></dl> | |
| 191 | |
| 192 <dl><dt><a name="WinPlatformBackend-StopDisplayTracing"><strong>StopDisplayTraci
ng</strong></a>(self)</dt><dd><tt>Stop gathering a trace wit
h frame timestamps close to physical display.<br> | |
| 193 <br> | |
| 194 Returns a raw tracing events that contains th
e timestamps of physical<br> | |
| 195 display.</tt></dd></dl> | |
| 196 | |
| 197 <dl><dt><a name="WinPlatformBackend-StopVideoCapture"><strong>StopVideoCapture</
strong></a>(self)</dt></dl> | |
| 198 | |
| 199 <dl><dt><a name="WinPlatformBackend-TakeScreenshot"><strong>TakeScreenshot</stro
ng></a>(self, file_path)</dt></dl> | |
| 200 | |
| 201 <dl><dt><a name="WinPlatformBackend-WillCloseBrowser"><strong>WillCloseBrowser</
strong></a>(self, browser, browser_backend)</dt></dl> | |
| 202 | |
| 203 <hr> | |
| 204 Class methods inherited from <a href="telemetry.internal.platform.platform_backe
nd.html#PlatformBackend">telemetry.internal.platform.platform_backend.PlatformBa
ckend</a>:<br> | |
| 205 <dl><dt><a name="WinPlatformBackend-CreatePlatformForDevice"><strong>CreatePlatf
ormForDevice</strong></a>(cls, device, finder_options)<font color="#909090"><fon
t face="helvetica, arial"> from <a href="__builtin__.html#type">__builtin__.type
</a></font></font></dt></dl> | |
| 206 | |
| 207 <dl><dt><a name="WinPlatformBackend-SupportsDevice"><strong>SupportsDevice</stro
ng></a>(cls, device)<font color="#909090"><font face="helvetica, arial"> from <a
href="__builtin__.html#type">__builtin__.type</a></font></font></dt><dd><tt>Ret
urns whether this platform backend supports intial
ization from the<br> | |
| 208 device.</tt></dd></dl> | |
| 209 | |
| 210 <hr> | |
| 211 Data descriptors inherited from <a href="telemetry.internal.platform.platform_ba
ckend.html#PlatformBackend">telemetry.internal.platform.platform_backend.Platfor
mBackend</a>:<br> | |
| 212 <dl><dt><strong>__dict__</strong></dt> | |
| 213 <dd><tt>dictionary for instance variables (if defined)<
/tt></dd> | |
| 214 </dl> | |
| 215 <dl><dt><strong>__weakref__</strong></dt> | |
| 216 <dd><tt>list of weak references to the object 
;(if defined)</tt></dd> | |
| 217 </dl> | |
| 218 <dl><dt><strong>forwarder_factory</strong></dt> | |
| 219 </dl> | |
| 220 <dl><dt><strong>is_host_platform</strong></dt> | |
| 221 </dl> | |
| 222 <dl><dt><strong>is_video_capture_running</strong></dt> | |
| 223 </dl> | |
| 224 <dl><dt><strong>network_controller_backend</strong></dt> | |
| 225 </dl> | |
| 226 <dl><dt><strong>platform</strong></dt> | |
| 227 </dl> | |
| 228 <dl><dt><strong>running_browser_backends</strong></dt> | |
| 229 </dl> | |
| 230 <dl><dt><strong>tracing_controller_backend</strong></dt> | |
| 231 </dl> | |
| 232 <dl><dt><strong>wpr_ca_cert_path</strong></dt> | |
| 233 </dl> | |
| 234 <dl><dt><strong>wpr_http_device_port</strong></dt> | |
| 235 </dl> | |
| 236 <dl><dt><strong>wpr_https_device_port</strong></dt> | |
| 237 </dl> | |
| 238 </td></tr></table></td></tr></table><p> | |
| 239 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | |
| 240 <tr bgcolor="#eeaa77"> | |
| 241 <td colspan=3 valign=bottom> <br> | |
| 242 <font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></b
ig></font></td></tr> | |
| 243 | |
| 244 <tr><td bgcolor="#eeaa77"><tt> </tt></td><td>
</td> | |
| 245 <td width="100%"><dl><dt><a name="-TerminateProcess"><strong>TerminateProcess</s
trong></a>(process_handle)</dt></dl> | |
| 246 </td></tr></table><p> | |
| 247 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | |
| 248 <tr bgcolor="#55aa55"> | |
| 249 <td colspan=3 valign=bottom> <br> | |
| 250 <font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></
font></td></tr> | |
| 251 | |
| 252 <tr><td bgcolor="#55aa55"><tt> </tt></td><td>
</td> | |
| 253 <td width="100%"><strong>pywintypes</strong> = None<br> | |
| 254 <strong>shell</strong> = None<br> | |
| 255 <strong>shellcon</strong> = None<br> | |
| 256 <strong>win32api</strong> = None<br> | |
| 257 <strong>win32con</strong> = None<br> | |
| 258 <strong>win32gui</strong> = None<br> | |
| 259 <strong>win32process</strong> = None<br> | |
| 260 <strong>win32security</strong> = None</td></tr></table> | |
| 261 </body></html> | |
| OLD | NEW |