1 2 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 3 <html><head><title>Python: module telemetry.internal.backends.chrome.desktop_browser_backend</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 href="telemetry.html"><font color="#ffffff">telemetry</font></a>.<a href="telemetry.internal.html"><font color="#ffffff">internal</font></a>.<a href="telemetry.internal.backends.html"><font color="#ffffff">backends</font></a>.<a href="telemetry.internal.backends.chrome.html"><font color="#ffffff">chrome</font></a>.desktop_browser_backend</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/backends/chrome/desktop_browser_backend.py">telemetry/internal/backends/chrome/desktop_browser_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=top><a href="telemetry.internal.util.binary_manager.html">telemetry.internal.util.binary_manager</a><br> 24 <a href="telemetry.internal.backends.browser_backend.html">telemetry.internal.backends.browser_backend</a><br> 25 <a href="telemetry.internal.backends.chrome.chrome_browser_backend.html">telemetry.internal.backends.chrome.chrome_browser_backend</a><br> 26 <a href="catapult_base.cloud_storage.html">catapult_base.cloud_storage</a><br> 27 <a href="datetime.html">datetime</a><br> 28 </td><td width="25%" valign=top><a href="telemetry.core.exceptions.html">telemetry.core.exceptions</a><br> 29 <a href="glob.html">glob</a><br> 30 <a href="heapq.html">heapq</a><br> 31 <a href="logging.html">logging</a><br> 32 <a href="os.html">os</a><br> 33 </td><td width="25%" valign=top><a href="telemetry.internal.util.path.html">telemetry.internal.util.path</a><br> 34 <a href="random.html">random</a><br> 35 <a href="re.html">re</a><br> 36 <a href="shutil.html">shutil</a><br> 37 <a href="subprocess.html">subprocess</a><br> 38 </td><td width="25%" valign=top><a href="sys.html">sys</a><br> 39 <a href="tempfile.html">tempfile</a><br> 40 <a href="time.html">time</a><br> 41 <a href="telemetry.core.util.html">telemetry.core.util</a><br> 42 </td></tr></table></td></tr></table><p> 43 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 44 <tr bgcolor="#ee77aa"> 45 <td colspan=3 valign=bottom> <br> 46 <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr> 47 48 <tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> 49 <td width="100%"><dl> 50 <dt><font face="helvetica, arial"><a href="telemetry.internal.backends.chrome.chrome_browser_backend.html#ChromeBrowserBackend">telemetry.internal.backends.chrome.chrome_browser_backend.ChromeBrowserBackend</a>(<a href="telemetry.internal.backends.browser_backend.html#BrowserBackend">telemetry.internal.backends.browser_backend.BrowserBackend</a>) 51 </font></dt><dd> 52 <dl> 53 <dt><font face="helvetica, arial"><a href="telemetry.internal.backends.chrome.desktop_browser_backend.html#DesktopBrowserBackend">DesktopBrowserBackend</a> 54 </font></dt></dl> 55 </dd> 56 </dl> 57 <p> 58 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 59 <tr bgcolor="#ffc8d8"> 60 <td colspan=3 valign=bottom> <br> 61 <font color="#000000" face="helvetica, arial"><a name="DesktopBrowserBackend">class <strong>DesktopBrowserBackend</strong></a>(<a href="telemetry.internal.backends.chrome.chrome_browser_backend.html#ChromeBrowserBackend">telemetry.internal.backends.chrome.chrome_browser_backend.ChromeBrowserBackend</a>)</font></td></tr> 62 63 <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> 64 <td colspan=2><tt>The backend for controlling a locally-executed browser instance, on Linux,<br> 65 Mac or Windows.<br> </tt></td></tr> 66 <tr><td> </td> 67 <td width="100%"><dl><dt>Method resolution order:</dt> 68 <dd><a href="telemetry.internal.backends.chrome.desktop_browser_backend.html#DesktopBrowserBackend">DesktopBrowserBackend</a></dd> 69 <dd><a href="telemetry.internal.backends.chrome.chrome_browser_backend.html#ChromeBrowserBackend">telemetry.internal.backends.chrome.chrome_browser_backend.ChromeBrowserBackend</a></dd> 70 <dd><a href="telemetry.internal.backends.browser_backend.html#BrowserBackend">telemetry.internal.backends.browser_backend.BrowserBackend</a></dd> 71 <dd><a href="telemetry.internal.backends.app_backend.html#AppBackend">telemetry.internal.backends.app_backend.AppBackend</a></dd> 72 <dd><a href="__builtin__.html#object">__builtin__.object</a></dd> 73 </dl> 74 <hr> 75 Methods defined here:<br> 76 <dl><dt><a name="DesktopBrowserBackend-Close"><strong>Close</strong></a>(self)</dt></dl> 77 78 <dl><dt><a name="DesktopBrowserBackend-GetBrowserStartupArgs"><strong>GetBrowserStartupArgs</strong></a>(self)</dt></dl> 79 80 <dl><dt><a name="DesktopBrowserBackend-GetStackTrace"><strong>GetStackTrace</strong></a>(self)</dt></dl> 81 82 <dl><dt><a name="DesktopBrowserBackend-GetStandardOutput"><strong>GetStandardOutput</strong></a>(self)</dt></dl> 83 84 <dl><dt><a name="DesktopBrowserBackend-HasBrowserFinishedLaunching"><strong>HasBrowserFinishedLaunching</strong></a>(self)</dt></dl> 85 86 <dl><dt><a name="DesktopBrowserBackend-IsBrowserRunning"><strong>IsBrowserRunning</strong></a>(self)</dt></dl> 87 88 <dl><dt><a name="DesktopBrowserBackend-Start"><strong>Start</strong></a>(self)</dt></dl> 89 90 <dl><dt><a name="DesktopBrowserBackend-__del__"><strong>__del__</strong></a>(self)</dt></dl> 91 92 <dl><dt><a name="DesktopBrowserBackend-__init__"><strong>__init__</strong></a>(self, desktop_platform_backend, browser_options, executable, flash_path, is_content_shell, browser_directory, output_profile_path, extensions_to_load)</dt></dl> 93 94 <hr> 95 Data descriptors defined here:<br> 96 <dl><dt><strong>browser_directory</strong></dt> 97 </dl> 98 <dl><dt><strong>log_file_path</strong></dt> 99 </dl> 100 <dl><dt><strong>pid</strong></dt> 101 </dl> 102 <dl><dt><strong>profile_directory</strong></dt> 103 </dl> 104 <dl><dt><strong>supports_uploading_logs</strong></dt> 105 </dl> 106 <hr> 107 Methods inherited from <a href="telemetry.internal.backends.chrome.chrome_browser_backend.html#ChromeBrowserBackend">telemetry.internal.backends.chrome.chrome_browser_backend.ChromeBrowserBackend</a>:<br> 108 <dl><dt><a name="DesktopBrowserBackend-DumpMemory"><strong>DumpMemory</strong></a>(self, timeout<font color="#909090">=90</font>)</dt></dl> 109 110 <dl><dt><a name="DesktopBrowserBackend-GetProcessName"><strong>GetProcessName</strong></a>(self, cmd_line)</dt><dd><tt>Returns a user-friendly name for the process of the given |cmd_line|.</tt></dd></dl> 111 112 <dl><dt><a name="DesktopBrowserBackend-GetReplayBrowserStartupArgs"><strong>GetReplayBrowserStartupArgs</strong></a>(self)</dt></dl> 113 114 <dl><dt><a name="DesktopBrowserBackend-GetSystemInfo"><strong>GetSystemInfo</strong></a>(self)</dt></dl> 115 116 <dl><dt><a name="DesktopBrowserBackend-SetMemoryPressureNotificationsSuppressed"><strong>SetMemoryPressureNotificationsSuppressed</strong></a>(self, suppressed, timeout<font color="#909090">=90</font>)</dt></dl> 117 118 <dl><dt><a name="DesktopBrowserBackend-SimulateMemoryPressureNotification"><strong>SimulateMemoryPressureNotification</strong></a>(self, pressure_level, timeout<font color="#909090">=90</font>)</dt></dl> 119 120 <dl><dt><a name="DesktopBrowserBackend-StartTracing"><strong>StartTracing</strong></a>(self, trace_options, custom_categories<font color="#909090">=None</font>, timeout<font color="#909090">=90</font>)</dt><dd><tt>Args:<br> 121 trace_options: An tracing_options.TracingOptions instance.<br> 122 custom_categories: An optional string containing a list of<br> 123 comma separated categories that will be traced<br> 124 instead of the default category set. Example: use<br> 125 "webkit,cc,disabled-by-default-cc.debug" to trace only<br> 126 those three event categories.</tt></dd></dl> 127 128 <dl><dt><a name="DesktopBrowserBackend-StopTracing"><strong>StopTracing</strong></a>(self, trace_data_builder)</dt></dl> 129 130 <hr> 131 Data descriptors inherited from <a href="telemetry.internal.backends.chrome.chrome_browser_backend.html#ChromeBrowserBackend">telemetry.internal.backends.chrome.chrome_browser_backend.ChromeBrowserBackend</a>:<br> 132 <dl><dt><strong>devtools_client</strong></dt> 133 </dl> 134 <dl><dt><strong>extension_backend</strong></dt> 135 </dl> 136 <dl><dt><strong>supports_cpu_metrics</strong></dt> 137 </dl> 138 <dl><dt><strong>supports_memory_dumping</strong></dt> 139 </dl> 140 <dl><dt><strong>supports_memory_metrics</strong></dt> 141 </dl> 142 <dl><dt><strong>supports_overriding_memory_pressure_notifications</strong></dt> 143 </dl> 144 <dl><dt><strong>supports_power_metrics</strong></dt> 145 </dl> 146 <dl><dt><strong>supports_system_info</strong></dt> 147 </dl> 148 <dl><dt><strong>supports_tab_control</strong></dt> 149 </dl> 150 <dl><dt><strong>supports_tracing</strong></dt> 151 </dl> 152 <hr> 153 Methods inherited from <a href="telemetry.internal.backends.browser_backend.html#BrowserBackend">telemetry.internal.backends.browser_backend.BrowserBackend</a>:<br> 154 <dl><dt><a name="DesktopBrowserBackend-IsAppRunning"><strong>IsAppRunning</strong></a>(self)</dt></dl> 155 156 <dl><dt><a name="DesktopBrowserBackend-SetBrowser"><strong>SetBrowser</strong></a>(self, browser)</dt></dl> 157 158 <dl><dt><a name="DesktopBrowserBackend-UploadLogsToCloudStorage"><strong>UploadLogsToCloudStorage</strong></a>(self)</dt><dd><tt>Uploading log files produce by this browser instance to cloud storage.<br> 159 <br> 160 Check supports_uploading_logs before calling this method.</tt></dd></dl> 161 162 <hr> 163 Data descriptors inherited from <a href="telemetry.internal.backends.browser_backend.html#BrowserBackend">telemetry.internal.backends.browser_backend.BrowserBackend</a>:<br> 164 <dl><dt><strong>browser</strong></dt> 165 </dl> 166 <dl><dt><strong>browser_type</strong></dt> 167 </dl> 168 <dl><dt><strong>profiling_controller_backend</strong></dt> 169 </dl> 170 <dl><dt><strong>should_ignore_certificate_errors</strong></dt> 171 </dl> 172 <dl><dt><strong>supports_extensions</strong></dt> 173 <dd><tt>True if this browser backend supports extensions.</tt></dd> 174 </dl> 175 <dl><dt><strong>tab_list_backend</strong></dt> 176 </dl> 177 <dl><dt><strong>wpr_mode</strong></dt> 178 </dl> 179 <hr> 180 Methods inherited from <a href="telemetry.internal.backends.app_backend.html#AppBackend">telemetry.internal.backends.app_backend.AppBackend</a>:<br> 181 <dl><dt><a name="DesktopBrowserBackend-SetApp"><strong>SetApp</strong></a>(self, app)</dt></dl> 182 183 <hr> 184 Data descriptors inherited from <a href="telemetry.internal.backends.app_backend.html#AppBackend">telemetry.internal.backends.app_backend.AppBackend</a>:<br> 185 <dl><dt><strong>__dict__</strong></dt> 186 <dd><tt>dictionary for instance variables (if defined)</tt></dd> 187 </dl> 188 <dl><dt><strong>__weakref__</strong></dt> 189 <dd><tt>list of weak references to the object (if defined)</tt></dd> 190 </dl> 191 <dl><dt><strong>app</strong></dt> 192 </dl> 193 <dl><dt><strong>app_type</strong></dt> 194 </dl> 195 <dl><dt><strong>platform_backend</strong></dt> 196 </dl> 197 </td></tr></table></td></tr></table><p> 198 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 199 <tr bgcolor="#eeaa77"> 200 <td colspan=3 valign=bottom> <br> 201 <font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr> 202 203 <tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td> 204 <td width="100%"><dl><dt><a name="-ParseCrashpadDateTime"><strong>ParseCrashpadDateTime</strong></a>(date_time_str)</dt></dl> 205 </td></tr></table> 206 </body></html>