Some functions for computing exec. stats.