Adds Profiling. https://reviews.apache.org/r/22776