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


Ignore:
Timestamp:
Oct 3, 2008, 4:16:06 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/Memory

    v1 v1  
     1{{{
     2#!href
     3<h1 align=center>PANC&minus;MEMORY.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-memory.pl &minus; create a report of panc memory
     20utilization</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&minus;memory.pl</b> [<b>&minus;&minus;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&minus;memory.pl</b> script will analyze a
     44panc log file and report on the memory usage. The script
     45takes the name of the log file as its only argument. If no
     46argument is given or the <b>&minus;&minus;help</b> option is
     47used, a short usage message is printed. <i>The log file must
     48have been created with &quot;memory&quot; logging
     49enabled.</i></p>
     50<!-- INDENTATION -->
     51<p>The script will extract the heap memory usage of the
     52compiler as a function of time. The memory use is reported
     53in megabytes and the times are in milliseconds. Usually one
     54will want to use this information in conjunction with the
     55thread information to understand the memory use as it
     56relates to general compiler activity. Note that java uses
     57sophisticated memory management and garbage collection
     58techniques; fluctuations in memory usage may not be directly
     59related to the compiler activity at any instant in time.</p>
     60</td>
     61</table>
     62<a name="EXAMPLE"></a>
     63<h2>EXAMPLE</h2>
     64<!-- INDENTATION -->
     65<table width="100%" border=0 rules="none" frame="void"
     66       cols="2" cellspacing="0" cellpadding="0">
     67<tr valign="top" align="left">
     68<td width="10%"></td>
     69<td width="89%">
     70<p>If the output from the command is written to the file
     71memory.txt, then the following R script will create a plot
     72of the memory utilization as a function of time.</p>
     73</td>
     74</table>
     75<!-- INDENTATION -->
     76<table width="100%" border=0 rules="none" frame="void"
     77       cols="2" cellspacing="0" cellpadding="0">
     78<tr valign="top" align="left">
     79<td width="16%"></td>
     80<td width="83%">
     81<pre><small># R&minus;script for simple analysis of memory report
     82mstats &lt;&minus;  read.table(&quot;memory.txt&quot;)
     83attach(mstats)
     84plot(time/1000, memory, xlab=&quot;time (s)&quot;, ylab=&quot;memory (MB)&quot;, type=&quot;l&quot;)
     85detach(mstats)
     86</small></pre>
     87</td>
     88</table>
     89<a name="AUTHOR"></a>
     90<h2>AUTHOR</h2>
     91<!-- INDENTATION -->
     92
     93<table width="100%" border=0 rules="none" frame="void"
     94       cols="2" cellspacing="0" cellpadding="0">
     95<tr valign="top" align="left">
     96<td width="10%"></td>
     97<td width="89%">
     98<p><b>Charles Loomis</b></p></td>
     99</table>
     100}}}