Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
f76503a7
Commit
f76503a7
authored
Dec 18, 1998
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated cache statistics
parent
4ef408bf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
17 deletions
+17
-17
lib/python/App/CacheManager.py
lib/python/App/CacheManager.py
+5
-5
lib/python/App/cacheGC.dtml
lib/python/App/cacheGC.dtml
+6
-6
lib/python/App/cacheParameters.dtml
lib/python/App/cacheParameters.dtml
+6
-6
No files found.
lib/python/App/CacheManager.py
View file @
f76503a7
...
...
@@ -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
...
...
lib/python/App/cacheGC.dtml
View file @
f76503a7
...
...
@@ -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>
...
...
lib/python/App/cacheParameters.dtml
View file @
f76503a7
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment