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.util.ps_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>&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.util.html"><font color="#ffffff">util</font></a>.ps_util</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/util/ps_util.py">telemetry/internal/util/ps_util.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="atexit.html">atexit</a><br>
     24 </td><td width="25%" valign=top><a href="inspect.html">inspect</a><br>
     25 </td><td width="25%" valign=top><a href="logging.html">logging</a><br>
     26 </td><td width="25%" valign=top><a href="os.html">os</a><br>
     27 </td></tr></table></td></tr></table><p>
     28 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
     29 <tr bgcolor="#eeaa77">
     30 <td colspan=3 valign=bottom>&nbsp;<br>
     31 <font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
     32     
     33 <tr><td bgcolor="#eeaa77"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
     34 <td width="100%"><dl><dt><a name="-EnableListingStrayProcessesUponExitHook"><strong>EnableListingStrayProcessesUponExitHook</strong></a>()</dt></dl>
     35  <dl><dt><a name="-GetChildPids"><strong>GetChildPids</strong></a>(processes, pid)</dt><dd><tt>Returns&nbsp;all&nbsp;child&nbsp;processes&nbsp;of&nbsp;|pid|&nbsp;from&nbsp;the&nbsp;given&nbsp;|processes|&nbsp;list.<br>
     36 &nbsp;<br>
     37 Args:<br>
     38 &nbsp;&nbsp;processes:&nbsp;A&nbsp;tuple&nbsp;of&nbsp;(pid,&nbsp;ppid,&nbsp;state)&nbsp;as&nbsp;generated&nbsp;by&nbsp;ps.<br>
     39 &nbsp;&nbsp;pid:&nbsp;The&nbsp;pid&nbsp;for&nbsp;which&nbsp;to&nbsp;get&nbsp;children.<br>
     40 &nbsp;<br>
     41 Returns:<br>
     42 &nbsp;&nbsp;A&nbsp;list&nbsp;of&nbsp;child&nbsp;pids.</tt></dd></dl>
     43  <dl><dt><a name="-GetPsOutputWithPlatformBackend"><strong>GetPsOutputWithPlatformBackend</strong></a>(platform_backend, columns, pid)</dt><dd><tt>Returns&nbsp;output&nbsp;of&nbsp;the&nbsp;'ps'&nbsp;command&nbsp;as&nbsp;a&nbsp;list&nbsp;of&nbsp;lines.<br>
     44 &nbsp;<br>
     45 Args:<br>
     46 &nbsp;&nbsp;platform_backend:&nbsp;The&nbsp;platform&nbsp;backend&nbsp;(LinuxBasedPlatformBackend&nbsp;or<br>
     47 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PosixPlatformBackend).<br>
     48 &nbsp;&nbsp;columns:&nbsp;A&nbsp;list&nbsp;of&nbsp;require&nbsp;columns,&nbsp;e.g.,&nbsp;['pid',&nbsp;'pss'].<br>
     49 &nbsp;&nbsp;pid:&nbsp;If&nbsp;not&nbsp;None,&nbsp;returns&nbsp;only&nbsp;the&nbsp;information&nbsp;of&nbsp;the&nbsp;process&nbsp;with&nbsp;the&nbsp;pid.</tt></dd></dl>
     50 </td></tr></table>
     51 </body></html>