import cProfile from gcstruct import gcstruct_uebersetzung def gcstruct_profiler(): gcstruct_uebersetzung("C:\\GlobalCube\\Tasks\\scripts") if __name__ == "__main__": cProfile.run( "gcstruct_profiler()", "gcstruct_profiler.prof", )