Revision: 70
Author: jurjanw
Date: 2006-03-08 10:35:23 -0800 (Wed, 08 Mar 2006)
ViewCVS: http://svn.sourceforge.net/sensor/?rev=70&view=rev
Log Message:
-----------
First setup for velocity page
Added Paths:
-----------
trunk/sensor-console/src/java/net/sf/sensor/console/views/TimerStatistics.vm
Added: trunk/sensor-console/src/java/net/sf/sensor/console/views/TimerStatistics.vm
===================================================================
--- trunk/sensor-console/src/java/net/sf/sensor/console/views/TimerStatistics.vm (rev 0)
+++ trunk/sensor-console/src/java/net/sf/sensor/console/views/TimerStatistics.vm 2006-03-08 18:35:23 UTC (rev 70)
@@ -0,0 +1,101 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+ <head>
+ <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+ <link rel="stylesheet" href="#springUrl('/css/TimerStatistics.css')" type="text/css" />
+ <title>Sensor Console - Timer Statistics</title>
+
+ <!-- IE Hack for table width in div -->
+ <!--[if IE]>
+ <style type="text/css">
+ #sensor-container {
+ position:relative;
+ text-align:left;
+ top: 50px;
+ margin-right:20px;
+ margin-left:20px;
+ overflow: auto;
+ font-size:0.95em;
+ border:1px solid #cc9;
+ overflow-y:hidden;
+ overflow-x:scroll;
+ width:100%;
+ }
+ </style>
+ <![endif]-->
+
+ <script language="javascript">
+
+ function toggleShowChildren(rowid) {
+ trs = document.getElementsByTagName('tr');
+
+ for (i = 0; i < trs.length; i++) {
+ if (trs[i].id.indexOf(rowid + '-') >= 0) {
+ if (trs[i].style.display == 'none') {
+ trs[i].style.display = '';
+ } else {
+ trs[i].style.display = 'none';
+ }
+ }
+ }
+ }
+
+
+
+
+ </script>
+ </head>
+
+ <body>
+
+ #macro ( displayTimerStatistics $parentStatistics $margin $rowid)
+ #set($storedRowId = $rowid)
+ #foreach($statistics in $parentStatistics)
+ #set($rowid = "${rowid}-${velocityCount}")
+ <tr id="${rowid}">
+ <td class="#if( $statistics.hasChildren()) sensor-node #else sensor-leaf #end" nowrap>
+ <span style="margin:${margin}px;">
+ <a href="#" onClick="toggleShowChildren('$rowid');">${statistics.id}</a>
+ </span>
+ </td>
+ <td nowrap>${statistics.numberOfHits}</td>
+ <td nowrap>${statistics.averageTime}</td>
+ <td nowrap>${statistics.standardDeviation}</td>
+ <td nowrap>${statistics.totalTime}</td>
+ <td nowrap>${statistics.minimumTime}</td>
+ <td nowrap>${statistics.maximumTime}</td>
+ <td nowrap>$date.format('yyyy-MM-dd HH:mm:ss:S', $statistics.timeOfFirstUpdate)</td>
+ <td nowrap>$date.format('yyyy-MM-dd HH:mm:ss:S', $statistics.timeOfLastUpdate)</td>
+ </tr>
+ #set($margin = $margin + 20)
+ #displayTimerStatistics($statistics.children $margin $rowid)
+ #set($rowid = $storedRowId)
+ #set($margin = $margin - 20)
+ #end
+ #end
+
+ <form action="statistics.htm" method="post">
+ <div id="sensor-container">
+ <table cellspacing="0" cellpadding="0">
+ <thead>
+ <th>Id</th>
+ <th>Hits</th>
+ <th>Avg ms.</th>
+ <th>Std Dev ms.</th>
+ <th>Total ms.</th>
+ <th>Min ms.</th>
+ <th>Max ms.</th>
+ <th>First Access</th>
+ <th>Last Access</th>
+ </thead>
+ <tbody id="statisticsTable">
+ #set($margin = 0)
+ #set($rowid = "row")
+ #displayTimerStatistics($timerStatistics $margin $rowid)
+ </tbody>
+ </table>
+ </div>
+
+ </form>
+ </body>
+</html>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|