<html> <head> <link rel="stylesheet" type="text/css" href=$css /> <title>Perforce Monitor</title> $refresh </head> <body bgcolor=$background_color> <table cellspacing="0" border="0" width="100%" cellpadding="1"> <tr> <td align="left" class="title" width="33%">Perforce monitor</td> <td align= "center" class = "server-name" width="33%">$server_name</td> <td align="right" class="updated" width="33%"> Last updated on :<br> <script type="text/javascript"> var write_time = new Date(); write_time.setTime($write_time) document.write(write_time.toUTCString() + "<br> or "); var cur_time = new Date(); var s = ((cur_time.getTime() - $write_time) / 1000 + 0.5).toFixed(0); if (s > 20) { document.write('<b class = "updated_late">'); } document.write(s); if (s > 20) { document.write("</b>"); } </script> seconds ago </td> </tr> </table> <p> $navigate </p> <p class="header">Server stats</p> <table cellspacing="0" border="1" width="100%" cellpadding="1"> <tr class="table-index"> <th align="center" width="25%" colspan="3">Cpu</th> <th align="center" width="40%" colspan="3">Memory</th> <th align="center" width="10%">Network</th> <th align="center" width="25%" colspan="3">Disk</th> </tr> <tr class = "table1"> <td align= "center">$p4_process_name</td> <td align= "center">Idle</td> <td align= "center">Other</td> <td align= "center">Available</td> <td align= "center">$p4_process_name virtual</td> <td align= "center">$p4_process_name working</td> <td align= "center"> </td> <td align= "center">swap</td> <td align= "center">db</td> <td align= "center">depot</td> </tr> <tr> <td align= "center" class="value_$style_cpu_p4s">$cpu_p4s%</td> <td align= "center" class="value_$style_cpu_idle">$cpu_idle%</td> <td align= "center" class="value_$style_cpu_other">$cpu_other%</td> <td align= "center" class="value_$style_mem_av">$mem_av MB</td> <td align= "center" class="value_$style_mem_p4s_virtual">$mem_p4s_virtual MB</td> <td align= "center" class="value_$style_mem_p4s_ws">$mem_p4s_ws MB</td> <td align= "center" class="value_$style_net">$net MB/sec</td> <td align= "center" class="value_$style_disk_swap">$disk_swap%</td> <td align= "center" class="value_$style_disk_db">$disk_db%</td> <td align= "center" class="value_$style_disk_depot">$disk_depot%</td> </tr> </table> <p> $proxy_info </p> <p> $client_info </p> <p class="header">Perforce threads</p> <table cellspacing="0" border="1" width="100%" cellpadding="3"> <tr class="table-index"> <th align="left" width="5%">Runtime</th> <th align="left" width="5%">Tid</th> <th align="left" width="5%">User</th> <th align="left" width="5%">Cpu</th> <th align="left" width="5%">Tool</th> <th align="left" width="5%">Version</th> <th align="left" width="5%">Connection</th> <th align="left" width="5%">Workspace</th> <th align="left" width="60%">Command</th> </tr> $p4_threads </table> </body> </html>
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 6313 | Frank Compagner |
Replaced p4_profiler_win by the p4mon script, which will give you much nicer html output, suitable for putting on a webserver. Also refactored the script quite a bit and improved documentation. |