Commit f76503a7 authored by Jim Fulton's avatar Jim Fulton

updated cache statistics

parent 4ef408bf
......@@ -85,8 +85,8 @@
__doc__='''Cache management support
$Id: CacheManager.py,v 1.9 1998/12/04 20:15:25 jim Exp $'''
__version__='$Revision: 1.9 $'[11:-2]
$Id: CacheManager.py,v 1.10 1998/12/18 22:03:09 jim Exp $'''
__version__='$Revision: 1.10 $'[11:-2]
import Globals, time, sys
......@@ -124,13 +124,13 @@ class CacheManager:
return self.manage_cacheParameters(self,REQUEST)
def cache_mean_age(self):
return Globals.Bobobase._jar.cache.cache_mean_age
return Globals.Bobobase._jar.cache.cache_mean_age/60.0
def cache_mean_deal(self):
return Globals.Bobobase._jar.cache.cache_mean_deal
return Globals.Bobobase._jar.cache.cache_mean_deal*60
def cache_mean_deac(self):
return Globals.Bobobase._jar.cache.cache_mean_deac
return Globals.Bobobase._jar.cache.cache_mean_deac*60
def cache_last_gc_time(self):
t=Globals.Bobobase._jar.cache.cache_last_gc_time
......
......@@ -47,14 +47,14 @@ of this text.
<tr><th align=right>Number of objects in the cache:</th>
<td><!--#var cache_length--></td></tr>
<tr><th align=right>Mean time since last access:</th>
<td><!--#var cache_mean_age--></td></tr>
<tr><th align=right>Mean time since last access (minutes):</th>
<td><!--#var cache_mean_age fmt="%.4g"--></td></tr>
<tr><th align=right>Deactivation rate (objects/second):</th>
<td><!--#var cache_mean_deac--></td></tr>
<tr><th align=right>Deactivation rate (objects/minute):</th>
<td><!--#var cache_mean_deac fmt="%.4f"--></td></tr>
<tr><th align=right>Deallocation rate (objects/second):</th>
<td><!--#var cache_mean_deal--></td></tr>
<tr><th align=right>Deallocation rate (objects/minute):</th>
<td><!--#var cache_mean_deal fmt="%.4f"--></td></tr>
<tr><th align=right>Time of last cache garbage collection:</th>
<td><!--#var cache_last_gc_time--></td></tr>
......
......@@ -19,8 +19,8 @@
<input type="submit" value="Change">
</form></td></tr>
<tr><th align=right>Mean time since last access:</th>
<td><!--#var cache_mean_age--></td></tr>
<tr><th align=right>Mean time since last access (minutes):</th>
<td><!--#var cache_mean_age fmt="%.4g"--></td></tr>
<tr><th valign=top align=right>Target maximum time between accesses:</th><td>
<form action="<!--#var URL1-->/manage_cache_age" method=GET>
......@@ -28,11 +28,11 @@
<input type="submit" value="Change">
</form></td></tr>
<tr><th align=right>Deactivation rate (objects/second):</th>
<td><!--#var cache_mean_deac--></td></tr>
<tr><th align=right>Deactivation rate (objects/minute):</th>
<td><!--#var cache_mean_deac fmt="%.4f"--></td></tr>
<tr><th align=right>Deallocation rate (objects/second):</th>
<td><!--#var cache_mean_deal--></td></tr>
<tr><th align=right>Deallocation rate (objects/minute):</th>
<td><!--#var cache_mean_deal fmt="%.4f"--></td></tr>
<tr><th align=right>Time of last cache garbage collection:</th>
<td><!--#var cache_last_gc_time--></td></tr>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment