Converage tools and multi-threading

Timothy Docker timd at macquarie.com.au
Sun May 20 20:46:02 EDT 2001


I've just discovered that the coverage tool that I have been using (a
customized version of trace.py), doesn't handle multiple threads. This 
appears to be that case because sys.settrace modifies thread and not
global state - which makes sense in hindsight

Has anyone done any work to perform coverage analysis accross multiple 
threads? It looks a bit tricky, as one would need to intercept the
creation of new threads to set tracing up.

Thanks,


Tim





More information about the Python-list mailing list