Jwang add resource measurements

You shouldn't have to do a blanket search like this. The fact that you're doing it suggests that the `ResourceUsage` tracking is in the wrong place. Should it be inside of `Query`?