From 7664e5762dddd3d387e7a5ad530090a74a910be5 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Sat, 28 Sep 2013 17:25:41 -0400 Subject: [PATCH] virt-manager: Remove hotshot --profile command Much easier to just do python -m cProfile -s time virt-manager.py --debug, and its way faster. --- virt-manager | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/virt-manager b/virt-manager index a80c837f9..b1f65c4a8 100755 --- a/virt-manager +++ b/virt-manager @@ -102,10 +102,6 @@ def parse_commandline(): optParser.epilog = ("Also accepts standard GTK arguments like " "--g-fatal-warnings") - # Generate runtime performance profile stats with hotshot - optParser.add_option("--profile", dest="profile", - help=optparse.SUPPRESS_HELP, metavar="FILE") - # Trace every libvirt API call to debug output optParser.add_option("--trace-libvirt", dest="tracelibvirt", help=optparse.SUPPRESS_HELP, action="store_true") @@ -289,15 +285,8 @@ def main(): engine.show_manager_window = False engine.skip_autostart = True - # Finally start the app for real - if options.profile is not None: - import hotshot - prof = hotshot.Profile(options.profile) - prof.runcall(engine.application.run, None) - prof.close() - else: - engine.application.run(None) + engine.application.run(None) if __name__ == "__main__":