Add compile statistics support.