20250206.1738834827 diary doctor speed imporoved
This commit is contained in:
parent
8024771933
commit
e8d8007700
1 changed files with 6 additions and 6 deletions
|
@ -1,12 +1,12 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import base64
|
||||
import cProfile
|
||||
# import cProfile
|
||||
import hashlib
|
||||
import json
|
||||
import logging
|
||||
import os
|
||||
import pstats
|
||||
# import pstats
|
||||
import re
|
||||
import shlex
|
||||
import shutil
|
||||
|
@ -665,10 +665,10 @@ if __name__ == "__main__":
|
|||
elif sys.argv[1] == "insert":
|
||||
insert()
|
||||
elif sys.argv[1] == "doctor":
|
||||
cProfile.run("doctor()", "output.prof")
|
||||
stats = pstats.Stats("output.prof")
|
||||
stats.strip_dirs().sort_stats("cumulative").print_stats(10)
|
||||
# doctor()
|
||||
# cProfile.run("doctor()", "output.prof")
|
||||
# stats = pstats.Stats("output.prof")
|
||||
# stats.strip_dirs().sort_stats("cumulative").print_stats(10)
|
||||
doctor()
|
||||
else:
|
||||
print("Unknown command")
|
||||
sys.exit(1)
|
||||
|
|
Loading…
Add table
Reference in a new issue