Break unit timings into phase timings.

Now, for each unit we print how much time was spent in each of
compiler's phases.