Add event logging to caching-managed-compile and parallel compile.

This allows for understanding where time is spend during a compile.