From fd5a89dccd94ae01ff87da8d40082b486970e634 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 24 Jul 2015 15:01:18 +0200 Subject: [PATCH] scripts: Use runcall in run_profile.py. --- scripts/dev/run_profile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/dev/run_profile.py b/scripts/dev/run_profile.py index 9248c4c62..eff6abe45 100755 --- a/scripts/dev/run_profile.py +++ b/scripts/dev/run_profile.py @@ -31,7 +31,7 @@ import shutil sys.path.insert(0, os.path.join(os.path.dirname(__file__), os.pardir, os.pardir)) -import qutebrowser.qutebrowser # pylint: disable=unused-import +import qutebrowser.qutebrowser tempdir = tempfile.mkdtemp() @@ -55,7 +55,7 @@ else: callgraphfile = os.path.join(tempdir, 'callgraph') profiler = cProfile.Profile() -profiler.run('qutebrowser.qutebrowser.main()') +profiler.runcall(qutebrowser.qutebrowser.main) profiler.dump_stats(profilefile) if not noconv: