Make perf attributes depending on the resource module optional.