Collect resource usage statistics for a distributed task