[Erp5-report] r16846 - /erp5/trunk/products/ERP5Type/dtml/
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Oct 5 09:59:05 CEST 2007
Author: ivan
Date: Fri Oct 5 09:59:04 2007
New Revision: 16846
URL: http://svn.erp5.org?rev=16846&view=rev
Log:
Add dedicated cache statistics page.
Added:
erp5/trunk/products/ERP5Type/dtml/cache_tool_statistics.dtml
Modified:
erp5/trunk/products/ERP5Type/dtml/cache_tool_configure.dtml
Modified: erp5/trunk/products/ERP5Type/dtml/cache_tool_configure.dtml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/dtml/cache_tool_configure.dtml?rev=16846&r1=16845&r2=16846&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/dtml/cache_tool_configure.dtml (original)
+++ erp5/trunk/products/ERP5Type/dtml/cache_tool_configure.dtml Fri Oct 5 09:59:04 2007
@@ -1,8 +1,5 @@
<dtml-var manage_page_header>
<dtml-var manage_tabs>
-
-<h3>Cache memory usage (in bytes)</h3>
- <dtml-var expr="getCacheTotalMemorySize()">
<h3>Cache invalidation</h3>
<form action="clearAllCache" method="POST">
Added: erp5/trunk/products/ERP5Type/dtml/cache_tool_statistics.dtml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/dtml/cache_tool_statistics.dtml?rev=16846&view=auto
==============================================================================
--- erp5/trunk/products/ERP5Type/dtml/cache_tool_statistics.dtml (added)
+++ erp5/trunk/products/ERP5Type/dtml/cache_tool_statistics.dtml Fri Oct 5 09:59:04 2007
@@ -1,0 +1,30 @@
+<dtml-var manage_page_header>
+<dtml-var manage_tabs>
+
+<h3>Cache memory statistics (in bytes)</h3>
+ <dtml-with "_.namespace(**getCacheTotalMemorySize())">
+ <h4> Total cache memory used <dtml-var total_size> </h4>
+ <dtml-in expr="stats.keys()">
+
+ <h5><dtml-var sequence-item></h5>
+ <dtml-with "_.namespace(**stats[_['sequence-item']])">
+
+ <table border="1">
+ <tr><td> Mem used</td><td> Cache key </td></tr>
+
+ <dtml-in expr="cp_cache_keys_total_size.keys()">
+ <tr>
+ <td><dtml-var expr="cp_cache_keys_total_size[_['sequence-item']]"></td>
+ <td><dtml-var sequence-item></td>
+ </tr>
+ </dtml-in>
+ </table>
+
+ Total : <b><dtml-var total></b><br/>
+
+ </dtml-with>
+
+ </dtml-in>
+ </dtml-with>
+
+<dtml-var manage_page_footer>
More information about the Erp5-report
mailing list