Mercurial > code > home > repos > light9
changeset 1066:e71abaa857ed
curvecalc profile option
Ignore-this: 46fba69b29fe3b6da6c8ce782671ad8
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Mon, 02 Jun 2014 06:04:07 +0000 |
parents | 9681de580c1d |
children | c33158b367a5 |
files | bin/curvecalc |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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()