Home | History | Annotate | Download | only in pydoc
      1 
      2 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
      3 <html><head><title>Python: module telemetry.internal.backends.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>&nbsp;<br>
     10 <font color="#ffffff" face="helvetica, arial">&nbsp;<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>.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/browser_backend.py">telemetry/internal/backends/browser_backend.py</a></font></td></tr></table>
     13     <p><tt>#&nbsp;Copyright&nbsp;2013&nbsp;The&nbsp;Chromium&nbsp;Authors.&nbsp;All&nbsp;rights&nbsp;reserved.<br>
     14 #&nbsp;Use&nbsp;of&nbsp;this&nbsp;source&nbsp;code&nbsp;is&nbsp;governed&nbsp;by&nbsp;a&nbsp;BSD-style&nbsp;license&nbsp;that&nbsp;can&nbsp;be<br>
     15 #&nbsp;found&nbsp;in&nbsp;the&nbsp;LICENSE&nbsp;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>&nbsp;<br>
     20 <font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
     21     
     22 <tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
     23 <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="telemetry.internal.backends.app_backend.html">telemetry.internal.backends.app_backend</a><br>
     24 <a href="catapult_base.cloud_storage.html">catapult_base.cloud_storage</a><br>
     25 </td><td width="25%" valign=top><a href="telemetry.decorators.html">telemetry.decorators</a><br>
     26 <a href="telemetry.core.platform.html">telemetry.core.platform</a><br>
     27 </td><td width="25%" valign=top><a href="telemetry.internal.platform.profiling_controller_backend.html">telemetry.internal.platform.profiling_controller_backend</a><br>
     28 <a href="sys.html">sys</a><br>
     29 </td><td width="25%" valign=top><a href="uuid.html">uuid</a><br>
     30 <a href="telemetry.internal.browser.web_contents.html">telemetry.internal.browser.web_contents</a><br>
     31 </td></tr></table></td></tr></table><p>
     32 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
     33 <tr bgcolor="#ee77aa">
     34 <td colspan=3 valign=bottom>&nbsp;<br>
     35 <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
     36     
     37 <tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
     38 <td width="100%"><dl>
     39 <dt><font face="helvetica, arial"><a href="exceptions.html#Exception">exceptions.Exception</a>(<a href="exceptions.html#BaseException">exceptions.BaseException</a>)
     40 </font></dt><dd>
     41 <dl>
     42 <dt><font face="helvetica, arial"><a href="telemetry.internal.backends.browser_backend.html#ExtensionsNotSupportedException">ExtensionsNotSupportedException</a>
     43 </font></dt></dl>
     44 </dd>
     45 <dt><font face="helvetica, arial"><a href="telemetry.internal.backends.app_backend.html#AppBackend">telemetry.internal.backends.app_backend.AppBackend</a>(<a href="__builtin__.html#object">__builtin__.object</a>)
     46 </font></dt><dd>
     47 <dl>
     48 <dt><font face="helvetica, arial"><a href="telemetry.internal.backends.browser_backend.html#BrowserBackend">BrowserBackend</a>
     49 </font></dt></dl>
     50 </dd>
     51 </dl>
     52  <p>
     53 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
     54 <tr bgcolor="#ffc8d8">
     55 <td colspan=3 valign=bottom>&nbsp;<br>
     56 <font color="#000000" face="helvetica, arial"><a name="BrowserBackend">class <strong>BrowserBackend</strong></a>(<a href="telemetry.internal.backends.app_backend.html#AppBackend">telemetry.internal.backends.app_backend.AppBackend</a>)</font></td></tr>
     57     
     58 <tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
     59 <td colspan=2><tt>A&nbsp;base&nbsp;class&nbsp;for&nbsp;browser&nbsp;backends.<br>&nbsp;</tt></td></tr>
     60 <tr><td>&nbsp;</td>
     61 <td width="100%"><dl><dt>Method resolution order:</dt>
     62 <dd><a href="telemetry.internal.backends.browser_backend.html#BrowserBackend">BrowserBackend</a></dd>
     63 <dd><a href="telemetry.internal.backends.app_backend.html#AppBackend">telemetry.internal.backends.app_backend.AppBackend</a></dd>
     64 <dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
     65 </dl>
     66 <hr>
     67 Methods defined here:<br>
     68 <dl><dt><a name="BrowserBackend-DumpMemory"><strong>DumpMemory</strong></a>(self, timeout<font color="#909090">=90</font>)</dt></dl>
     69 
     70 <dl><dt><a name="BrowserBackend-GetStackTrace"><strong>GetStackTrace</strong></a>(self)</dt></dl>
     71 
     72 <dl><dt><a name="BrowserBackend-GetStandardOutput"><strong>GetStandardOutput</strong></a>(self)</dt></dl>
     73 
     74 <dl><dt><a name="BrowserBackend-GetSystemInfo"><strong>GetSystemInfo</strong></a>(self)</dt></dl>
     75 
     76 <dl><dt><a name="BrowserBackend-IsAppRunning"><strong>IsAppRunning</strong></a>(self)</dt></dl>
     77 
     78 <dl><dt><a name="BrowserBackend-IsBrowserRunning"><strong>IsBrowserRunning</strong></a>(self)</dt></dl>
     79 
     80 <dl><dt><a name="BrowserBackend-SetBrowser"><strong>SetBrowser</strong></a>(self, browser)</dt></dl>
     81 
     82 <dl><dt><a name="BrowserBackend-SetMemoryPressureNotificationsSuppressed"><strong>SetMemoryPressureNotificationsSuppressed</strong></a>(self, suppressed, timeout<font color="#909090">=90</font>)</dt></dl>
     83 
     84 <dl><dt><a name="BrowserBackend-SimulateMemoryPressureNotification"><strong>SimulateMemoryPressureNotification</strong></a>(self, pressure_level, timeout<font color="#909090">=90</font>)</dt></dl>
     85 
     86 <dl><dt><a name="BrowserBackend-Start"><strong>Start</strong></a>(self)</dt></dl>
     87 
     88 <dl><dt><a name="BrowserBackend-StartTracing"><strong>StartTracing</strong></a>(self, trace_options, custom_categories<font color="#909090">=None</font>, timeout<font color="#909090">=90</font>)</dt></dl>
     89 
     90 <dl><dt><a name="BrowserBackend-StopTracing"><strong>StopTracing</strong></a>(self, trace_data_builder)</dt></dl>
     91 
     92 <dl><dt><a name="BrowserBackend-UploadLogsToCloudStorage"><strong>UploadLogsToCloudStorage</strong></a>(self)</dt><dd><tt>Uploading&nbsp;log&nbsp;files&nbsp;produce&nbsp;by&nbsp;this&nbsp;browser&nbsp;instance&nbsp;to&nbsp;cloud&nbsp;storage.<br>
     93 &nbsp;<br>
     94 Check&nbsp;supports_uploading_logs&nbsp;before&nbsp;calling&nbsp;this&nbsp;method.</tt></dd></dl>
     95 
     96 <dl><dt><a name="BrowserBackend-__init__"><strong>__init__</strong></a>(self, platform_backend, supports_extensions, browser_options, tab_list_backend)</dt></dl>
     97 
     98 <hr>
     99 Data descriptors defined here:<br>
    100 <dl><dt><strong>browser</strong></dt>
    101 </dl>
    102 <dl><dt><strong>browser_type</strong></dt>
    103 </dl>
    104 <dl><dt><strong>log_file_path</strong></dt>
    105 </dl>
    106 <dl><dt><strong>profiling_controller_backend</strong></dt>
    107 </dl>
    108 <dl><dt><strong>should_ignore_certificate_errors</strong></dt>
    109 </dl>
    110 <dl><dt><strong>supports_cpu_metrics</strong></dt>
    111 </dl>
    112 <dl><dt><strong>supports_extensions</strong></dt>
    113 <dd><tt>True&nbsp;if&nbsp;this&nbsp;browser&nbsp;backend&nbsp;supports&nbsp;extensions.</tt></dd>
    114 </dl>
    115 <dl><dt><strong>supports_memory_dumping</strong></dt>
    116 </dl>
    117 <dl><dt><strong>supports_memory_metrics</strong></dt>
    118 </dl>
    119 <dl><dt><strong>supports_overriding_memory_pressure_notifications</strong></dt>
    120 </dl>
    121 <dl><dt><strong>supports_power_metrics</strong></dt>
    122 </dl>
    123 <dl><dt><strong>supports_system_info</strong></dt>
    124 </dl>
    125 <dl><dt><strong>supports_tab_control</strong></dt>
    126 </dl>
    127 <dl><dt><strong>supports_tracing</strong></dt>
    128 </dl>
    129 <dl><dt><strong>supports_uploading_logs</strong></dt>
    130 </dl>
    131 <dl><dt><strong>tab_list_backend</strong></dt>
    132 </dl>
    133 <dl><dt><strong>wpr_mode</strong></dt>
    134 </dl>
    135 <hr>
    136 Methods inherited from <a href="telemetry.internal.backends.app_backend.html#AppBackend">telemetry.internal.backends.app_backend.AppBackend</a>:<br>
    137 <dl><dt><a name="BrowserBackend-Close"><strong>Close</strong></a>(self)</dt></dl>
    138 
    139 <dl><dt><a name="BrowserBackend-SetApp"><strong>SetApp</strong></a>(self, app)</dt></dl>
    140 
    141 <dl><dt><a name="BrowserBackend-__del__"><strong>__del__</strong></a>(self)</dt></dl>
    142 
    143 <hr>
    144 Data descriptors inherited from <a href="telemetry.internal.backends.app_backend.html#AppBackend">telemetry.internal.backends.app_backend.AppBackend</a>:<br>
    145 <dl><dt><strong>__dict__</strong></dt>
    146 <dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
    147 </dl>
    148 <dl><dt><strong>__weakref__</strong></dt>
    149 <dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
    150 </dl>
    151 <dl><dt><strong>app</strong></dt>
    152 </dl>
    153 <dl><dt><strong>app_type</strong></dt>
    154 </dl>
    155 <dl><dt><strong>pid</strong></dt>
    156 </dl>
    157 <dl><dt><strong>platform_backend</strong></dt>
    158 </dl>
    159 </td></tr></table> <p>
    160 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
    161 <tr bgcolor="#ffc8d8">
    162 <td colspan=3 valign=bottom>&nbsp;<br>
    163 <font color="#000000" face="helvetica, arial"><a name="ExtensionsNotSupportedException">class <strong>ExtensionsNotSupportedException</strong></a>(<a href="exceptions.html#Exception">exceptions.Exception</a>)</font></td></tr>
    164     
    165 <tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
    166 <td width="100%"><dl><dt>Method resolution order:</dt>
    167 <dd><a href="telemetry.internal.backends.browser_backend.html#ExtensionsNotSupportedException">ExtensionsNotSupportedException</a></dd>
    168 <dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd>
    169 <dd><a href="exceptions.html#BaseException">exceptions.BaseException</a></dd>
    170 <dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
    171 </dl>
    172 <hr>
    173 Data descriptors defined here:<br>
    174 <dl><dt><strong>__weakref__</strong></dt>
    175 <dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
    176 </dl>
    177 <hr>
    178 Methods inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
    179 <dl><dt><a name="ExtensionsNotSupportedException-__init__"><strong>__init__</strong></a>(...)</dt><dd><tt>x.<a href="#ExtensionsNotSupportedException-__init__">__init__</a>(...)&nbsp;initializes&nbsp;x;&nbsp;see&nbsp;help(type(x))&nbsp;for&nbsp;signature</tt></dd></dl>
    180 
    181 <hr>
    182 Data and other attributes inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
    183 <dl><dt><strong>__new__</strong> = &lt;built-in method __new__ of type object&gt;<dd><tt>T.<a href="#ExtensionsNotSupportedException-__new__">__new__</a>(S,&nbsp;...)&nbsp;-&gt;&nbsp;a&nbsp;new&nbsp;object&nbsp;with&nbsp;type&nbsp;S,&nbsp;a&nbsp;subtype&nbsp;of&nbsp;T</tt></dl>
    184 
    185 <hr>
    186 Methods inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br>
    187 <dl><dt><a name="ExtensionsNotSupportedException-__delattr__"><strong>__delattr__</strong></a>(...)</dt><dd><tt>x.<a href="#ExtensionsNotSupportedException-__delattr__">__delattr__</a>('name')&nbsp;&lt;==&gt;&nbsp;del&nbsp;x.name</tt></dd></dl>
    188 
    189 <dl><dt><a name="ExtensionsNotSupportedException-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#ExtensionsNotSupportedException-__getattribute__">__getattribute__</a>('name')&nbsp;&lt;==&gt;&nbsp;x.name</tt></dd></dl>
    190 
    191 <dl><dt><a name="ExtensionsNotSupportedException-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#ExtensionsNotSupportedException-__getitem__">__getitem__</a>(y)&nbsp;&lt;==&gt;&nbsp;x[y]</tt></dd></dl>
    192 
    193 <dl><dt><a name="ExtensionsNotSupportedException-__getslice__"><strong>__getslice__</strong></a>(...)</dt><dd><tt>x.<a href="#ExtensionsNotSupportedException-__getslice__">__getslice__</a>(i,&nbsp;j)&nbsp;&lt;==&gt;&nbsp;x[i:j]<br>
    194 &nbsp;<br>
    195 Use&nbsp;of&nbsp;negative&nbsp;indices&nbsp;is&nbsp;not&nbsp;supported.</tt></dd></dl>
    196 
    197 <dl><dt><a name="ExtensionsNotSupportedException-__reduce__"><strong>__reduce__</strong></a>(...)</dt></dl>
    198 
    199 <dl><dt><a name="ExtensionsNotSupportedException-__repr__"><strong>__repr__</strong></a>(...)</dt><dd><tt>x.<a href="#ExtensionsNotSupportedException-__repr__">__repr__</a>()&nbsp;&lt;==&gt;&nbsp;repr(x)</tt></dd></dl>
    200 
    201 <dl><dt><a name="ExtensionsNotSupportedException-__setattr__"><strong>__setattr__</strong></a>(...)</dt><dd><tt>x.<a href="#ExtensionsNotSupportedException-__setattr__">__setattr__</a>('name',&nbsp;value)&nbsp;&lt;==&gt;&nbsp;x.name&nbsp;=&nbsp;value</tt></dd></dl>
    202 
    203 <dl><dt><a name="ExtensionsNotSupportedException-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl>
    204 
    205 <dl><dt><a name="ExtensionsNotSupportedException-__str__"><strong>__str__</strong></a>(...)</dt><dd><tt>x.<a href="#ExtensionsNotSupportedException-__str__">__str__</a>()&nbsp;&lt;==&gt;&nbsp;str(x)</tt></dd></dl>
    206 
    207 <dl><dt><a name="ExtensionsNotSupportedException-__unicode__"><strong>__unicode__</strong></a>(...)</dt></dl>
    208 
    209 <hr>
    210 Data descriptors inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br>
    211 <dl><dt><strong>__dict__</strong></dt>
    212 </dl>
    213 <dl><dt><strong>args</strong></dt>
    214 </dl>
    215 <dl><dt><strong>message</strong></dt>
    216 </dl>
    217 </td></tr></table></td></tr></table>
    218 </body></html>