This content has been marked as final. Show 2 replies
Is there a reason to why you don't want to use a normal profiler? E.g. VisualVM?
Yes. I would like to do it programmatically. Profilers are fine for analyzing memory usage by hand, but I would like to retrieve this information from within another application.