From 568ea37346a21168d88a11763e75990f5106cbbe Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 4 Jun 2014 14:49:07 +0200 Subject: [PATCH] Fix run_profile.py --- scripts/run_profile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/run_profile.py b/scripts/run_profile.py index bc567044a..7f499212c 100755 --- a/scripts/run_profile.py +++ b/scripts/run_profile.py @@ -10,7 +10,7 @@ from shutil import rmtree sys.path.insert(0, getcwd()) -from qutebrowser.app import QuteBrowser # pylint: disable=unused-import +import qutebrowser.qutebrowser # pylint: disable=unused-import tempdir = mkdtemp() @@ -22,7 +22,7 @@ else: callgraphfile = os.path.join(tempdir, 'callgraph') profiler = cProfile.Profile() -profiler.run('app = QuteBrowser(); app.exec_()') +profiler.run('qutebrowser.qutebrowser.main()') profiler.dump_stats(profilefile) call(['pyprof2calltree', '-k', '-i', profilefile, '-o', callgraphfile])