Changeset - 0dacbba70d06
[Not reviewed]
Drew Perttula - 12 years ago 2013-06-10 00:09:17
drewp@bigasterisk.com
remove some broken profiler attempts
Ignore-this: 3d50124a16807ee922e85911d510ce58
1 file changed with 5 insertions and 4 deletions:
0 comments (0 inline, 0 general)
bin/curvecalc
Show inline comments
 
@@ -19,13 +19,13 @@ import time, textwrap, os, optparse, gtk
 
from urlparse import parse_qsl
 
import louie as dispatcher 
 
from rdflib import URIRef, Literal, RDF, RDFS
 
import logging
 

	
 
from run_local import log
 
from light9 import showconfig, prof, networking
 
from light9 import showconfig, networking
 
from light9.rdfdb import clientsession
 
from light9.curvecalc.curve import Curveset
 
from light9.curvecalc import curveview 
 
from light9.curvecalc.musicaccess import Music
 
from light9.wavelength import wavelength
 
from light9.namespaces import L9
 
@@ -236,12 +236,13 @@ class Main(object):
 
        v.props.value = v.props.upper
 

	
 
    def onQuit(self, *args):
 
        reactor.crash()
 
        # there's a hang after this, maybe in sem_wait in two
 
        # threads. I don't know whose they are.
 
        # This fix affects profilers who want to write output at the end.
 
        os.kill(os.getpid(), signal.SIGKILL)
 

	
 
    def onCollapseAll(self, *args):
 
        self.curvesetView.collapseAll()
 

	
 
    def onCollapseNone(self, *args):
 
@@ -452,11 +453,11 @@ def main():
 

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

	
 
    graph.initiallySynced.addCallback(
 
        lambda _: launch(args, graph, session, opts, startTime, music))
 
    
 
    prof.run(reactor.run, profile=False)
 

	
 
    reactor.run()
 

	
 
prof.run(main, profile=False)
 
main()
 

	
0 comments (0 inline, 0 general)