Move profiling to exclude process waiting time