Local policies for resource usage analysis