Hprof was removed from the JDK in version 9.
While there exist alternatives for some of its functionality, I cannot seem to find anything which matches the functionality of Hprof's "heap=sites". In this mode, I'd simply run the application with an agent and come collect the results in a text file when it was done. The alternatives suggested on the web (JVisualVM, Yourkit) that I'm familiar with, all require using an external profiler tool (unless I'm missing some advanced usage of those).
Does anyone know of an alternative which works for Java 17?
Thanks