Jwang add resource measurements

Shouldn't this be a `PROFILING_MODE`?