1 2<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 3<html><head><title>Python: module telemetry.internal.backends.mandoline.desktop_mandoline_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.mandoline.html"><font color="#ffffff">mandoline</font></a>.desktop_mandoline_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/mandoline/desktop_mandoline_backend.py">telemetry/internal/backends/mandoline/desktop_mandoline_backend.py</a></font></td></tr></table> 13 <p><tt># Copyright 2015 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.core.exceptions.html">telemetry.core.exceptions</a><br> 24<a href="logging.html">logging</a><br> 25<a href="telemetry.internal.backends.mandoline.mandoline_browser_backend.html">telemetry.internal.backends.mandoline.mandoline_browser_backend</a><br> 26</td><td width="25%" valign=top><a href="os.html">os</a><br> 27<a href="shutil.html">shutil</a><br> 28<a href="subprocess.html">subprocess</a><br> 29</td><td width="25%" valign=top><a href="sys.html">sys</a><br> 30<a href="tempfile.html">tempfile</a><br> 31<a href="telemetry.core.util.html">telemetry.core.util</a><br> 32</td><td width="25%" valign=top></td></tr></table></td></tr></table><p> 33<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 34<tr bgcolor="#ee77aa"> 35<td colspan=3 valign=bottom> <br> 36<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr> 37 38<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> 39<td width="100%"><dl> 40<dt><font face="helvetica, arial"><a href="telemetry.internal.backends.mandoline.mandoline_browser_backend.html#MandolineBrowserBackend">telemetry.internal.backends.mandoline.mandoline_browser_backend.MandolineBrowserBackend</a>(<a href="telemetry.internal.backends.browser_backend.html#BrowserBackend">telemetry.internal.backends.browser_backend.BrowserBackend</a>) 41</font></dt><dd> 42<dl> 43<dt><font face="helvetica, arial"><a href="telemetry.internal.backends.mandoline.desktop_mandoline_backend.html#DesktopMandolineBackend">DesktopMandolineBackend</a> 44</font></dt></dl> 45</dd> 46</dl> 47 <p> 48<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 49<tr bgcolor="#ffc8d8"> 50<td colspan=3 valign=bottom> <br> 51<font color="#000000" face="helvetica, arial"><a name="DesktopMandolineBackend">class <strong>DesktopMandolineBackend</strong></a>(<a href="telemetry.internal.backends.mandoline.mandoline_browser_backend.html#MandolineBrowserBackend">telemetry.internal.backends.mandoline.mandoline_browser_backend.MandolineBrowserBackend</a>)</font></td></tr> 52 53<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> 54<td colspan=2><tt>The backend for controlling a locally-executed browser instance, on Linux<br> 55or Windows.<br> </tt></td></tr> 56<tr><td> </td> 57<td width="100%"><dl><dt>Method resolution order:</dt> 58<dd><a href="telemetry.internal.backends.mandoline.desktop_mandoline_backend.html#DesktopMandolineBackend">DesktopMandolineBackend</a></dd> 59<dd><a href="telemetry.internal.backends.mandoline.mandoline_browser_backend.html#MandolineBrowserBackend">telemetry.internal.backends.mandoline.mandoline_browser_backend.MandolineBrowserBackend</a></dd> 60<dd><a href="telemetry.internal.backends.browser_backend.html#BrowserBackend">telemetry.internal.backends.browser_backend.BrowserBackend</a></dd> 61<dd><a href="telemetry.internal.backends.app_backend.html#AppBackend">telemetry.internal.backends.app_backend.AppBackend</a></dd> 62<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> 63</dl> 64<hr> 65Methods defined here:<br> 66<dl><dt><a name="DesktopMandolineBackend-Close"><strong>Close</strong></a>(self)</dt></dl> 67 68<dl><dt><a name="DesktopMandolineBackend-GetBrowserStartupArgs"><strong>GetBrowserStartupArgs</strong></a>(self)</dt></dl> 69 70<dl><dt><a name="DesktopMandolineBackend-GetStackTrace"><strong>GetStackTrace</strong></a>(self)</dt></dl> 71 72<dl><dt><a name="DesktopMandolineBackend-GetStandardOutput"><strong>GetStandardOutput</strong></a>(self)</dt></dl> 73 74<dl><dt><a name="DesktopMandolineBackend-HasBrowserFinishedLaunching"><strong>HasBrowserFinishedLaunching</strong></a>(self)</dt></dl> 75 76<dl><dt><a name="DesktopMandolineBackend-IsBrowserRunning"><strong>IsBrowserRunning</strong></a>(self)</dt></dl> 77 78<dl><dt><a name="DesktopMandolineBackend-Start"><strong>Start</strong></a>(self)</dt></dl> 79 80<dl><dt><a name="DesktopMandolineBackend-__del__"><strong>__del__</strong></a>(self)</dt></dl> 81 82<dl><dt><a name="DesktopMandolineBackend-__init__"><strong>__init__</strong></a>(self, desktop_platform_backend, browser_options, executable, browser_directory)</dt></dl> 83 84<hr> 85Data descriptors defined here:<br> 86<dl><dt><strong>browser_directory</strong></dt> 87</dl> 88<dl><dt><strong>pid</strong></dt> 89</dl> 90<dl><dt><strong>profile_directory</strong></dt> 91</dl> 92<hr> 93Methods inherited from <a href="telemetry.internal.backends.mandoline.mandoline_browser_backend.html#MandolineBrowserBackend">telemetry.internal.backends.mandoline.mandoline_browser_backend.MandolineBrowserBackend</a>:<br> 94<dl><dt><a name="DesktopMandolineBackend-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> 95 96<dl><dt><a name="DesktopMandolineBackend-GetReplayBrowserStartupArgs"><strong>GetReplayBrowserStartupArgs</strong></a>(self)</dt></dl> 97 98<hr> 99Data descriptors inherited from <a href="telemetry.internal.backends.mandoline.mandoline_browser_backend.html#MandolineBrowserBackend">telemetry.internal.backends.mandoline.mandoline_browser_backend.MandolineBrowserBackend</a>:<br> 100<dl><dt><strong>devtools_client</strong></dt> 101</dl> 102<dl><dt><strong>supports_cpu_metrics</strong></dt> 103</dl> 104<dl><dt><strong>supports_memory_metrics</strong></dt> 105</dl> 106<dl><dt><strong>supports_power_metrics</strong></dt> 107</dl> 108<dl><dt><strong>supports_system_info</strong></dt> 109</dl> 110<dl><dt><strong>supports_tab_control</strong></dt> 111</dl> 112<dl><dt><strong>supports_tracing</strong></dt> 113</dl> 114<hr> 115Methods inherited from <a href="telemetry.internal.backends.browser_backend.html#BrowserBackend">telemetry.internal.backends.browser_backend.BrowserBackend</a>:<br> 116<dl><dt><a name="DesktopMandolineBackend-DumpMemory"><strong>DumpMemory</strong></a>(self, timeout<font color="#909090">=90</font>)</dt></dl> 117 118<dl><dt><a name="DesktopMandolineBackend-GetSystemInfo"><strong>GetSystemInfo</strong></a>(self)</dt></dl> 119 120<dl><dt><a name="DesktopMandolineBackend-IsAppRunning"><strong>IsAppRunning</strong></a>(self)</dt></dl> 121 122<dl><dt><a name="DesktopMandolineBackend-SetBrowser"><strong>SetBrowser</strong></a>(self, browser)</dt></dl> 123 124<dl><dt><a name="DesktopMandolineBackend-SetMemoryPressureNotificationsSuppressed"><strong>SetMemoryPressureNotificationsSuppressed</strong></a>(self, suppressed, timeout<font color="#909090">=90</font>)</dt></dl> 125 126<dl><dt><a name="DesktopMandolineBackend-SimulateMemoryPressureNotification"><strong>SimulateMemoryPressureNotification</strong></a>(self, pressure_level, timeout<font color="#909090">=90</font>)</dt></dl> 127 128<dl><dt><a name="DesktopMandolineBackend-StartTracing"><strong>StartTracing</strong></a>(self, trace_options, custom_categories<font color="#909090">=None</font>, timeout<font color="#909090">=90</font>)</dt></dl> 129 130<dl><dt><a name="DesktopMandolineBackend-StopTracing"><strong>StopTracing</strong></a>(self, trace_data_builder)</dt></dl> 131 132<dl><dt><a name="DesktopMandolineBackend-UploadLogsToCloudStorage"><strong>UploadLogsToCloudStorage</strong></a>(self)</dt><dd><tt>Uploading log files produce by this browser instance to cloud storage.<br> 133 <br> 134Check supports_uploading_logs before calling this method.</tt></dd></dl> 135 136<hr> 137Data descriptors inherited from <a href="telemetry.internal.backends.browser_backend.html#BrowserBackend">telemetry.internal.backends.browser_backend.BrowserBackend</a>:<br> 138<dl><dt><strong>browser</strong></dt> 139</dl> 140<dl><dt><strong>browser_type</strong></dt> 141</dl> 142<dl><dt><strong>log_file_path</strong></dt> 143</dl> 144<dl><dt><strong>profiling_controller_backend</strong></dt> 145</dl> 146<dl><dt><strong>should_ignore_certificate_errors</strong></dt> 147</dl> 148<dl><dt><strong>supports_extensions</strong></dt> 149<dd><tt>True if this browser backend supports extensions.</tt></dd> 150</dl> 151<dl><dt><strong>supports_memory_dumping</strong></dt> 152</dl> 153<dl><dt><strong>supports_overriding_memory_pressure_notifications</strong></dt> 154</dl> 155<dl><dt><strong>supports_uploading_logs</strong></dt> 156</dl> 157<dl><dt><strong>tab_list_backend</strong></dt> 158</dl> 159<dl><dt><strong>wpr_mode</strong></dt> 160</dl> 161<hr> 162Methods inherited from <a href="telemetry.internal.backends.app_backend.html#AppBackend">telemetry.internal.backends.app_backend.AppBackend</a>:<br> 163<dl><dt><a name="DesktopMandolineBackend-SetApp"><strong>SetApp</strong></a>(self, app)</dt></dl> 164 165<hr> 166Data descriptors inherited from <a href="telemetry.internal.backends.app_backend.html#AppBackend">telemetry.internal.backends.app_backend.AppBackend</a>:<br> 167<dl><dt><strong>__dict__</strong></dt> 168<dd><tt>dictionary for instance variables (if defined)</tt></dd> 169</dl> 170<dl><dt><strong>__weakref__</strong></dt> 171<dd><tt>list of weak references to the object (if defined)</tt></dd> 172</dl> 173<dl><dt><strong>app</strong></dt> 174</dl> 175<dl><dt><strong>app_type</strong></dt> 176</dl> 177<dl><dt><strong>platform_backend</strong></dt> 178</dl> 179</td></tr></table></td></tr></table> 180</body></html>