telemetry.internal.browser.browser | index telemetry/internal/browser/browser.py

`# Copyright 2012 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
`` |  |
telemetry.internal.app telemetry.internal.backends.browser_backend telemetry.internal.browser.browser_credentials catapult_base.cloud_storage | telemetry.decorators telemetry.internal.util.exception_formatter telemetry.core.exceptions telemetry.internal.browser.extension_dict | logging telemetry.core.profiling_controller sys telemetry.internal.browser.tab_list | telemetry.internal.browser.web_contents

Classes
`` |  | 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