| |
- telemetry.internal.app.App(__builtin__.object)
-
- Browser
class Browser(telemetry.internal.app.App) |
|
A running browser instance that can be controlled in a limited way.
To create a browser instance, use browser_finder.FindBrowser.
Be sure to clean up after yourself by calling Close() when you are done with
the browser. Or better yet:
browser_to_create = FindBrowser(options)
with browser_to_create.Create(options) as browser:
... do all your operations on browser here |
|
- Method resolution order:
- Browser
- telemetry.internal.app.App
- __builtin__.object
Methods defined here:
- Close(self)
- Closes this browser.
- DumpMemory(self, timeout=90)
- GetStackTrace(self)
- GetStandardOutput(self)
- GetSystemInfo(self)
- Returns low-level information about the system, if available.
See the documentation of the SystemInfo class for more details.
- SetMemoryPressureNotificationsSuppressed(self, suppressed, timeout=90)
- SimulateMemoryPressureNotification(self, pressure_level, timeout=90)
- __init__(self, backend, platform_backend, credentials_path)
Data descriptors defined here:
- browser_type
- cpu_stats
- Returns a dict of cpu statistics for the system.
{ 'Browser': {
'CpuProcessTime': S,
'TotalTime': T
},
'Gpu': {
'CpuProcessTime': S,
'TotalTime': T
},
'Renderer': {
'CpuProcessTime': S,
'TotalTime': T
}
}
Any of the above keys may be missing on a per-platform basis.
- extensions
- foreground_tab
- memory_stats
- Returns a dict of memory statistics for the browser:
{ 'Browser': {
'VM': R,
'VMPeak': S,
'WorkingSetSize': T,
'WorkingSetSizePeak': U,
'ProportionalSetSize': V,
'PrivateDirty': W
},
'Gpu': {
'VM': R,
'VMPeak': S,
'WorkingSetSize': T,
'WorkingSetSizePeak': U,
'ProportionalSetSize': V,
'PrivateDirty': W
},
'Renderer': {
'VM': R,
'VMPeak': S,
'WorkingSetSize': T,
'WorkingSetSizePeak': U,
'ProportionalSetSize': V,
'PrivateDirty': W
},
'SystemCommitCharge': X,
'SystemTotalPhysicalMemory': Y,
'ProcessCount': Z,
}
Any of the above keys may be missing on a per-platform basis.
- profiling_controller
- supports_cpu_metrics
- supports_extensions
- supports_memory_dumping
- supports_memory_metrics
- supports_overriding_memory_pressure_notifications
- supports_power_metrics
- supports_system_info
- supports_tab_control
- tabs
Methods inherited from telemetry.internal.app.App:
- __enter__(self)
- __exit__(self, *args)
Data descriptors inherited from telemetry.internal.app.App:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
- app_type
- platform
| |