While this article is focused on the Java heap dump side of Perfetto, we do support both native and Java heap dumps in a single trace.
Recently we've also been investing into a new feature of the UI called Memscope (https://perfetto.dev/docs/visualization/memscope) to put this behind a one-click graphical interface which hides all the complex configuration options of Perfetto and "just works" collecting both Java heap dumps and native heap profiling.
On the analysis side, we then time align them and present it with a new exploration UI. This is still under very active development so it should continue getting better with time :)
How does this work? Is it sampling the heap or tracking all allocations?