| OLD | NEW |
| (Empty) | |
| 1 |
| 2 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| 3 <html><head><title>Python: module telemetry.core.browser</title> |
| 4 </head><body bgcolor="#f0f0f8"> |
| 5 |
| 6 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> |
| 7 <tr bgcolor="#7799ee"> |
| 8 <td valign=bottom> <br> |
| 9 <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a hre
f="telemetry.html"><font color="#ffffff">telemetry</font></a>.<a href="telemetry
.core.html"><font color="#ffffff">core</font></a>.browser</strong></big></big></
font></td |
| 10 ><td align=right valign=bottom |
| 11 ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href=
"file:/Users/nduca/Local/chrome/src/tools/telemetry/telemetry/core/browser.py">/
Users/nduca/Local/chrome/src/tools/telemetry/telemetry/core/browser.py</a></font
></td></tr></table> |
| 12 <p><tt># Copyright (c) 2012 The Chromium Autho
rs. All rights reserved.<br> |
| 13 # Use of this source code is governed by
a BSD-style license that can be<br> |
| 14 # found in the LICENSE file.</tt></p> |
| 15 <p> |
| 16 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 17 <tr bgcolor="#aa55cc"> |
| 18 <td colspan=3 valign=bottom> <br> |
| 19 <font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big
></font></td></tr> |
| 20 |
| 21 <tr><td bgcolor="#aa55cc"><tt> </tt></td><td>
</td> |
| 22 <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=t
op><a href="telemetry.core.chrome.browser_backend.html">telemetry.core.chrome.br
owser_backend</a><br> |
| 23 <a href="telemetry.core.browser_credentials.html">telemetry.core.browser_credent
ials</a><br> |
| 24 <a href="telemetry.core.extension_dict.html">telemetry.core.extension_dict</a><b
r> |
| 25 </td><td width="25%" valign=top><a href="os.html">os</a><br> |
| 26 <a href="telemetry.core.platform.html">telemetry.core.platform</a><br> |
| 27 <a href="telemetry.core.platform.profiler.profiler_finder.html">telemetry.core.p
latform.profiler.profiler_finder</a><br> |
| 28 </td><td width="25%" valign=top><a href="telemetry.core.tab_list.html">telemetry
.core.tab_list</a><br> |
| 29 <a href="telemetry.core.temporary_http_server.html">telemetry.core.temporary_htt
p_server</a><br> |
| 30 <a href="telemetry.core.wpr_modes.html">telemetry.core.wpr_modes</a><br> |
| 31 </td><td width="25%" valign=top><a href="telemetry.core.wpr_server.html">telemet
ry.core.wpr_server</a><br> |
| 32 </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="__builtin__.html#object">__builtin__.
object</a> |
| 41 </font></dt><dd> |
| 42 <dl> |
| 43 <dt><font face="helvetica, arial"><a href="telemetry.core.browser.html#Browser">
Browser</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="Browser">class <strong>Br
owser</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</fo
nt></td></tr> |
| 52 |
| 53 <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> |
| 54 <td colspan=2><tt>A running browser instance that can&n
bsp;be controlled in a limited way.<br> |
| 55 <br> |
| 56 To create a browser instance, use browser_finder.F
indBrowser.<br> |
| 57 <br> |
| 58 Be sure to clean up after yourself by ca
lling <a href="#Browser-Close">Close</a>() when you are 
;done with<br> |
| 59 the browser. Or better yet:<br> |
| 60 browser_to_create = FindBrowser(options)<br> |
| 61 with browser_to_create.Create() as browser:<br> |
| 62 ... do all your operations on&n
bsp;browser here<br> </tt></td></tr> |
| 63 <tr><td> </td> |
| 64 <td width="100%">Methods defined here:<br> |
| 65 <dl><dt><a name="Browser-Close"><strong>Close</strong></a>(self)</dt><dd><tt>Clo
ses this browser.</tt></dd></dl> |
| 66 |
| 67 <dl><dt><a name="Browser-GetStandardOutput"><strong>GetStandardOutput</strong></
a>(self)</dt></dl> |
| 68 |
| 69 <dl><dt><a name="Browser-GetTraceResultAndReset"><strong>GetTraceResultAndReset<
/strong></a>(self)</dt><dd><tt>Returns the result of the&nbs
p;trace, as TraceResult <a href="__builtin__.html#object">object<
/a>.</tt></dd></dl> |
| 70 |
| 71 <dl><dt><a name="Browser-SetHTTPServerDirectories"><strong>SetHTTPServerDirector
ies</strong></a>(self, paths)</dt><dd><tt>Returns True if the&nbs
p;HTTP server was started, False otherwise.</tt></dd></
dl> |
| 72 |
| 73 <dl><dt><a name="Browser-SetReplayArchivePath"><strong>SetReplayArchivePath</str
ong></a>(self, archive_path, append_to_existing_wpr<font color="#909090">=False<
/font>)</dt></dl> |
| 74 |
| 75 <dl><dt><a name="Browser-StartProfiling"><strong>StartProfiling</strong></a>(sel
f, options, base_output_file)</dt><dd><tt>Starts profiling using
|options|.profiler_tool. Results are saved to<br> |
| 76 |base_output_file|.<process_name>.</tt></dd></dl> |
| 77 |
| 78 <dl><dt><a name="Browser-StartTracing"><strong>StartTracing</strong></a>(self, c
ustom_categories<font color="#909090">=None</font>)</dt></dl> |
| 79 |
| 80 <dl><dt><a name="Browser-StopProfiling"><strong>StopProfiling</strong></a>(self)
</dt><dd><tt>Stops all active profilers and saves
their results.</tt></dd></dl> |
| 81 |
| 82 <dl><dt><a name="Browser-StopTracing"><strong>StopTracing</strong></a>(self)</dt
></dl> |
| 83 |
| 84 <dl><dt><a name="Browser-__enter__"><strong>__enter__</strong></a>(self)</dt></d
l> |
| 85 |
| 86 <dl><dt><a name="Browser-__exit__"><strong>__exit__</strong></a>(self, *args)</d
t></dl> |
| 87 |
| 88 <dl><dt><a name="Browser-__init__"><strong>__init__</strong></a>(self, backend,
platform_backend)</dt></dl> |
| 89 |
| 90 <dl><dt><a name="Browser-is_profiler_active"><strong>is_profiler_active</strong>
</a>(self, profiler_name)</dt></dl> |
| 91 |
| 92 <hr> |
| 93 Data descriptors defined here:<br> |
| 94 <dl><dt><strong>__dict__</strong></dt> |
| 95 <dd><tt>dictionary for instance variables (if defined)<
/tt></dd> |
| 96 </dl> |
| 97 <dl><dt><strong>__weakref__</strong></dt> |
| 98 <dd><tt>list of weak references to the object 
;(if defined)</tt></dd> |
| 99 </dl> |
| 100 <dl><dt><strong>browser_type</strong></dt> |
| 101 </dl> |
| 102 <dl><dt><strong>extensions</strong></dt> |
| 103 <dd><tt>Returns the extension dictionary if it exi
sts.</tt></dd> |
| 104 </dl> |
| 105 <dl><dt><strong>http_server</strong></dt> |
| 106 </dl> |
| 107 <dl><dt><strong>io_stats</strong></dt> |
| 108 <dd><tt>Returns a dict of IO statistics for t
he browser:<br> |
| 109 { 'Browser': {<br> |
| 110 'ReadOperationCount': W,<br> |
| 111 'WriteOperationCount': X,<br> |
| 112 'ReadTransferCount': Y,<br> |
| 113 'WriteTransferCount': Z<br> |
| 114 },<br> |
| 115 'Gpu': {<br> |
| 116 'ReadOperationCount': W,<br> |
| 117 'WriteOperationCount': X,<br> |
| 118 'ReadTransferCount': Y,<br> |
| 119 'WriteTransferCount': Z<br> |
| 120 },<br> |
| 121 'Renderer': {<br> |
| 122 'ReadOperationCount': W,<br> |
| 123 'WriteOperationCount': X,<br> |
| 124 'ReadTransferCount': Y,<br> |
| 125 'WriteTransferCount': Z<br> |
| 126 }<br> |
| 127 }</tt></dd> |
| 128 </dl> |
| 129 <dl><dt><strong>is_content_shell</strong></dt> |
| 130 <dd><tt>Returns whether this browser is a content&
nbsp;shell, only.</tt></dd> |
| 131 </dl> |
| 132 <dl><dt><strong>memory_stats</strong></dt> |
| 133 <dd><tt>Returns a dict of memory statistics for&nb
sp;the browser:<br> |
| 134 { 'Browser': {<br> |
| 135 'VM': S,<br> |
| 136 'VMPeak': T,<br> |
| 137 'WorkingSetSize': U,<br> |
| 138 'WorkingSetSizePeak': V,<br> |
| 139 'ProportionalSetSize': W,<br> |
| 140 'PrivateDirty': X<br> |
| 141 },<br> |
| 142 'Gpu': {<br> |
| 143 'VM': S,<br> |
| 144 'VMPeak': T,<br> |
| 145 'WorkingSetSize': U,<br> |
| 146 'WorkingSetSizePeak': V,<br> |
| 147 'ProportionalSetSize': W,<br> |
| 148 'PrivateDirty': X<br> |
| 149 },<br> |
| 150 'Renderer': {<br> |
| 151 'VM': S,<br> |
| 152 'VMPeak': T,<br> |
| 153 'WorkingSetSize': U,<br> |
| 154 'WorkingSetSizePeak': V,<br> |
| 155 'ProportionalSetSize': W,<br> |
| 156 'PrivateDirty': X<br> |
| 157 },<br> |
| 158 'SystemCommitCharge': Y,<br> |
| 159 'ProcessCount': Z,<br> |
| 160 }<br> |
| 161 Any of the above keys may be missing on&
nbsp;a per-platform basis.</tt></dd> |
| 162 </dl> |
| 163 <dl><dt><strong>platform</strong></dt> |
| 164 </dl> |
| 165 <dl><dt><strong>supports_extensions</strong></dt> |
| 166 </dl> |
| 167 <dl><dt><strong>supports_tab_control</strong></dt> |
| 168 </dl> |
| 169 <dl><dt><strong>supports_tracing</strong></dt> |
| 170 </dl> |
| 171 <dl><dt><strong>tabs</strong></dt> |
| 172 </dl> |
| 173 </td></tr></table></td></tr></table> |
| 174 </body></html> |
| OLD | NEW |