forked from jgrewe/fishbook
[cmd] profiling
This commit is contained in:
parent
dd8bff586d
commit
24350c18ac
11
fishbook/cmd/data_import.py
Normal file → Executable file
11
fishbook/cmd/data_import.py
Normal file → Executable 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()
|
Loading…
Reference in New Issue
Block a user