From 24350c18ace717de5525d7f6d77413fcbd77851d Mon Sep 17 00:00:00 2001 From: Jan Grewe Date: Fri, 31 Jul 2020 18:03:09 +0200 Subject: [PATCH] [cmd] profiling --- fishbook/cmd/data_import.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) mode change 100644 => 100755 fishbook/cmd/data_import.py diff --git a/fishbook/cmd/data_import.py b/fishbook/cmd/data_import.py old mode 100644 new mode 100755 index d1d8200..2adb696 --- a/fishbook/cmd/data_import.py +++ b/fishbook/cmd/data_import.py @@ -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() \ No newline at end of file + # import cProfile + # cProfile.run("main()", 'importprof') + main() + + # import pstats + # p = pstats.Stats('importprof') + # from IPython import embed + # embed() \ No newline at end of file