telemetry.internal.platform.win_platform_backend
index
telemetry/internal/platform/win_platform_backend.py

# Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

 
Modules
       
atexit
catapult_base.cloud_storage
collections
contextlib
ctypes
telemetry.decorators
telemetry.internal.platform.desktop_platform_backend
telemetry.core.exceptions
logging
telemetry.internal.platform.power_monitor.msr_power_monitor
os
telemetry.core.os_version
telemetry.internal.util.path
platform
re
socket
struct
subprocess
sys
time
telemetry.core.util
zipfile

 
Classes
       
telemetry.internal.platform.desktop_platform_backend.DesktopPlatformBackend(telemetry.internal.platform.platform_backend.PlatformBackend)
WinPlatformBackend

 
class WinPlatformBackend(telemetry.internal.platform.desktop_platform_backend.DesktopPlatformBackend)
    
Method resolution order:
WinPlatformBackend
telemetry.internal.platform.desktop_platform_backend.DesktopPlatformBackend
telemetry.internal.platform.platform_backend.PlatformBackend
__builtin__.object

Methods defined here:
CanFlushIndividualFilesFromSystemCache(self)
CanMeasurePerApplicationPower(self)
CanMonitorPower(self)
CloseMsrServer(self)
CooperativelyShutdown(self, proc, app_name)
GetArchName(*args, **kwargs)
GetChildPids(self, pid)
Retunds a list of child pids of |pid|.
GetCommandLine(self, pid)
GetCpuStats(self, pid)
GetCpuTimestamp(self)
Return current timestamp in seconds.
GetMemoryStats(self, pid)
GetOSName(self)
GetOSVersionName(*args, **kwargs)
GetSystemCommitCharge(self)
GetSystemProcessInfo(self)
GetSystemTotalPhysicalMemory(*args, **kwargs)
HasBeenThermallyThrottled(self)
IsCooperativeShutdownSupported(self)
IsCurrentProcessElevated(self)
IsThermallyThrottled(self)
KillProcess(self, pid, kill_process_tree=False)
LaunchApplication(self, application, parameters=None, elevate_privilege=False)
Launch an application. Returns a PyHANDLE object.
ReadMsr(self, msr_number, start=0, length=64)
StartMonitoringPower(self, browser)
StopMonitoringPower(self)
__del__(self)
__init__(self)
close(self)

Class methods defined here:
IsPlatformBackendForHost(cls) from __builtin__.type

Methods inherited from telemetry.internal.platform.desktop_platform_backend.DesktopPlatformBackend:
FlushSystemCacheForDirectory(self, directory)
GetDeviceTypeName(self)

Methods inherited from telemetry.internal.platform.platform_backend.PlatformBackend:
CanCaptureVideo(self)
CanLaunchApplication(self, application)
CanMonitorNetworkData(self)
CanMonitorThermalThrottling(self)
CanTakeScreenshot(self)
DidCreateBrowser(self, browser, browser_backend)
DidStartBrowser(self, browser, browser_backend)
FlushDnsCache(self)
FlushEntireSystemCache(self)
GetNetworkData(self, browser)
GetRemotePort(self, port)
InitPlatformBackend(self)
InstallApplication(self, application)
IsApplicationRunning(self, application)
IsDisplayTracingSupported(self)
PathExists(self, path, timeout=None, retries=None)
Tests whether the given path exists on the target platform.
Args:
  path: path in request.
  timeout: timeout.
  retries: num of retries.
Return:
  Whether the path exists on the target platform.
PurgeUnpinnedMemory(self)
SetFullPerformanceModeEnabled(self, enabled)
SetPlatform(self, platform)
StartDisplayTracing(self)
Start gathering a trace with frame timestamps close to physical
display.
StartVideoCapture(self, min_bitrate_mbps)
StopDisplayTracing(self)
Stop gathering a trace with frame timestamps close to physical display.
 
Returns a raw tracing events that contains the timestamps of physical
display.
StopVideoCapture(self)
TakeScreenshot(self, file_path)
WillCloseBrowser(self, browser, browser_backend)

Class methods inherited from telemetry.internal.platform.platform_backend.PlatformBackend:
CreatePlatformForDevice(cls, device, finder_options) from __builtin__.type
SupportsDevice(cls, device) from __builtin__.type
Returns whether this platform backend supports intialization from the
device.

Data descriptors inherited from telemetry.internal.platform.platform_backend.PlatformBackend:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
forwarder_factory
is_host_platform
is_video_capture_running
network_controller_backend
platform
running_browser_backends
tracing_controller_backend
wpr_ca_cert_path
wpr_http_device_port
wpr_https_device_port

 
Functions
       
TerminateProcess(process_handle)

 
Data
        pywintypes = None
shell = None
shellcon = None
win32api = None
win32con = None
win32gui = None
win32process = None
win32security = None