[cmd] profiling

This commit is contained in:
Jan Grewe 2020-07-31 18:03:09 +02:00
parent dd8bff586d
commit 24350c18ac

11
fishbook/cmd/data_import.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/bin/python3
import argparse
import glob
import os
@ -27,9 +28,15 @@ def main():
parser.add_argument("-u", "--update", default=False, action="store_true", help="update entries instead of skipping duplicates")
parser.add_argument("--drop", default=False, action="store_true", help="Drop all information from the database")
args = parser.parse_args()
run(args)
if __name__ == "__main__":
main()
# import cProfile
# cProfile.run("main()", 'importprof')
main()
# import pstats
# p = pstats.Stats('importprof')
# from IPython import embed
# embed()