This is just some test code. What it does is remove devels use of phptemplate_preprocess since it should not be used inside modules.
Instead, it creates a custom function of "devel_preprocess" and it puts it at the very end of the list. This enables it to monitor *all* template logs. Not just the ones set from modules.
It's a dirty hack but it works. If the direction looks good then I hope someone can clean it up. I'm not familiar enough with all the hooks to know where it should be placed. For now you have to manually click the "clear cache" link to have the registry rebuilt.