Stacktracing Instrumentation for Multi-threaded Applications

Stack tracer for multi-threaded applications. http://code.activestate.com/recipes/577334-how-to-debug-deadlocked-multi-threaded-programs/

Usage:

import stacktracer stacktracer.start_trace(“trace.html”,interval=5,auto=True) # Set auto flag to always update file!

stacktracer.stop_trace()

tendril.devtooling.stacktracer.stacktraces()[source]
class tendril.devtooling.stacktracer.TraceDumper(fpath, interval, auto)[source]

Bases: threading.Thread

@param fpath: File path to output HTML (stack trace file) @param auto: Set flag (True) to update trace continuously.

Clear flag (False) to update only if file not exists. (Then delete the file to force update.)

@param interval: In seconds: how often to update the trace file.

run()[source]

Method representing the thread’s activity.

You may override this method in a subclass. The standard run() method invokes the callable object passed to the object’s constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.

stop()[source]
stacktraces()[source]
tendril.devtooling.stacktracer.trace_start(fpath, interval=5, auto=True)[source]

Start tracing into the given file.

tendril.devtooling.stacktracer.trace_stop()[source]

Stop tracing.