[Zodb-checkins] CVS: Zope/lib/python/ZODB - ActivityMonitor.py:1.1.2.2
Shane Hathaway
shane@cvs.zope.org
Mon, 10 Jun 2002 14:38:23 -0400
Update of /cvs-repository/Zope/lib/python/ZODB
In directory cvs.zope.org:/tmp/cvs-serv24779/lib/python/ZODB
Modified Files:
Tag: shane-activity-monitoring-branch
ActivityMonitor.py
Log Message:
Added tests and documentation of the database activity monitoring.
=== Zope/lib/python/ZODB/ActivityMonitor.py 1.1.2.1 => 1.1.2.2 ===
"""ZODB load/store activity monitor
- This simple implementation just keeps a log and iterates over the log for
- every call to getActivityAnalysis().
+ This simple implementation just keeps a small log in memory
+ and iterates over the log when getActivityAnalysis() is called.
- It assumes that log entries are added in sequence, which is only
- guaranteed because DB.py holds a lock when calling the closedConnection()
- method.
+ It assumes that log entries are added in chronological sequence,
+ which is only guaranteed because DB.py holds a lock when calling
+ the closedConnection() method.
"""
def __init__(self, history_length=3600):