Invasive trace generation tool