[Zodb-checkins] CVS: ZODB3/ZEO - stats.py:1.21.20.4

Jeremy Hylton cvs-admin at zope.org
Wed Nov 19 15:32:51 EST 2003


Update of /cvs-repository/ZODB3/ZEO
In directory cvs.zope.org:/tmp/cvs-serv13163

Modified Files:
      Tag: ZODB3-mvcc-2-branch
	stats.py 
Log Message:
Remove code to produce stats for cache "flips".

There are no flips.


=== ZODB3/ZEO/stats.py 1.21.20.3 => 1.21.20.4 ===
--- ZODB3/ZEO/stats.py:1.21.20.3	Wed Nov 19 15:30:03 2003
+++ ZODB3/ZEO/stats.py	Wed Nov 19 15:32:50 2003
@@ -216,7 +216,7 @@
             if code & 0x70 == 0x20:
                 oids[oid] = oids.get(oid, 0) + 1
                 total_loads += 1
-            if code in (0x00, 0x70):
+            if code == 0x00:
                 if not quiet:
                     dumpbyinterval(byinterval, h0, he)
                 byinterval = {}
@@ -224,10 +224,7 @@
                 h0 = he = ts
                 if not quiet:
                     print time.ctime(ts)[4:-5],
-                    if code == 0x00:
-                        print '='*20, "Restart", '='*20
-                    else:
-                        print '-'*20, "Flip->%d" % current, '-'*20
+                    print '='*20, "Restart", '='*20
     except KeyboardInterrupt:
         print "\nInterrupted.  Stats so far:\n"
 




More information about the Zodb-checkins mailing list