This is very cool and seems similar to what we do/did in Cinder: https://bernsteinbear.com/blog/cinder-jit-bisect/
EDIT: Oops, this tool is mentioned in the post already (but the post is not, so here it is if you want to read about it). Neat!
EDIT: Oops, this tool is mentioned in the post already (but the post is not, so here it is if you want to read about it). Neat!