| 1 | <h1>PANC−COMPILE−STATS</h1> |
| 2 | <a href="#NAME">NAME</a><br> |
| 3 | <a href="#SYNOPSIS">SYNOPSIS</a><br> |
| 4 | <a href="#DESCRIPTION">DESCRIPTION</a><br> |
| 5 | <a href="#EXAMPLE">EXAMPLE</a><br> |
| 6 | <a href="#AUTHOR">AUTHOR</a><br> |
| 7 | |
| 8 | <hr> |
| 9 | <a name="NAME"></a> |
| 10 | <h2>NAME</h2> |
| 11 | <!-- INDENTATION --> |
| 12 | <table width="100%" border=0 rules="none" frame="void" |
| 13 | cols="2" cellspacing="0" cellpadding="0"> |
| 14 | <tr valign="top" align="left"> |
| 15 | <td width="10%"></td> |
| 16 | <td width="89%"> |
| 17 | <p>panc-compile-stats.pl − create a report of panc |
| 18 | compilation statistics</p> |
| 19 | </td> |
| 20 | </table> |
| 21 | <a name="SYNOPSIS"></a> |
| 22 | <h2>SYNOPSIS</h2> |
| 23 | <!-- INDENTATION --> |
| 24 | <table width="100%" border=0 rules="none" frame="void" |
| 25 | cols="2" cellspacing="0" cellpadding="0"> |
| 26 | <tr valign="top" align="left"> |
| 27 | <td width="10%"></td> |
| 28 | <td width="89%"> |
| 29 | <p><b>panc−compile−stats.pl</b> |
| 30 | [<b>−−help</b>] {logfile}</p> |
| 31 | </td> |
| 32 | </table> |
| 33 | <a name="DESCRIPTION"></a> |
| 34 | <h2>DESCRIPTION</h2> |
| 35 | <!-- INDENTATION --> |
| 36 | <table width="100%" border=0 rules="none" frame="void" |
| 37 | cols="2" cellspacing="0" cellpadding="0"> |
| 38 | <tr valign="top" align="left"> |
| 39 | <td width="10%"></td> |
| 40 | <td width="89%"> |
| 41 | <p>The <b>panc−compile−stats.pl</b> script will |
| 42 | analyze a panc log file and report compilation statistics. |
| 43 | The script takes the name of the log file as its only |
| 44 | argument. If no argument is given or the |
| 45 | <b>−−help</b> option is used, a short usage |
| 46 | message is printed. <i>The log file must have been created |
| 47 | with "task" logging enabled.</i></p> |
| 48 | <!-- INDENTATION --> |
| 49 | <p>The script will extract the start time of each |
| 50 | compilation and its duration. This compilation is the time |
| 51 | to parse a template file and create the internal |
| 52 | representation of the template. The analysis is written to |
| 53 | the standard output, but may be saved in a file using |
| 54 | standard IO stream redirection. The format of the file is |
| 55 | appropriate for the R statistical analysis package, but |
| 56 | should be trivial to import into excel or any other analysis |
| 57 | package.</p> |
| 58 | </td> |
| 59 | </table> |
| 60 | <a name="EXAMPLE"></a> |
| 61 | <h2>EXAMPLE</h2> |
| 62 | <!-- INDENTATION --> |
| 63 | <table width="100%" border=0 rules="none" frame="void" |
| 64 | cols="2" cellspacing="0" cellpadding="0"> |
| 65 | <tr valign="top" align="left"> |
| 66 | <td width="10%"></td> |
| 67 | <td width="89%"> |
| 68 | <p>If the output from the command is written to the file |
| 69 | compile.txt, then the following R script will create a |
| 70 | "high−density" plot of the information. This |
| 71 | graph shows a vertical line for each compilation, where the |
| 72 | horizontal location is related to the start time and the |
| 73 | height of the line the duration.</p> |
| 74 | </td> |
| 75 | </table> |
| 76 | <!-- INDENTATION --> |
| 77 | <table width="100%" border=0 rules="none" frame="void" |
| 78 | cols="2" cellspacing="0" cellpadding="0"> |
| 79 | <tr valign="top" align="left"> |
| 80 | <td width="16%"></td> |
| 81 | <td width="83%"> |
| 82 | <pre><small># R−script for simple analysis of compile report |
| 83 | cstats <− read.table("compile.txt") |
| 84 | attach(cstats) |
| 85 | plot(start/1000, duration, type="h", xlab="time (s)", ylab="duration (ms)") |
| 86 | detach(cstats) |
| 87 | </small></pre> |
| 88 | </td> |
| 89 | </table> |
| 90 | <a name="AUTHOR"></a> |
| 91 | <h2>AUTHOR</h2> |
| 92 | <!-- INDENTATION --> |
| 93 | |
| 94 | <table width="100%" border=0 rules="none" frame="void" |
| 95 | cols="2" cellspacing="0" cellpadding="0"> |
| 96 | <tr valign="top" align="left"> |
| 97 | <td width="10%"></td> |
| 98 | <td width="89%"> |
| 99 | <p><b>Charles Loomis</b></p></td> |
| 100 | </table> |