perfetto_hprof: match iterator API change

This CL matches the typed iterator change made by aosp/1144623
and gets rid of the legacy path within the same CL topic.
No functional change is introduced by this CL.

Bug: 132880619
Test: builds
Change-Id: I0fac64db3b6b87408493b7e1d983c90b99e0060a
1 file changed