Offloading compile stats work to taskqueues.