| 1 | {{{ |
| 2 | #!href |
| 3 | <h1 align=center>PANC−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 − create a report of panc memory |
| 20 | utilization</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−memory.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−memory.pl</b> script will analyze a |
| 44 | panc log file and report on the memory usage. The script |
| 45 | takes the name of the log file as its only argument. If no |
| 46 | argument is given or the <b>−−help</b> option is |
| 47 | used, a short usage message is printed. <i>The log file must |
| 48 | have been created with "memory" logging |
| 49 | enabled.</i></p> |
| 50 | <!-- INDENTATION --> |
| 51 | <p>The script will extract the heap memory usage of the |
| 52 | compiler as a function of time. The memory use is reported |
| 53 | in megabytes and the times are in milliseconds. Usually one |
| 54 | will want to use this information in conjunction with the |
| 55 | thread information to understand the memory use as it |
| 56 | relates to general compiler activity. Note that java uses |
| 57 | sophisticated memory management and garbage collection |
| 58 | techniques; fluctuations in memory usage may not be directly |
| 59 | related 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 |
| 71 | memory.txt, then the following R script will create a plot |
| 72 | of 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−script for simple analysis of memory report |
| 82 | mstats <− read.table("memory.txt") |
| 83 | attach(mstats) |
| 84 | plot(time/1000, memory, xlab="time (s)", ylab="memory (MB)", type="l") |
| 85 | detach(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 | }}} |