VerySleepy modified to allow the profiled program to attach/deattach specific threads at runtime.