Collect metrics on build.