Changes between Initial Version and Version 1 of Doc/compiler/scripts/CompileStats


Ignore:
Timestamp:
Oct 3, 2008, 4:12:40 PM (16 years ago)
Author:
/C=IE/O=Grid-Ireland/OU=cs.tcd.ie/L=RA-TCD/CN=Stephen O. Childs
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Doc/compiler/scripts/CompileStats

    v1 v1  
     1<h1>PANC&minus;COMPILE&minus;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 &minus; create a report of panc
     18compilation 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&minus;compile&minus;stats.pl</b>
     30[<b>&minus;&minus;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&minus;compile&minus;stats.pl</b> script will
     42analyze a panc log file and report compilation statistics.
     43The script takes the name of the log file as its only
     44argument. If no argument is given or the
     45<b>&minus;&minus;help</b> option is used, a short usage
     46message is printed. <i>The log file must have been created
     47with &quot;task&quot; logging enabled.</i></p>
     48<!-- INDENTATION -->
     49<p>The script will extract the start time of each
     50compilation and its duration. This compilation is the time
     51to parse a template file and create the internal
     52representation of the template. The analysis is written to
     53the standard output, but may be saved in a file using
     54standard IO stream redirection. The format of the file is
     55appropriate for the R statistical analysis package, but
     56should be trivial to import into excel or any other analysis
     57package.</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
     69compile.txt, then the following R script will create a
     70&quot;high&minus;density&quot; plot of the information. This
     71graph shows a vertical line for each compilation, where the
     72horizontal location is related to the start time and the
     73height 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&minus;script for simple analysis of compile report
     83cstats &lt;&minus;  read.table(&quot;compile.txt&quot;)
     84attach(cstats)
     85plot(start/1000, duration, type=&quot;h&quot;, xlab=&quot;time (s)&quot;, ylab=&quot;duration (ms)&quot;)
     86detach(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>