Highlighting redrawing regions

Hi.

Does anybody know how to highlight redrawing regions (for example in html5-canvas target) like we had in debug Flash player?
Some lib code hacks to show that rectangles?