# HG changeset patch # User Drew Perttula # Date 2013-06-10 00:09:17 # Node ID 0dacbba70d0688e7bda782acfe5164a30d36b3aa # Parent aaf1f182500979a7cee3ad7032b0c1990fcb3dcf remove some broken profiler attempts Ignore-this: 3d50124a16807ee922e85911d510ce58 diff --git a/bin/curvecalc b/bin/curvecalc --- a/bin/curvecalc +++ b/bin/curvecalc @@ -22,7 +22,7 @@ from rdflib import URIRef, Literal, RDF, 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 @@ -239,6 +239,7 @@ class Main(object): 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): @@ -455,8 +456,8 @@ def main(): 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()