def startTrace (self): try: from foam.core.tracer import Tracer self._log.info("Tracing enabled") Tracer.enable() return jsonify(None) except Exception, e: self._log.exception("Exception") return jsonify(None, code = 2, msg = traceback.format_exc())
def startTrace(self): try: from foam.core.tracer import Tracer self._log.info("Tracing enabled") Tracer.enable() return jsonify(None) except Exception, e: self._log.exception("Exception") return jsonify(None, code=2, msg=traceback.format_exc())
def stopTrace (self): try: from foam.core.tracer import Tracer path = Tracer.disable() self._log.info("Tracing disabled") return jsonify({"output-path" : path}) except Exception, e: self._log.exception("Exception") return jsonify(None, code = 2, msg = traceback.format_exc())
def stopTrace(self): try: from foam.core.tracer import Tracer path = Tracer.disable() self._log.info("Tracing disabled") return jsonify({"output-path": path}) except Exception, e: self._log.exception("Exception") return jsonify(None, code=2, msg=traceback.format_exc())