[Zodb-checkins] CVS: ZODB3/ZEO - stats.py:1.12
Guido van Rossum
guido@python.org
Sat, 7 Sep 2002 22:20:30 -0400
Update of /cvs-repository/ZODB3/ZEO
In directory cvs.zope.org:/tmp/cvs-serv4109
Modified Files:
stats.py
Log Message:
Finish adding the -h option. (You never tried to run what you checked
in, right, Jeremy? :-)
=== ZODB3/ZEO/stats.py 1.11 => 1.12 ===
--- ZODB3/ZEO/stats.py:1.11 Fri Sep 6 12:53:18 2002
+++ ZODB3/ZEO/stats.py Sat Sep 7 22:20:30 2002
@@ -14,7 +14,8 @@
##############################################################################
"""Trace file statistics analyzer.
-Usage: stats.py [-i interval] [-q] [-v] [-S] tracefile
+Usage: stats.py [-h] [-i interval] [-q] [-v] [-S] tracefile
+-h: print histogram
-i: summarizing interval in minutes (default 15; max 60)
-q: quiet; don't print sommaries
-v: verbose; print each record
@@ -65,7 +66,7 @@
print_histogram = 0
interval = 900 # Every 15 minutes
try:
- opts, args = getopt.getopt(sys.argv[1:], "i:qvSh")
+ opts, args = getopt.getopt(sys.argv[1:], "hi:qvSh")
except getopt.error, msg:
usage(msg)
return 2