Jwang add resource measurements

only the status of the queries with resource profiling mode enabled are added here.