def handleWarning (msg=""):
  header = "*** handleWarning: %s\n" % msg
  sys.stderr.write(header)
  tb = who_calls.pretty_who_calls(strip=1) + "\n"
  sys.stderr.write(tb)

  try:
    dump_bug(LV_WARNING, "handleException", msg, tb)
  except:
    handleException("Unable to dump_bug", dump = 0)
Exemplo n.º 2
0
def handleWarning(msg=""):
    header = "*** handleWarning: %s\n" % msg
    sys.stderr.write(header)
    tb = who_calls.pretty_who_calls(strip=1) + "\n"
    sys.stderr.write(tb)

    try:
        dump_bug(LV_WARNING, "handleException", msg, tb)
    except:
        handleException("Unable to dump_bug", dump=0)
Exemplo n.º 3
0
    def __init__ (self, klass, what):
        global PROFILER_START
        global PROFILER_ENABLED
        global PROFILER_DATA
        if not PROFILER_ENABLED: return
        self.when = time.time() - PROFILER_START
        self.klass = klass
        self.where = who_calls.pretty_who_calls()
        self.what = what
        self.length = 0

        PROFILER_DATA.append(self)
Exemplo n.º 4
0
    def __init__(self, klass, what):
        global PROFILER_START
        global PROFILER_ENABLED
        global PROFILER_DATA
        global PROFILER_DEPTH
        if not PROFILER_ENABLED: return
        self.when = time.time() - PROFILER_START
        self.klass = klass
        self.where = who_calls.pretty_who_calls()
        self.what = what
        self.length = 0
        self.depth = PROFILER_DEPTH
        PROFILER_DEPTH = PROFILER_DEPTH + 1

        PROFILER_DATA.append(self)