Reland "Java Heap Profiler for Perfetto."
am: 5a446bd6c7

Change-Id: If0b02941fb3aadaa71cf9856ea934d8ed86950f7