| OLD | NEW |
| (Empty) |
| 1 | |
| 2 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | |
| 3 <html><head><title>Python: module telemetry.core.util</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 hre
f="telemetry.html"><font color="#ffffff">telemetry</font></a>.<a href="telemetry
.core.html"><font color="#ffffff">core</font></a>.util</strong></big></big></fon
t></td | |
| 11 ><td align=right valign=bottom | |
| 12 ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href=
"../telemetry/core/util.py">telemetry/core/util.py</a></font></td></tr></table> | |
| 13 <p><tt># Copyright 2012 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=t
op><a href="telemetry.core.exceptions.html">telemetry.core.exceptions</a><br> | |
| 24 <a href="glob.html">glob</a><br> | |
| 25 <a href="imp.html">imp</a><br> | |
| 26 </td><td width="25%" valign=top><a href="inspect.html">inspect</a><br> | |
| 27 <a href="logging.html">logging</a><br> | |
| 28 <a href="os.html">os</a><br> | |
| 29 </td><td width="25%" valign=top><a href="socket.html">socket</a><br> | |
| 30 <a href="sys.html">sys</a><br> | |
| 31 <a href="time.html">time</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="__builtin__.html#object">__builtin__.
object</a> | |
| 41 </font></dt><dd> | |
| 42 <dl> | |
| 43 <dt><font face="helvetica, arial"><a href="telemetry.core.util.html#PortKeeper">
PortKeeper</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="PortKeeper">class <strong
>PortKeeper</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a
>)</font></td></tr> | |
| 52 | |
| 53 <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> | |
| 54 <td colspan=2><tt>Port keeper hold an available port&nb
sp;on the system.<br> | |
| 55 <br> | |
| 56 Before actually use the port, you must call&n
bsp;<a href="#PortKeeper-Release">Release</a>().<br> </tt></td></tr> | |
| 57 <tr><td> </td> | |
| 58 <td width="100%">Methods defined here:<br> | |
| 59 <dl><dt><a name="PortKeeper-Release"><strong>Release</strong></a>(self)</dt></dl
> | |
| 60 | |
| 61 <dl><dt><a name="PortKeeper-__init__"><strong>__init__</strong></a>(self)</dt></
dl> | |
| 62 | |
| 63 <hr> | |
| 64 Data descriptors defined here:<br> | |
| 65 <dl><dt><strong>__dict__</strong></dt> | |
| 66 <dd><tt>dictionary for instance variables (if defined)<
/tt></dd> | |
| 67 </dl> | |
| 68 <dl><dt><strong>__weakref__</strong></dt> | |
| 69 <dd><tt>list of weak references to the object 
;(if defined)</tt></dd> | |
| 70 </dl> | |
| 71 <dl><dt><strong>port</strong></dt> | |
| 72 </dl> | |
| 73 </td></tr></table></td></tr></table><p> | |
| 74 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | |
| 75 <tr bgcolor="#eeaa77"> | |
| 76 <td colspan=3 valign=bottom> <br> | |
| 77 <font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></b
ig></font></td></tr> | |
| 78 | |
| 79 <tr><td bgcolor="#eeaa77"><tt> </tt></td><td>
</td> | |
| 80 <td width="100%"><dl><dt><a name="-GetBaseDir"><strong>GetBaseDir</strong></a>()
</dt></dl> | |
| 81 <dl><dt><a name="-GetBuildDirectories"><strong>GetBuildDirectories</strong></a>
()</dt><dd><tt>Yields all combination of Chromium build
output directories.</tt></dd></dl> | |
| 82 <dl><dt><a name="-GetChromiumSrcDir"><strong>GetChromiumSrcDir</strong></a>()</
dt></dl> | |
| 83 <dl><dt><a name="-GetPythonPageSetModule"><strong>GetPythonPageSetModule</stron
g></a>(file_path)</dt></dl> | |
| 84 <dl><dt><a name="-GetSequentialFileName"><strong>GetSequentialFileName</strong>
</a>(base_name)</dt><dd><tt>Returns the next sequential file
name based on |base_name| and the<br> | |
| 85 existing files. base_name should not contain exten
sion.<br> | |
| 86 e.g: if base_name is /tmp/test, and /tmp/test_000.
json,<br> | |
| 87 /tmp/test_001.mp3 exist, this returns /tmp/test_002. In
case no<br> | |
| 88 other sequential file name exist, this will r
eturn /tmp/test_000</tt></dd></dl> | |
| 89 <dl><dt><a name="-GetTelemetryDir"><strong>GetTelemetryDir</strong></a>()</dt><
/dl> | |
| 90 <dl><dt><a name="-GetTelemetryThirdPartyDir"><strong>GetTelemetryThirdPartyDir<
/strong></a>()</dt></dl> | |
| 91 <dl><dt><a name="-GetUnittestDataDir"><strong>GetUnittestDataDir</strong></a>()
</dt></dl> | |
| 92 <dl><dt><a name="-GetUnreservedAvailableLocalPort"><strong>GetUnreservedAvailab
leLocalPort</strong></a>()</dt><dd><tt>Returns an available port&
nbsp;on the system.<br> | |
| 93 <br> | |
| 94 WARNING: This method does not reserve the por
t it returns, so it may be used<br> | |
| 95 by something else before you get to use
it. This can lead to flake.</tt></dd></dl> | |
| 96 <dl><dt><a name="-IsRunningOnCrosDevice"><strong>IsRunningOnCrosDevice</strong>
</a>()</dt><dd><tt>Returns True if we're on a Chro
meOS device.</tt></dd></dl> | |
| 97 <dl><dt><a name="-WaitFor"><strong>WaitFor</strong></a>(condition, timeout)</dt
><dd><tt>Waits for up to |timeout| secs for t
he function |condition| to return True.<br> | |
| 98 <br> | |
| 99 Polling frequency is (elapsed_time / 10), with&nbs
p;a min of .1s and max of 5s.<br> | |
| 100 <br> | |
| 101 Returns:<br> | |
| 102 Result of |condition| function (if present)
.</tt></dd></dl> | |
| 103 </td></tr></table> | |
| 104 </body></html> | |
| OLD | NEW |