# HG changeset patch # User Drew Perttula # Date 1401689047 0 # Node ID e71abaa857edfe4e14e3dcd5df8a5fd29d7441b0 # Parent 9681de580c1d23702a259fae9e08ac7bc4b89dc2 curvecalc profile option Ignore-this: 46fba69b29fe3b6da6c8ce782671ad8 diff -r 9681de580c1d -r e71abaa857ed bin/curvecalc --- a/bin/curvecalc Mon Jun 02 04:37:50 2014 +0000 +++ b/bin/curvecalc Mon Jun 02 06:04:07 2014 +0000 @@ -497,6 +497,7 @@ help="live reload of themes and code") parser.add_option("--startup-only", action='store_true', help="quit after loading everything (for timing tests)") + parser.add_option("--profile", action='store_true', help='profile') clientsession.add_option(parser) opts, args = parser.parse_args() @@ -512,8 +513,8 @@ graph.initiallySynced.addCallback( lambda _: launch(args, graph, session, opts, startTime, music)) - - reactor.run() + from light9 import prof + prof.run(reactor.run, profile=opts.profile) main()