add feature to generate trace for dirty blocks