Added functionality for computing perf stats