Changeset - e71abaa857ed
[Not reviewed]
default
0 1 0
Drew Perttula - 11 years ago 2014-06-02 06:04:07
drewp@bigasterisk.com
curvecalc profile option
Ignore-this: 46fba69b29fe3b6da6c8ce782671ad8
1 file changed with 3 insertions and 2 deletions:
0 comments (0 inline, 0 general)
bin/curvecalc
Show inline comments
 
@@ -494,12 +494,13 @@ def main():
 
    parser.add_option("--debug", action="store_true",
 
                      help="log at DEBUG")
 
    parser.add_option("--reload", action="store_true",
 
                      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()
 

	
 
    log.setLevel(logging.DEBUG if opts.debug else logging.INFO)
 

	
 
    log.debug("startup: music %s", time.time() - startTime)
 
@@ -509,11 +510,11 @@ def main():
 

	
 
    music = Music()
 
    graph = SyncedGraph("curvecalc")
 

	
 
    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()
 

	
0 comments (0 inline, 0 general)