I read a post by Joshua Kerievsky about 'Limited Red Time' Link
His org. Industrial Logic as part of a training module, has a screen where you upload an archive. In return, the screen shows you a graph of how much time were you in the red state vs the green state. It also hooks up with Resharper and annotates points at which the specific refactorings were performed.
The resulting graph gives some vital insights to self-assess your skills/behavior. e.g. I am myself guilty of getting into a red state and not giving in to a revert+retry, instead hacking away at it for a few hours before I get it to green (if I am lucky).
From my limited exposure, it looks to be proprietary. Is there such a visualization plugin for Visual Studio that is available ?