Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zodb
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Joshua
zodb
Commits
6c2d38e1
Commit
6c2d38e1
authored
Sep 08, 2002
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Finish adding the -h option. (You never tried to run what you checked
in, right, Jeremy? :-)
parent
f76cde1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/ZEO/stats.py
src/ZEO/stats.py
+3
-2
No files found.
src/ZEO/stats.py
View file @
6c2d38e1
...
@@ -14,7 +14,8 @@
...
@@ -14,7 +14,8 @@
##############################################################################
##############################################################################
"""Trace file statistics analyzer.
"""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)
-i: summarizing interval in minutes (default 15; max 60)
-q: quiet; don't print sommaries
-q: quiet; don't print sommaries
-v: verbose; print each record
-v: verbose; print each record
...
@@ -65,7 +66,7 @@ def main():
...
@@ -65,7 +66,7 @@ def main():
print_histogram
=
0
print_histogram
=
0
interval
=
900
# Every 15 minutes
interval
=
900
# Every 15 minutes
try
:
try
:
opts
,
args
=
getopt
.
getopt
(
sys
.
argv
[
1
:],
"i:qvSh"
)
opts
,
args
=
getopt
.
getopt
(
sys
.
argv
[
1
:],
"
h
i:qvSh"
)
except
getopt
.
error
,
msg
:
except
getopt
.
error
,
msg
:
usage
(
msg
)
usage
(
msg
)
return
2
return
2
...
...
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