Merge "memory_prof: Add memory profiling and sanity tests"