Extract slow trees printout into package.

This allows other watcher implementations to be able to share this logging logic.