Address code review comments.

1 job for use-memory-profiler-only-for-memory-benchmarks in 6 minutes and 21 seconds (queued for 7 seconds)