forked from jgrewe/fishbook
[cmd] profiling
This commit is contained in:
parent
dd8bff586d
commit
24350c18ac
9
fishbook/cmd/data_import.py
Normal file → Executable file
9
fishbook/cmd/data_import.py
Normal file → Executable file
@ -1,3 +1,4 @@
|
|||||||
|
#!/bin/python3
|
||||||
import argparse
|
import argparse
|
||||||
import glob
|
import glob
|
||||||
import os
|
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("-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")
|
parser.add_argument("--drop", default=False, action="store_true", help="Drop all information from the database")
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
run(args)
|
run(args)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
# import cProfile
|
||||||
|
# cProfile.run("main()", 'importprof')
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
# import pstats
|
||||||
|
# p = pstats.Stats('importprof')
|
||||||
|
# from IPython import embed
|
||||||
|
# embed()
|
Loading…
Reference in New Issue
Block a user