| 1 | {{{ |
| 2 | #!html |
| 3 | <h1>PANC−THREADS.PL</h1> |
| 4 | <a href="#NAME">NAME</a><br> |
| 5 | <a href="#SYNOPSIS">SYNOPSIS</a><br> |
| 6 | <a href="#DESCRIPTION">DESCRIPTION</a><br> |
| 7 | <a href="#EXAMPLE">EXAMPLE</a><br> |
| 8 | <a href="#AUTHOR">AUTHOR</a><br> |
| 9 | |
| 10 | <hr> |
| 11 | <a name="NAME"></a> |
| 12 | <h2>NAME</h2> |
| 13 | <!-- INDENTATION --> |
| 14 | <table width="100%" border=0 rules="none" frame="void" |
| 15 | cols="2" cellspacing="0" cellpadding="0"> |
| 16 | <tr valign="top" align="left"> |
| 17 | <td width="10%"></td> |
| 18 | <td width="89%"> |
| 19 | <p>panc-threads.pl − create a report of thread |
| 20 | activity</p> |
| 21 | </td> |
| 22 | </table> |
| 23 | <a name="SYNOPSIS"></a> |
| 24 | <h2>SYNOPSIS</h2> |
| 25 | <!-- INDENTATION --> |
| 26 | <table width="100%" border=0 rules="none" frame="void" |
| 27 | cols="2" cellspacing="0" cellpadding="0"> |
| 28 | <tr valign="top" align="left"> |
| 29 | <td width="10%"></td> |
| 30 | <td width="89%"> |
| 31 | <p><b>panc−threads.pl</b> [<b>−−help</b>] |
| 32 | {logfile}</p> |
| 33 | </td> |
| 34 | </table> |
| 35 | <a name="DESCRIPTION"></a> |
| 36 | <h2>DESCRIPTION</h2> |
| 37 | <!-- INDENTATION --> |
| 38 | <table width="100%" border=0 rules="none" frame="void" |
| 39 | cols="2" cellspacing="0" cellpadding="0"> |
| 40 | <tr valign="top" align="left"> |
| 41 | <td width="10%"></td> |
| 42 | <td width="89%"> |
| 43 | <p>The <b>panc−threads.pl</b> script will analyze a |
| 44 | panc log file and report on build activity per thread. The |
| 45 | script takes the name of the log file as its only argument. |
| 46 | If no argument is given or the <b>−−help</b> |
| 47 | option is used, a short usage message is printed. <i>The log |
| 48 | file must have been created with "task" logging |
| 49 | enabled.</i></p> |
| 50 | <!-- INDENTATION --> |
| 51 | <p>The script will give the start time of build activity on |
| 52 | any particular thread and the ending time. This can be used |
| 53 | to understand the build and thread activity in a particular |
| 54 | compilation. The times are given in milliseconds relative to |
| 55 | the first entry in the log file.</p> |
| 56 | </td> |
| 57 | </table> |
| 58 | <a name="EXAMPLE"></a> |
| 59 | <h2>EXAMPLE</h2> |
| 60 | <!-- INDENTATION --> |
| 61 | <table width="100%" border=0 rules="none" frame="void" |
| 62 | cols="2" cellspacing="0" cellpadding="0"> |
| 63 | <tr valign="top" align="left"> |
| 64 | <td width="10%"></td> |
| 65 | <td width="89%"> |
| 66 | <p>If the output from the command is written to the file |
| 67 | thread.txt, then the following R script will create a plot |
| 68 | showing the duration of the activity on each thread.</p> |
| 69 | </td> |
| 70 | </table> |
| 71 | <!-- INDENTATION --> |
| 72 | <table width="100%" border=0 rules="none" frame="void" |
| 73 | cols="2" cellspacing="0" cellpadding="0"> |
| 74 | <tr valign="top" align="left"> |
| 75 | <td width="16%"></td> |
| 76 | <td width="83%"> |
| 77 | <pre><small># R−script for simple analysis of thread report |
| 78 | tstats <− read.table("threads.txt") |
| 79 | attach(tstats) |
| 80 | plot(stop/1000,thread, type="n", xlab="time (s)", ylab="thread ID") |
| 81 | segments(start/1000, thread, stop/1000, thread) |
| 82 | detach(tstats) |
| 83 | </small></pre> |
| 84 | </td> |
| 85 | </table> |
| 86 | <a name="AUTHOR"></a> |
| 87 | <h2>AUTHOR</h2> |
| 88 | <!-- INDENTATION --> |
| 89 | |
| 90 | <table width="100%" border=0 rules="none" frame="void" |
| 91 | cols="2" cellspacing="0" cellpadding="0"> |
| 92 | <tr valign="top" align="left"> |
| 93 | <td width="10%"></td> |
| 94 | <td width="89%"> |
| 95 | <p><b>Charles Loomis</b></p></td> |
| 96 | </table> |
| 97 | }}} |