[Zope-Checkins] CVS: Zope/lib/python/Zope - __init__.py:1.29.54.1
Shane Hathaway
shane@cvs.zope.org
Fri, 31 May 2002 16:23:23 -0400
Update of /cvs-repository/Zope/lib/python/Zope
In directory cvs.zope.org:/tmp/cvs-serv30758/lib/python/Zope
Modified Files:
Tag: shane-activity-monitoring-branch
__init__.py
Log Message:
Added an activity monitor to the Database control panel. It is a bar graph
that shows how many objects have been loaded and stored recently. It's
good for:
- discovering excessive loading, meaning you should raise the cache size;
- discovering excessive storing, meaning your application may be writing too
often; and
- getting a general handle on the activity of your database.
=== Zope/lib/python/Zope/__init__.py 1.29 => 1.29.54.1 ===
sys.modules['Zope.custom_zodb']=m
+if DB.getActivityMonitor() is None:
+ from ZODB.ActivityMonitor import ActivityMonitor
+ DB.setActivityMonitor(ActivityMonitor())
+
Globals.DB=DB # Ick, this is temporary until we come up with some registry
# Hook for providing multiple transaction object manager undo support: